Releases: phlib/db
Releases · phlib/db
3.0.0
- Drop support for PHP version <= v8.0 as they are no longer actively supported by the PHP project. No API changes for this package.
- Add PHP v8 type declarations.
- Set default PDO config
PDO::ATTR_EMULATE_PREPARES = 0to use MySQL native prepares.
See Change Log for full details.
2.1.0
- Add support for running with native types.
- Attribute can be added to config, so it's applied at initial connection and any reconnects.
See Change Log for full details.
2.0.0
- Drop PHP versions <= 7.3 as they are no longer actively supported by the PHP project.
- Add type declarations.
- Add support for PHP v8.
- Automatically quote identifiers used in data parameters for
insert()andupdate().
Implementations must remove any manual identifier quotes that they were previously forced to include manually. - Removed type parameter from
QuoteHandler::value()(and therefore alsoQuoteHandler::into()).
See Change Log for full details.
1.2.0
- New method
upsert()on Adapter for performing an insert/on duplicate update of a single row.
See Change Log for full details.
1.1.0
New class SqlFragment can be used when passing raw SQL to the quoter.
Full quoter support added to CRUD methods select(), insert(), update() and delete() via a new method signature, deprecating using a string for the where parameter.
See Change Log for full details.
1.0.0
- Drop support for PHP 5.5
- Helpers have been migrated to the phlib/db-helper package
- Access to quote methods is now via method on Adapter, eg.
$adapter->quote()->into()
See change log for full details
Updated dependencies
0.0.5 Remove config platform from composer file
Minor fixes
- Remove unneeded [at]dev on console composer dependency
- Update console process dependency to latest version
- Changed exception implementation to replicate behaviour of current PDO Exception
- README: Add timezone values to the options table and added link to manual
- Fix unexpected PDOException code param behaviour.
- Add test to replicate unexpected PDOException behaviour with code par
Dependency improvements
Change dependency versions
Updated dependencies
- Fixed dependencies
- Fixed adapter interface implementation naming