Skip to content

Releases: phlib/db

3.0.0

11 Feb 12:07
cbe6133

Choose a tag to compare

  • 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 = 0 to use MySQL native prepares.

See Change Log for full details.

2.1.0

02 Jan 08:35

Choose a tag to compare

  • 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

07 Aug 07:28

Choose a tag to compare

  • 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() and update().
    Implementations must remove any manual identifier quotes that they were previously forced to include manually.
  • Removed type parameter from QuoteHandler::value() (and therefore also QuoteHandler::into()).

See Change Log for full details.

1.2.0

01 Aug 06:40

Choose a tag to compare

  • 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

15 Nov 16:29
de89a4f

Choose a tag to compare

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

10 Apr 09:40

Choose a tag to compare

  • 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

03 Jan 17:23

Choose a tag to compare

Updated dependencies Pre-release
Pre-release
0.0.5

Remove config platform from composer file

Minor fixes

02 Aug 13:21

Choose a tag to compare

Minor fixes Pre-release
Pre-release
  • 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

01 Aug 13:17

Choose a tag to compare

Pre-release

Change dependency versions

Updated dependencies

25 Apr 10:00

Choose a tag to compare

Updated dependencies Pre-release
Pre-release
  • Fixed dependencies
  • Fixed adapter interface implementation naming