method escape documentation in bbn\Db\Languages\Sql
Returns a database item expression escaped like database, table, column, key names
function(string $item)
{
$items = explode('.', str_replace($this->qte, '', $item));
$r = [];
foreach ($items as $m) {
if (!Str::checkName($m)) {
throw new \Exception(X::_("Illegal name %s for the column", $m));
}
$r[] = $this->qte . $m . $this->qte;
}
return implode('.', $r);
}
Returns a database item expression escaped like database, table, column, key names 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