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