Lines Matching defs:opt
320 * Get a config value from the opt table
322 * @param string $opt Config name
327 public function getOpt($opt, $default = null)
329 $value = $this->queryValue("SELECT val FROM opts WHERE opt = ?", [$opt]);
337 * Set a config value in the opt table
339 * @param $opt
343 public function setOpt($opt, $value)
345 $this->exec('REPLACE INTO opts (opt,val) VALUES (?,?)', [$opt, $value]);
466 * Read the current version from the opt table
468 * The opt table is created here if not found
482 'SQLite: Could not read dbversion from opt table due to unexpected error',
494 // add the opt table - if this fails too, let the exception bubble up
495 $sql = "CREATE TABLE IF NOT EXISTS opts (opt TEXT NOT NULL PRIMARY KEY, val NOT NULL DEFAULT '')";