method tableFullName documentation in bbn\Db\Languages\Sql

Returns a table's full name i.e. database.table

function(string $table, bool $escaped = false) { $bits = explode('.', $table); if (\count($bits) === 3) { $db = trim($bits[0], ' ' . $this->qte); $table = trim($bits[1]); } elseif (\count($bits) === 2) { $db = trim($bits[0], ' ' . $this->qte); $table = trim($bits[1], ' ' . $this->qte); } else { $db = $this->getCurrent(); $table = trim($bits[0], ' ' . $this->qte); } if (Str::checkName($db) && Str::checkName($table)) { return $escaped ? $this->escape("$db.$table") : "$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.