1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-01 11:50:15 +02:00

changed profiler API; IDibiProfiler replaced with DibiConnection::$onEvent; DibiProfiler split to DibiFileLogger, DibiFirePhpLogger and DibiNettePanel (BC break!)

This commit is contained in:
David Grudl
2012-01-02 21:35:41 +01:00
parent 1d4e86fe2b
commit 53c2ef55d8
10 changed files with 505 additions and 489 deletions

View File

@@ -13,14 +13,14 @@ date_default_timezone_set('Europe/Prague');
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'data/sample.sdb',
'profiler' => TRUE,
// enable query logging to this file
'profiler' => array(
'run' => TRUE,
'file' => 'data/log.sql',
),
));
// enable query logging to this file
dibi::getProfiler()->setFile('data/log.sql');
try {
$res = dibi::query('SELECT * FROM [customers] WHERE [customer_id] = %i', 1);