Go to file
Daniel Seifert 66a842db84
change line endings for easy patching
2020-05-25 09:46:53 +02:00
example allow newlines in cli output, add FirePHP handler to browser console log 2019-09-20 22:30:27 +02:00
img remove Query Status Monitor, complete implementation 2020-05-01 01:08:23 +02:00
src add configurable FirePHP handler 2020-05-13 18:53:56 +02:00
.gitattributes change line endings for easy patching 2020-05-25 09:46:53 +02:00
.gitignore Initial commit 2019-08-20 23:35:53 +02:00
CHANGELOG.md remove Query Status Monitor, complete implementation 2020-05-01 01:08:23 +02:00
LICENSE Initial commit 2019-08-20 23:33:18 +02:00
README.md remove Query Status Monitor, complete implementation 2020-05-01 01:08:23 +02:00
composer.json add configurable FirePHP handler 2020-05-13 18:53:56 +02:00

README.md

Oxid eShop SQL Logger

Returns all SQL queries into console of a Browser.

Install

composer require --dev d3/oxid-sql-logger

Usage

Just set the function D3StartSQLLog() somewhere and from that point on all SQLs will be logged.

\D3StartSQLLog('specific log message');

$db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
$list = $db->getAll('SELECT * FROM oxarticles WHERE oxprice < ? LIMIT 100', [49.99]);

\D3StopSQLLog();

Screenshots

Browser:

Example all sqls

CLI:

Example CLI

Credits

Many thanks to Tobias Matthaiou for his inspiration.