Skip to content

Latest commit

 

History

History
366 lines (184 loc) · 4.8 KB

CHANGELOG.md

File metadata and controls

366 lines (184 loc) · 4.8 KB

Changelog

Changes are documented in reverse chronological order by release.

3.0.1 - 2023-10-05

Fixed

  • Fixed wrong phpdoc argument description

3.0.0 - 2023-10-05

Changed

  • This version introduces a few BC breaks as it implements all type-declaration of the PDO library for php-8.2 without error suppression via php attributes

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Nothing

2.0.2 - 2023-10-02

Changed

  • Necessary BC break; see the "Fixed" section below

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Removed the internal profile method

Fixed

  • Fixed the return type of PDO::exec(). The int return type declaration in PDO::exec() was removed as valid return types are int|false

  • Fixed regression. The query profiling of PDO::query() was accidentaly removed during upgrades to version 2.0.x for php ^7.4 || ^8.0

2.0.1 - 2023-10-02

Changed

  • Nothing

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Fixed the composer urls for the README.md and the LICENSE.md files

2.0.0 - 2023-09-21

Changed

  • The package was renamed to pine3ree/pine3ree-pdo
  • The vendor namespace changed from P3 to (lowecase) pine3ree

Added

  • Added support for PHP 8.0.*

Deprecated

  • Nothing

Removed

  • Remove support for PHP < 7.4

Fixed

  • The return value of lastInsertId() can also be false.

1.1.1 - 2021-02-25

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Nothing.

1.1.0 - 2021-02-25

Added

  • Added P3\PDO\Profiling\PDO::isConnected(): bool method

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Changed reconnecting pdo default timeout to 30 seconds according to the default ext-pdo attribute PDO::ATTR_TIMEOUT.

1.0.0 - 2021-02-24

This is a BC-breaking update.

The lazy-connection, the profiling and the auto-disconnect/reconnect features have been implemented using separate classes.

Added

  • Added separate profiling classes P3\PDO\Profiling\PDO and P3\PDO\Profiling\PDOStatement
  • Added separate reconnecting class P3\PDO\Reconnecting\PDO

Deprecated

  • Nothing

Removed

  • The base class now only provides the lazy-connection feature, extra constructor arguments and getLog() methods have been removed

Fixed

  • Nothing.

0.6.0 - 2020-05-11

Added

  • Added $ttl property to enable automatic reconnection after ttl seconds
  • P3\PDO now wraps an internal \PDO instance but stills extends the \PDO class
  • Added $dsn, $connections and $ttl to the log-data

Deprecated

  • Nothing.

Removed

  • The getLOG() array 'queries' key has been replaced by the 'statements' key

Fixed

  • Nothing.

0.5.1 - 2020-05-11

Added

  • Added the possibility of retrieving the database driver name from the dsn without establishing a connection

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

0.5.0 - 2020-04-24

Added

  • Added logging for parameter-binding in pdo-statement

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

0.4.1 - 2020-04-18

Added

  • Fixed and readded static analysis

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

0.4.0 - 2020-04-18

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Removed the $attributes argument in constructor to make the signature closer to ext-pdo

  • The previously public @internal method connect() is now private

Fixed

  • Nothing.

0.3.0 - 2020-04-16

The custom P3\PDOStatement class is now used only if query-logging is enabled.

Added

  • added private method for internal query profiling

  • updated setAttribute statement class validation

  • added test cases

Deprecated

  • Nothing.

Removed

  • Removed internal PDOStatement $log property as form now on this class is only used when profiling.

  • Removed composer shortcuts cs-check, cs-fix in favor of check-cs, fix-cs Removed check shortcut.

Fixed

  • Fixed README file query-logging constructor example

0.2.0 - 2020-04-14

Added

  • Documentation about methods triggering a database connection.

Deprecated

  • Nothing.

Removed

  • Removed unused/reduntant and undocumented log/debug methods, namely:
    • getExecutedQueries(...);
    • getTotalExecTime();
    • getTotalQueryCount(...);
  • Remove reference to virtual property in php-doc block leftover from older implementation

Fixed

  • Nothing.

0.1.1 - 2020-04-14

Added

  • Added licence and type key in composer.json file.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

0.1.0 - 2020-04-14

Initial release.

Added

  • Everything.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.