public function setDatabase($database)
    {
        $this->_options[ConnectionOptions::OPTION_DATABASE] = $database;
        $this->_database                                    = $database;

        $this->updateHttpHeader();
    }
public function setDatabase($database)
    {
        $this->_options[ConnectionOptions::OPTION_DATABASE] = $database;
        $this->_database                                    = $database;

        $this->updateHttpHeader();
    }
public function setDatabase ( $ database ) { $ this -> _options [ ConnectionOptions :: OPTION_DATABASE ] = $ database ; $ this -> _database = $ database ; $ this -> updateHttpHeader ( ) ; }
Set the database to use with this connection

Sets the database to use with this connection, for example: 'my_database'<br>
Further calls to the database will be addressed to the given database.

@param string $database the database to use
Set the database to use with this connection