Hydrahon v1.1.6
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
FetchableInterface
This 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);
}
});