method countTables documentation in bbn\Appui\Database
Returnms the number of tables in the given database.
function(string $db, string $host = '', string $engine = 'mysql')
{
if (!bbn\Str::isUid($db)) {
if (Str::isUid($host)) {
$db = $this->dbId($db, $host);
}
else {
$db = $this->dbId($db, $host, $engine);
}
}
if (bbn\Str::isUid($db) && ($id_parent = $this->o->fromCode('tables', $db))) {
$num = $this->o->count($id_parent);
return $num ?: 0;
}
return null;
}
Returnms the number of tables in the given database. 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