%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/losik.varak.net/vendor/dibi/dibi/examples/
Upload File :
Create Path :
Current File : //www/varak.net/losik.varak.net/vendor/dibi/dibi/examples/importing-dump-from-file.php

<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Importing SQL Dump from File | Dibi</h1>

<?php

if (@!include __DIR__ . '/../vendor/autoload.php') {
	die('Install packages using `composer install`');
}


$dibi = new Dibi\Connection([
	'driver' => 'sqlite',
	'database' => 'data/sample.s3db',
]);


$count = $dibi->loadFile('compress.zlib://data/sample.dump.sql.gz');

echo 'Number of SQL commands:', $count;

Zerion Mini Shell 1.0