method dbs documentation in bbn\Appui\Database

Returns the list of DBs available for the given connection.

function(string $host = '', string $engine = 'mysql') { if (!$host) { $arr = $this->o->fullOptions(self::getOptionId('dbs', $engine)); } elseif (!bbn\Str::isUid($host)) { $host = $this->hostId($host, $engine); } if ($host) { $o = &$this->o; $arr = array_map( function ($a) use ($o) { return $o->parent($a['id_parent']); }, $this->o->getAliases($host) ); } if (!empty($arr)) { $res = array_map( function ($a) { return [ 'id' => $a['id'], 'text' => $a['text'], 'name' => $a['code'] ]; }, $arr ); return $res; } return []; }

Returns the list 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.