mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 21:58:10 +02:00
examples: files renamed
This commit is contained in:
19
examples/importing-dump-from-file.php
Normal file
19
examples/importing-dump-from-file.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">
|
||||
|
||||
<h1>Importing SQL Dump from File | dibi</h1>
|
||||
|
||||
<?php
|
||||
|
||||
require_once 'Nette/Debug.php';
|
||||
require_once '../dibi/dibi.php';
|
||||
|
||||
|
||||
dibi::connect(array(
|
||||
'driver' => 'sqlite',
|
||||
'database' => 'data/sample.sdb',
|
||||
));
|
||||
|
||||
|
||||
$count = dibi::loadFile('compress.zlib://data/sample.dump.sql.gz');
|
||||
|
||||
echo 'Number of SQL commands:', $count;
|
Reference in New Issue
Block a user