method __construct documentation in bbn\Db\Languages\Sqlite


function(array $cfg = []) { if (!\extension_loaded('pdo_sqlite')) { throw new \Exception('The SQLite driver for PDO is not installed...'); } $cfg = $this->getConnection($cfg); try { $this->cacheInit(); $this->current = $cfg['db']; $this->host = $cfg['host']; $this->connection_code = $cfg['host']; $this->pdo = new \PDO(...$cfg['args']); $this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); $this->cfg = $cfg; $this->setHash($cfg['args']); } catch (\PDOException $e) { $err = X::_("Impossible to create the connection"). " {$cfg['engine']}/Connection ". $this->getEngine()." to {$this->host} " .X::_("with the following error").$e->getMessage(); throw new \Exception($err); } }

Constructor BBN is a suite of PHP and JS libraries and VueJS components - all open-source!, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.