Download the PHP package deepeloper/pdo-debugging without Composer
On this page you can find all versions of the php package deepeloper/pdo-debugging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download deepeloper/pdo-debugging
More information about deepeloper/pdo-debugging
Files in deepeloper/pdo-debugging
Download deepeloper/pdo-debugging
More information about deepeloper/pdo-debugging
Files in deepeloper/pdo-debugging
Vendor deepeloper
Package pdo-debugging
Short Description PDO Debugging & Benchmarking Tools
License MIT
Homepage https://github.com/deepeloper/pdo-debugging
Package pdo-debugging
Short Description PDO Debugging & Benchmarking Tools
License MIT
Homepage https://github.com/deepeloper/pdo-debugging
Please rate this library. Is it a good library?
Informations about the package pdo-debugging
PDO Debugging & Benchmarking Tools
Compatibility
Installation
Run composer require deepeloper/pdo-debugging.
Benchmarking
Allows to collect following benchmarks per PDO connection:
- Global:
-
- queries count/time;
-
- preparation count/time;
-
- fetching count/time;
-
- commits count/time;
-
- roll back count/time;
-
- sum of time calling:
-
-
- PDO::__construct();
-
-
-
- PDO::beginTransaction();
-
-
-
- PDO::commit();
-
-
-
- PDO::exec();
-
-
-
- PDO::prepare();
-
-
-
- PDO::query();
-
-
-
- PDO::rollBack();
-
-
-
- PDOStatement::execute();
-
-
-
- PDOStatement::fetch*();
-
- Statement:
-
- queries count/time;
-
- fetching count/time;
-
- sum of time calling:
-
-
- PDOStatement::execute();
-
-
-
- PDOStatement::fetch*().
-
Benchmarking usage
will output:
Debugging
Allows to process next methods calls:
- PDO::__construct();
- PDO::beginTransaction();
- PDO::commit();
- PDO::exec();
- PDO::prepare();
- PDO::query();
- PDO::rollBack();
- PDOStatement::execute().
Allows to log queries with replaced placeholders from next methods:
- PDO::exec();
- PDO::query();
- PDOStatement::execute().
Debugging usage
will output:
If you wish to log only queries, pass following 'sources' section:
If source started with "/" it will be processed like regular expression, otherwise will be compared like string.
Customizing debugging
You can customize log message scope and process result message before logging:
will output:
All versions of pdo-debugging with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4
ext-pdo Version *
ext-json Version *
ext-pdo Version *
ext-json Version *
The package deepeloper/pdo-debugging contains the following files
Loading the files please wait ...