public function get($name = null)
    {
        if ($name === null) {
            $name = $this->mainname;
        }
        if (!isset($this->dbs[$name])) {
            throw new Exceptions\StorageNotFound($name);
        }
        return $this->dbs[$name];
    }
public function get($name = null)
    {
        if ($name === null) {
            $name = $this->mainname;
        }
        if (!isset($this->dbs[$name])) {
            throw new Exceptions\StorageNotFound($name);
        }
        return $this->dbs[$name];
    }
public function get ( $ name = null ) { if ( $ name === null ) { $ name = $ this -> mainname ; } if ( ! isset ( $ this -> dbs [ $ name ] ) ) { throw new Exceptions \ StorageNotFound ( $ name ) ; } return $ this -> dbs [ $ name ] ; }
Returns a database instance by its name

@param string $name [optional]
the name (main database by default)
@return \go\DB\DB
@throws \go\DB\Exceptions\StorageNotFound
this name does not exists in the storage
Returns a database instance by its name