method change documentation in bbn\Db\Languages\Sqlite

Changes the current database to the given one.

function(string $db) { if (strpos($db, '.') === false) { $db .= '.sqlite'; } $info = X::pathinfo($db); if (($info['filename'] !== $this->getCurrent()) && file_exists($this->host.$db) && strpos($db, $this->qte) === false) { $this->rawQuery("ATTACH '".$this->host.$db."' AS ".$info['filename']); $this->current = $info['filename']; return true; } return false; }

Changes the current database to the given one. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

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