protected function isSelect($query)
    {
        if( $query instanceof Query ) {
            return $query instanceof Select;
        } else {
            return (boolean) preg_match('/^(SELECT|SHOW)/i', trim($query));
        }
    }
protected function isSelect($query)
    {
        if( $query instanceof Query ) {
            return $query instanceof Select;
        } else {
            return (boolean) preg_match('/^(SELECT|SHOW)/i', trim($query));
        }
    }
protected function isSelect ( $ query ) { if ( $ query instanceof Query ) { return $ query instanceof Select ; } else { return ( boolean ) preg_match ( '/^(SELECT|SHOW)/i' , trim ( $ query ) ) ; } }
Tests for queries that do not modify.

@param Query|string $query
@return boolean
Tests for queries that do not modify .