/plugin/sqlite/ |
H A D | SQLiteDB.php | 9 namespace dokuwiki\plugin\sqlite; 45 if (!$plugin_controller->isEnabled('sqlite')) { 48 if (!class_exists('pdo') || !in_array('sqlite', \PDO::getAvailableDrivers())) { 64 'sqlite:' . $file, 74 // See https://www.sqlite.org/wal.html 91 * @see https://www.sqlite.org/pragma.html#pragma_optimize 167 Logger::debug('[sqlite] slow query: (' . $time . 's)', [ 434 'sqlite' => $this->helper,
|
H A D | Tools.php | 3 namespace dokuwiki\plugin\sqlite;
|
H A D | admin.php | 6 use dokuwiki\plugin\sqlite\QuerySaver; 7 use dokuwiki\plugin\sqlite\SQLiteDB; 8 use dokuwiki\plugin\sqlite\Tools; 11 * DokuWiki Plugin sqlite (Admin Component) 147 'link' => wl($ID, ['do' => 'admin', 'page' => 'sqlite']), 156 'link' => wl($ID, ['do' => 'admin', 'page' => 'sqlite', 'db' => $db, 'sectok' => getSecurityToken()]), 228 * Construct a link to the sqlite admin page with the given additional parameters 242 'page' => 'sqlite',
|
H A D | helper.php | 10 use dokuwiki\plugin\sqlite\SQLiteDB; 11 use dokuwiki\plugin\sqlite\Tools; 33 * DokuWiki Plugin sqlite (Helper Component) 53 msg('PDO SQLite support missing in this PHP install - The sqlite plugin will not work', -1); 81 return in_array('sqlite', \PDO::getAvailableDrivers());
|
H A D | plugin.info.txt | 1 base sqlite 5 name sqlite plugin 7 url http://www.dokuwiki.org/plugin:sqlite
|
/plugin/sqlite/_test/ |
H A D | GeneralTest.php | 3 namespace dokuwiki\plugin\sqlite\test; 8 * General tests for the sqlite plugin 34 $this->assertEquals('sqlite', $info['base']); 64 'Both ' . DOKU_PLUGIN . 'sqlite/conf/default.php and ' . DOKU_PLUGIN . 'sqlite/conf/metadata.php have to exist and contain the same keys.' 72 'Key $meta[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'sqlite/conf/metadata.php' 80 'Key $conf[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'sqlite/conf/default.php'
|
H A D | HelperTest.php | 3 namespace dokuwiki\plugin\sqlite\test; 22 $this->pluginsEnabled[] = 'sqlite'; 33 $SqliteHelper = plugin_load('helper', 'sqlite'); 34 if (!$SqliteHelper->init("testdb", DOKU_PLUGIN . "sqlite/_test/db")) {
|
H A D | SQLiteDBTest.php | 3 namespace dokuwiki\plugin\sqlite\test; 5 use dokuwiki\plugin\sqlite\SQLiteDB; 23 $this->pluginsEnabled[] = 'sqlite'; 35 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db"); 41 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db"); 53 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db"); 71 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db"); 85 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db"); 96 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_test/db"); 105 $db = new SQLiteDB('testdb', DOKU_PLUGIN . "sqlite/_tes [all...] |
/plugin/sqlite/helper/ |
H A D | db.php | 6 * DokuWiki Plugin sqlite (Helper Component) 16 protected $sqlite; 32 $this->sqlite = plugin_load('helper', 'sqlite'); 35 if (!$this->sqlite->init('sqlite', DOKU_PLUGIN . 'sqlite/db/')) { 36 $this->sqlite = null; 45 return $this->sqlite; 14 protected $sqlite; global() variable in helper_plugin_sqlite_db
|
/plugin/starred/ |
H A D | helper.php | 4 use dokuwiki\plugin\sqlite\SQLiteDB;
|
/plugin/struct/action/ |
H A D | cache.php | 6 use dokuwiki\plugin\sqlite\SQLiteDB; 84 $sqlite = $db->getDB(false); 85 if ($sqlite instanceof SQLiteDB) { 86 $cache->depends['files'][] = $sqlite->getDbFile();
|
H A D | entry.php | 30 protected $sqlite; 27 protected $sqlite; global() variable in action_plugin_struct_entry
|
H A D | migration.php | 6 use dokuwiki\plugin\sqlite\SQLiteDB; 53 * @param SQLiteDB $sqlite 56 protected function migration12($sqlite) 60 $tables = $sqlite->queryAll($sql); 65 $sqlite->query($sql); 76 * @param SQLiteDB $sqlite 79 protected function migration16($sqlite) 85 $tables = $sqlite->queryAll($sql); 91 $schemas = $sqlite->queryAll($sql); 101 $ok = $ok && $sqlite 52 migration12($sqlite) global() argument 74 migration16($sqlite) global() argument 232 migration17($sqlite) global() argument 306 migration18($sqlite) global() argument 323 migration19($sqlite) global() argument [all...] |
/plugin/struct/helper/ |
H A D | db.php | 12 use dokuwiki\plugin\sqlite\SQLiteDB; 18 protected $sqlite; 27 $this->sqlite = new SQLiteDB('struct', DOKU_PLUGIN . 'struct/db/'); 30 $this->sqlite->getPdo()->sqliteCreateFunction('STRUCT_JSON', [$this, 'STRUCT_JSON'], -1); 33 $this->sqlite->getPdo()->sqliteCreateFunction('STRUCT_LOOKUP', [$this, 'STRUCT_LOOKUP'], -1); 36 $this->sqlite->getPdo()->sqliteCreateFunction('IS_PUBLISHER', [$this, 'IS_PUBLISHER'], -1); 40 * @param bool $throw throw an Exception when sqlite not available or fails to load 46 if (!$this->sqlite instanceof SQLiteDB) { 48 if ($throw || defined('DOKU_UNITTEST')) throw new StructException('no sqlite'); 60 return $this->sqlite; 16 protected $sqlite; global() variable in helper_plugin_struct_db [all...] |
H A D | imexport.php | 11 use dokuwiki\plugin\sqlite\SQLiteDB; 19 private $sqlite; 39 $this->sqlite = $helper->getDB(false); 40 if (!$this->sqlite instanceof SQLiteDB) return; 42 $schemaName = $this->sqlite->escape_string($schemaName); 47 $pattern = $this->sqlite->escape_string($pattern); 51 $this->sqlite->doTransaction($sql); 66 $this->sqlite = $helper->getDB(false); 67 if (!$this->sqlite instanceof SQLiteDB) return []; 70 $patterns = $this->sqlite 15 private $sqlite; global() variable in helper_plugin_struct_imexport [all...] |
/plugin/struct/meta/ |
H A D | AccessTable.php | 25 protected $sqlite; variable in dokuwiki\\plugin\\struct\\meta\\AccessTable 128 $this->sqlite = $helper->getDB(); 234 $this->sqlite->query('BEGIN TRANSACTION'); 239 $ok = $ok && $this->sqlite->query( 251 $ok = $ok && $this->sqlite->query( 261 $this->sqlite->query('ROLLBACK TRANSACTION'); 264 $this->sqlite->query('COMMIT TRANSACTION'); 337 $ok = $ok && $this->sqlite->query($sql, $query); 445 return $this->sqlite->queryAll($sql, $opt); 638 return $this->sqlite [all...] |
H A D | AccessTableGlobal.php | 28 $this->sqlite->query($sql, $this->rid); 30 $this->sqlite->query($sql, $this->rid); 119 $this->rid = $this->sqlite->queryValue("SELECT rid FROM $this->stable WHERE ROWID = last_insert_rowid()");
|
H A D | AccessTablePage.php | 59 $ret = $this->sqlite->queryValue($sql, $opts); 82 $ok = $this->sqlite->query( 87 return $ok && $this->sqlite->query(
|
H A D | Assignments.php | 19 protected $sqlite; 51 $this->sqlite = $helper->getDB(); 63 $this->patterns = $this->sqlite->queryAll($sql); 77 $ok = (bool)$this->sqlite->query($sql, [$pattern, $table]); 98 $ok = (bool)$this->sqlite->query($sql, [$pattern, $table]); 105 $pagerows = $this->sqlite->queryAll($sql, [$table]); 131 $tablerows = $this->sqlite->queryAll($sql, [$pid]); 154 $ok = (bool)$this->sqlite->query($sql); 161 $ok = $ok && (bool)$this->sqlite->query($sql); 179 return (bool)$this->sqlite 17 protected $sqlite; global() variable in dokuwiki\\plugin\\struct\\meta\\Assignments [all...] |
H A D | CSVImporter.php | 23 protected $sqlite; variable in dokuwiki\\plugin\\struct\\meta\\CSVImporter 59 $this->sqlite = $db->getDB(true);
|
H A D | PageMeta.php | 8 protected $sqlite; variable in dokuwiki\\plugin\\struct\\meta\\PageMeta 22 $this->sqlite = $helper->getDB(); 42 $data = $this->sqlite->queryRecord($sql, [$this->pid]); 52 $this->sqlite->query($sql, [$this->pid, $this->title, $this->lasteditor, $this->lastrev, $this->lastsummary]);
|
H A D | Schema.php | 5 use dokuwiki\plugin\sqlite\SQLiteDB; 24 protected $sqlite; variable in dokuwiki\\plugin\\struct\\meta\\Schema 64 $this->sqlite = $helper->getDB(); 87 $schema = $this->sqlite->queryAll($sql, $opt); 108 $rows = $this->sqlite->queryAll($sql, [$this->id]); 194 $this->sqlite->query('BEGIN TRANSACTION'); 197 $this->sqlite->query($sql . 'data_' . $this->table); 198 $this->sqlite->query($sql . 'multi_' . $this->table); 201 $this->sqlite->query($sql); 204 $this->sqlite [all...] |
H A D | SchemaBuilder.php | 5 use dokuwiki\plugin\sqlite\SQLiteDB; 48 protected $sqlite; 69 $this->sqlite = $this->helper->getDB(); 84 $this->sqlite->query('BEGIN TRANSACTION'); 99 $this->sqlite->query('ROLLBACK TRANSACTION'); 102 $this->sqlite->query('COMMIT TRANSACTION'); 158 $this->sqlite->query($sql, [$this->table, $this->time, $this->user, $config]); 159 $this->newschemaid = $this->sqlite->queryValue('SELECT last_insert_rowid()'); 188 $ok = $this->sqlite->saveRecord('types', $newEntry); 190 $newTid = $this->sqlite 47 protected $sqlite; global() variable in dokuwiki\\plugin\\struct\\meta\\SchemaBuilder [all...] |
H A D | Search.php | 30 protected $sqlite; variable in dokuwiki\\plugin\\struct\\meta\\Search 71 $this->sqlite = $this->dbHelper->getDB(); 76 return $this->sqlite; 471 $res = $this->sqlite->query($sql, $opts);
|
H A D | SearchCloud.php | 110 $res = $this->sqlite->query($sql, $opts);
|