1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 05:07:36 +02:00

- added DibiProfiler (experimental)

- removed dibi::addHandler() & dibi::startLogger()
This commit is contained in:
David Grudl
2008-10-22 11:44:11 +00:00
parent 1e33b67e37
commit 32dd3969a3
8 changed files with 337 additions and 179 deletions

View File

@@ -3,17 +3,18 @@
require_once '../dibi/dibi.php';
// enable log to this file, TRUE means "log all queries"
dibi::startLogger('log.sql', TRUE);
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'sample.sdb',
'profiler' => TRUE,
));
// enable log to this file
dibi::getProfiler()->setFile('log.sql');
try {
$res = dibi::query('SELECT * FROM [customers] WHERE [customer_id] = %i', 1);

View File

@@ -7,6 +7,7 @@ require_once '../dibi/dibi.php';
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'sample.sdb',
'profiler' => TRUE,
));