method countDbs documentation in bbn\Appui\Database
Returns the number of DBs available for the given connection.
function(string $host = '', string $engine = 'mysql')
{
if (!$host) {
$num = $this->o->count(self::getOptionId('dbs', $engine));
return $num;
}
elseif (!bbn\Str::isUid($host)) {
$host = $this->hostId($host, $engine);
}
$all = $this->o->getAliases($host);
$num = $all ? count($all) : 0;
return $num;
}
Returns the number of DBs available for the given connection. 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-2024
BBN Solutions