if (class_exists("SQLite3") && $_GET["ext"] != "pdo") {
class SqliteDb {
- public $extension = "SQLite3", $server_info, $affected_rows, $errno, $error;
- private $link;
+ public $extension = "SQLite3", $flavor = '', $server_info, $affected_rows, $errno, $error;
+ private $link, $result;
function __construct($filename) {
$this->link = new \SQLite3($filename);
);
}
+
+ function multi_query($query) {
+ return $this->result = $this->query($query);
+ }
+
function store_result() {
return $this->result;
}
+ function next_result() {
+ return false;
+ }
+
function result($query, $field = 0) {
$result = $this->query($query);
if (!is_object($result)) {
if (class_exists('Adminer\SqliteDb')) {
class Db extends SqliteDb {
- public $flavor = '';
-
function __construct() {
parent::__construct(":memory:");
$this->query("PRAGMA foreign_keys = 1");