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

* removed $throwExceptions (always throws)

* added DibiLogger, dibi::notify(), dibi::startLogger()
* miniprofiler dibi::$numOfQueries, $totalTime, $elapsedTime
* simplified DibiException, added DibiDatabaseException
* Dibi::nativeQuery splitted into DibiDriver::doQuery & nativeQuery()
* moved dibi::dumpResult -> DibiResult::dump()
* moved dibi::test() -> DibiDriver::test()
* DibiTranslator generates $mask
This commit is contained in:
David Grudl
2007-09-29 07:53:25 +00:00
parent 0d8478d1d3
commit d35a850311
26 changed files with 689 additions and 703 deletions

View File

@@ -1,10 +1,8 @@
<h1>dibi dump example</h1>
<?php
require_once '../dibi/dibi.php';
if (function_exists('date_default_timezone_set'))
date_default_timezone_set('Europe/Prague');
dibi::connect(array(
'driver' => 'sqlite',
@@ -19,17 +17,14 @@ INNER JOIN [orders] USING ([product_id])
INNER JOIN [customers] USING ([customer_id])
');
// get last SQL
$sql = dibi::$sql;
echo '<h2>dibi::dump()</h2>';
// dump it
echo '<h1>dibi::dump()</h1>';
dibi::dump($sql);
// dump last query (dibi::$sql)
dibi::dump();
// dump result table
echo '<h1>dibi::dumpResult()</h1>';
echo '<h2>DibiResult::dump()</h2>';
dibi::dumpResult($res);
$res->dump();