method tableFullName documentation in bbn\Db\Languages\Sqlite
Returns a table's full name i.e. database.table
function(string $table, bool $escaped = false)
{
$bits = explode('.', str_replace($this->qte, '', $table));
if (\count($bits) === 2) {
$db = trim($bits[0]);
$table = trim($bits[1]);
}
else {
$db = $this->getCurrent();
$table = trim($bits[0]);
}
if (bbn\Str::checkName($table) && bbn\Str::checkName($db)) {
if ($db === 'main') {
return $escaped ? $this->qte.$table.$this->qte : $table;
}
return $escaped
? $this->qte.$db.$this->qte.'.'.$this->qte.$table.$this->qte
: $db.'.'.$table;
}
return null;
}
Returns a table's full name i.e. database.table 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.
© 2011-2023
BBN Solutions