7.0.0
Added
- Official support for PostgreSQL.
- It is now possible to bind and set binary column values in a prepared statement which is executed multiple times.
Changed
- Rewrote library using PDO instead of driver-specific connection objects.
Rather than instantiating aMysqlorSqlServersubclass, simply construct
PeachySqlwith the PDO object for your connection. - Moved to
DevTheoremnamespace.
Important
If using SQL Server, make sure your PDO connection has the PDO::SQLSRV_ATTR_FETCHES_NUMERIC_TYPE
option set to true, so column values are returned with the same native types as before.
- When using MySQL, the
Statementobject no longer has agetInsertId()method.
This does not affect shorthand insert methods, however, which provide the insert IDs just like before. - The
getAffected()method on a select query result now returns the number of selected rows instead of-1for MySQL. - PHP 8.1+ is now required.
Removed
- All previously deprecated methods.
- Unnecessary
$lengthparameter frommakeBinaryParam(). SqlExceptionno longer has properties for the failed query and params.