Lines Matching refs: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('watchcycle', DOKU_PLUGIN . 'watchcycle/db/')) {
56 throw new \Exception('Couldn\'t init sqlite.');
58 $this->sqlite = null;
63 $this->sqlite->create_function('DAYS_AGO', [$helper, 'daysAgo'], 1);
73 if ($this->sqlite && $conf['metadir'] != substr($this->sqlite->getAdapter()->getDbFile(), 0, $len)) {
76 if (!$this->sqlite) {
77 msg($this->getLang('error sqlite missing'), -1);
80 return $this->sqlite;
90 if (!$this->sqlite) {
93 $file = $this->sqlite->getAdapter()->getDbFile();