Skip to content

Hydrahon v1.1.6

Compare
Choose a tag to compare
@mario-deluna mario-deluna released this 26 Aug 09:46
· 98 commits to master since this release

This releases does not add any new features but makes the implementation a bit easier.

Changes

  • Removed php 5.3 support. This thing is old, really, really old it's time to say goodbye.
  • Added FetchableInterfaceThis makes it easy for you to identify if a query should be fetched or not.

Example from the readme has been updated:

$connection = new PDO('mysql:host=localhost;dbname=my_database', 'username', 'password');

$hydrahon = new \ClanCats\Hydrahon\Builder('mysql', function($query, $queryString, $queryParameters) use($connection)
{
    $statement = $connection->prepare($queryString);
    $statement->execute($queryParameters);

    if ($query instanceof \ClanCats\Hydrahon\Query\Sql\FetchableInterface)
    {
        return $statement->fetchAll(\PDO::FETCH_ASSOC);
    }
});