Changes are documented in reverse chronological order by release.
- Fixed wrong phpdoc argument description
- 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
- Nothing
- Nothing
- Nothing
- Nothing
- Necessary BC break; see the "Fixed" section below
- Nothing
- Nothing
- Removed the internal profile method
-
Fixed the return type of
PDO::exec()
. Theint
return type declaration inPDO::exec()
was removed as valid return types areint|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
- Nothing
- Nothing
- Nothing
- Nothing
- Fixed the composer urls for the README.md and the LICENSE.md files
- The package was renamed to
pine3ree/pine3ree-pdo
- The vendor namespace changed from
P3
to (lowecase)pine3ree
- Added support for PHP 8.0.*
- Nothing
- Remove support for PHP < 7.4
- The return value of
lastInsertId()
can also befalse
.
- Nothing
- Nothing
- Nothing
- Nothing.
- Added
P3\PDO\Profiling\PDO::isConnected(): bool
method
- Nothing
- Nothing
- Changed reconnecting pdo default timeout to 30 seconds according to the default
ext-pdo attribute
PDO::ATTR_TIMEOUT
.
This is a BC-breaking update.
The lazy-connection, the profiling and the auto-disconnect/reconnect features have been implemented using separate classes.
- Added separate profiling classes P3\PDO\Profiling\PDO and P3\PDO\Profiling\PDOStatement
- Added separate reconnecting class P3\PDO\Reconnecting\PDO
- Nothing
- The base class now only provides the lazy-connection feature, extra constructor arguments and getLog() methods have been removed
- Nothing.
- 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
- Nothing.
- The getLOG() array 'queries' key has been replaced by the 'statements' key
- Nothing.
- Added the possibility of retrieving the database driver name from the dsn without establishing a connection
- Nothing.
- Nothing.
- Nothing.
- Added logging for parameter-binding in pdo-statement
- Nothing.
- Nothing.
- Nothing.
- Fixed and readded static analysis
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
-
Removed the $attributes argument in constructor to make the signature closer to ext-pdo
-
The previously public @internal method
connect()
is now private
- Nothing.
The custom P3\PDOStatement class is now used only if query-logging is enabled.
-
added private method for internal query profiling
-
updated setAttribute statement class validation
-
added test cases
- Nothing.
-
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 ofcheck-cs
,fix-cs
Removedcheck
shortcut.
- Fixed README file query-logging constructor example
- Documentation about methods triggering a database connection.
- Nothing.
- 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
- Nothing.
- Added licence and type key in composer.json file.
- Nothing.
- Nothing.
- Nothing.
Initial release.
- Everything.
- Nothing.
- Nothing.
- Nothing.