function sqlite2($dbPath) { $this->dbVersion = 2; if ($dbPath == ':memory:') { $this->readOnly = false; } else { $this->readOnly = !is_writable($dbPath); } parent::sqlite($dbPath); $this->connect($dbPath); }
function sqlite3($dbPath) { $this->dbVersion = 3; if ($dbPath == ':memory:') { $this->readOnly = false; } else { $this->readOnly = !is_writable($dbPath); } parent::sqlite($dbPath); if (class_exists('PDO') && $this->connect($dbPath)) { return $this->connId; } else { $this->getError(); return false; } }