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

* dibi::loadFile() extreme fast SQL dump loading

This commit is contained in:
David Grudl
2008-01-12 01:20:23 +00:00
parent de4a882788
commit da0a239d6d
3 changed files with 65 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
<h1>dibi import SQL dump example</h1>
<pre>
<?php
require_once '../dibi/dibi.php';
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'sample.sdb',
));
$count = dibi::loadFile('compress.zlib://dump.sql.gz');
echo 'Number of SQL commands:', $count;