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('ireadit', DOKU_PLUGIN . 'ireadit/db/')) {
56 throw new \Exception('Couldn\'t init sqlite.');
58 $this->sqlite = null;
64 * @param bool $throw throw an Exception when sqlite not available?
72 if ($this->sqlite && $conf['metadir'] != substr($this->sqlite->getAdapter()->getDbFile(), 0, $len)) {
75 if(!$this->sqlite && $throw) {
76 throw new \Exception('The ireadit plugin requires the sqlite plugin. Please install and enable it.');
78 return $this->sqlite;
88 if (!$this->sqlite) {
91 $file = $this->sqlite->getAdapter()->getDbFile();