public function listDatabases($condition = [], $options = [])
    {
        if ($this->databaseName === null) {
            $this->databaseName = 'admin';
        }
        $this->document = $this->db->getQueryBuilder()->listDatabases($condition, $options);

        $cursor = $this->execute();
        $result = current($cursor->toArray());

        if (empty($result['databases'])) {
            return [];
        }
        return $result['databases'];
    }
public function listDatabases($condition = [], $options = [])
    {
        if ($this->databaseName === null) {
            $this->databaseName = 'admin';
        }
        $this->document = $this->db->getQueryBuilder()->listDatabases($condition, $options);

        $cursor = $this->execute();
        $result = current($cursor->toArray());

        if (empty($result['databases'])) {
            return [];
        }
        return $result['databases'];
    }
public function listDatabases ( $ condition = [ ] , $ options = [ ] ) { if ( $ this -> databaseName === null ) { $ this -> databaseName = 'admin' ; } $ this -> document = $ this -> db -> getQueryBuilder ( ) -> listDatabases ( $ condition , $ options ) ; $ cursor = $ this -> execute ( ) ; $ result = current ( $ cursor -> toArray ( ) ) ; if ( empty ( $ result [ 'databases' ] ) ) { return [ ] ; } return $ result [ 'databases' ] ; }
Returns the list of available databases.
@param array $condition filter condition.
@param array $options options list.
@return array database information
Returns the list of available databases .