Lines Matching defs:sqlite
18 protected $sqlite;
35 /** @var helper_plugin_sqlite $sqlite */
36 $this->sqlite = plugin_load('helper', 'sqlite');
37 if (!$this->sqlite) {
39 throw new \Exception('Couldn\'t load sqlite.');
44 if ($this->sqlite->getAdapter()->getName() != DOKU_EXT_PDO) {
46 throw new \Exception('Couldn\'t load PDO sqlite.');
48 $this->sqlite = null;
51 $this->sqlite->getAdapter()->setUseNativeAlter(true);
54 if (!$this->sqlite->init('structnotification', DOKU_PLUGIN . 'structnotification/db/')) {
56 throw new \Exception('Couldn\'t init sqlite.');
58 $this->sqlite = null;
70 if ($this->sqlite && $conf['metadir'] != substr($this->sqlite->getAdapter()->getDbFile(), 0, $len)) {
73 if (!$this->sqlite) {
74 msg($this->getLang('error sqlite missing'), -1);
77 return $this->sqlite;
87 if (!$this->sqlite) {
90 $file = $this->sqlite->getAdapter()->getDbFile();