src/Db/WpDbAdapter.php
public function query( $query, $options = 0 ) {

		$result                   = $this->wpdb->get_results( (string) $query );
		$this->last_affected_rows = (int) $this->wpdb->rows_affected;
		$this->last_insert_id     = (int) $this->wpdb->insert_id;
		$this->last_statement     = NULL;
		if ( ! is_array( $result ) )
			$result = [];

		return new GenericResult( $result );
	}
public function query( $query, $options = 0 ) {

		$result                   = $this->wpdb->get_results( (string) $query );
		$this->last_affected_rows = (int) $this->wpdb->rows_affected;
		$this->last_insert_id     = (int) $this->wpdb->insert_id;
		$this->last_statement     = NULL;
		if ( ! is_array( $result ) )
			$result = [];

		return new GenericResult( $result );
	}
public function query ( $ query , $ options = 0 ) { $ result = $ this -> wpdb -> get_results ( ( string ) $ query ) ; $ this -> last_affected_rows = ( int ) $ this -> wpdb -> rows_affected ; $ this -> last_insert_id = ( int ) $ this -> wpdb -> insert_id ; $ this -> last_statement = NULL ; if ( ! is_array ( $ result ) ) $ result = [ ] ; return new GenericResult ( $ result ) ; }
Executes a plain SQL query and return the results

@param $query
@param int $options

@return \WpDbTools\Type\Result
Executes a plain SQL query and return the results