Home
last modified time | relevance | path

Searched +full:db +(+path:plugin +path:sqlite) -(+path:plugin +path:sqlite +path:lang) (Results 1 – 12 of 12) sorted by relevance

/plugin/sqlite/
H A DQuerySaver.php9 protected $db; variable in dokuwiki\\plugin\\sqlite\\QuerySaver
17 $this->db = new SQLiteDB('sqlite', DOKU_PLUGIN . 'sqlite/db/');
30 'sqlitedb' => $this->db,
37 $sql = 'INSERT INTO queries (db, name, sql) VALUES (?, ?, ?)';
38 $this->db->exec($sql, [$this->upstream, $name, $query]);
51 $sql = 'SELECT sql FROM queries WHERE db = ? AND name = ?';
52 return $this->db->queryValue($sql, [$this->upstream, $name]);
63 'sqlitedb' => $this->db,
69 $sql = 'DELETE FROM queries WHERE db = ? AND name = ?';
70 $this->db->exec($sql, [$this->upstream, $name]);
[all …]
H A Dadmin.php19 protected $db; variable in admin_plugin_sqlite
43 if ($INPUT->str('db') && checkSecurityToken()) {
45 $this->db = new SQLiteDB($INPUT->str('db'), '');
46 $this->querySaver = new QuerySaver($this->db->getDBName());
56 $exportfile = $conf['tmpdir'] . '/' . $this->db->getDbName() . '.sql';
57 $this->db->dumpToFile($exportfile);
59 … header('Content-Disposition: attachment; filename="' . $this->db->getDbName() . '.sql";');
73 $this->db->getPdo()->beginTransaction();
75 $this->db->exec($s);
77 $this->db->getPdo()->commit();
[all …]
H A DREADME8 PDO supports sqlite3 only, and this plugin will look for db files with extension *.sqlite3
H A DFunctions.php39 * @link http://devzone.zend.com/article/863-SQLite-Lean-Mean-DB-Machine
62 * @link http://devzone.zend.com/article/863-SQLite-Lean-Mean-DB-Machine
H A DSQLiteDB.php82 … // schema dir is empty, when accessing the DB from Admin interface instead of plugin context
104 * Do not serialize the DB connection
502 * Get the version this db should have
/plugin/sqlite/_test/
H A DSQLiteDBTest.php35 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db");
36 $this->assertInstanceOf(\PDO::class, $db->getPdo());
41 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db");
44 $stmt = $db->query($sql, ['music']);
53 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db");
57 $result = $db->queryRecord($sql, ['one', 'two', 'three']);
60 $result = $db->queryRecord($sql, 'one', 'two', 'three');
65 $result = $db->queryRecord($sql, ['first' => 'one', 'second' => 'two', 'third' => 'three']);
71 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db");
74 $insid = $db->exec($sql, ['test', 'test']);
[all …]
H A DHelperTest.php34 if (!$SqliteHelper->init("testdb", DOKU_PLUGIN . "sqlite/_test/db")) {
/plugin/blogtng/helper/
Dsqlite.php13 protected $db = null; variable in helper_plugin_blogtng_sqlite
31 if($this->db === null) {
32 $this->db = plugin_load('helper', 'sqlite');
33 if($this->db === null) {
37 if(!$this->db->init('blogtng', dirname(__FILE__) . '/../db/')) {
38 $this->db = null;
42 return $this->db;
/plugin/sql2wiki/action/
Dsqlite.php23 protected function queue_put($db, $query_name='') { argument
24 if (!isset($this->queue[$db])) {
25 $this->queue[$db] = [];
29 $this->queue[$db] = true;
32 if (is_array($this->queue[$db])) {
33 $this->queue[$db][$query_name] = true;
41 $db = $query['db'];
43 return isset($queue[$db]) && ($queue[$db] === true || isset($queue[$db][$query_name]));
110 $db = $event->data['sqlitedb']->getDbName();
111 $this->queue_put($db);
[all …]
/plugin/sqlite/db/
H A Dupdate0001.sql4 db TEXT NOT NULL, field
7 PRIMARY KEY (db, name)
/plugin/combo/ComboStrap/
H A DSqlite.php225 $databaseDir = DOKU_PLUGIN . PluginUtility::PLUGIN_BASE_NAME . "/db/$databaseName";
251 fwrite(STDERR, "Meta is a subdirectory of the db \n");
253 fwrite(STDERR, "Meta is a not subdirectory of the db \n");
318 $db = $adapter->getDb();
320 $db = $adapter->getPdo();
322 if ($db === null) {
376 * Null to close the db explanation and bug
/plugin/sqlite/helper/
H A Ddb.php35 if (!$this->sqlite->init('sqlite', DOKU_PLUGIN . 'sqlite/db/')) {