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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user