public function useDb($database)
    {
        switch ($this->driver) {
            case 'mysql':
                $this->query("USE `$database`");
                $this->dbname = $database;
                break;

            default:
                throw new \RuntimeException(sprintf('Unsupported switching database for current driver: %s', $this->driver));
        }
        return $this;
    }
public function useDb($database)
    {
        switch ($this->driver) {
            case 'mysql':
                $this->query("USE `$database`");
                $this->dbname = $database;
                break;

            default:
                throw new \RuntimeException(sprintf('Unsupported switching database for current driver: %s', $this->driver));
        }
        return $this;
    }
public function useDb ( $ database ) { switch ( $ this -> driver ) { case 'mysql' : $ this -> query ( "USE `$database`" ) ; $ this -> dbname = $ database ; break ; default : throw new \ RuntimeException ( sprintf ( 'Unsupported switching database for current driver: %s' , $ this -> driver ) ) ; } return $ this ; }
Switch to specified database

@param string $database
@return $this
Switch to specified database