1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

numOfQueries and totalTime moved to profilers

This commit is contained in:
David Grudl
2012-02-06 18:15:52 +01:00
parent 06642ec9ee
commit 9b7b964696
5 changed files with 32 additions and 19 deletions

View File

@@ -18,6 +18,20 @@ require_once '../dibi/dibi.php';
ndebug();
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'data/sample.sdb',
'profiler' => array(
'run' => TRUE,
)
));
// throws error because SQL is bad
dibi::query('SELECT * FROM customers WHERE customer_id < ?', 38);
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'data/sample.sdb',