src/SQLEngineRW.php
public function query($query, $return_set = false, $buffered = true){

		if(strpos(ltrim($query), 'SELECT ') === 0){

			return $this->_Reader->query($query, $return_set, $buffered);
		}
		else{

			return $this->_Writer->query($query, $return_set, $buffered);
		}
	}
public function query($query, $return_set = false, $buffered = true){

		if(strpos(ltrim($query), 'SELECT ') === 0){

			return $this->_Reader->query($query, $return_set, $buffered);
		}
		else{

			return $this->_Writer->query($query, $return_set, $buffered);
		}
	}
public function query ( $ query , $ return_set = false , $ buffered = true ) { if ( strpos ( ltrim ( $ query ) , 'SELECT ' ) === 0 ) { return $ this -> _Reader -> query ( $ query , $ return_set , $ buffered ) ; } else { return $ this -> _Writer -> query ( $ query , $ return_set , $ buffered ) ; } }
Send a query to the correct SQLEngine

<p>SELECT-queries are sent to the Reader-instance, all other queries are
send to the Writer-instance.</p>

@param string $query
@param boolean $return_set
@param boolean $buffered
@return SQLResult
Send a query to the correct SQLEngine