private function runQuery(Query $query, $executeQueries = false)
    {
        $this->playedQueries[] = $query;
        if ($executeQueries) {
            $this->connection->executeQuery((string)$query);
        }
    }
private function runQuery(Query $query, $executeQueries = false)
    {
        $this->playedQueries[] = $query;
        if ($executeQueries) {
            $this->connection->executeQuery((string)$query);
        }
    }
private function runQuery ( Query $ query , $ executeQueries = false ) { $ this -> playedQueries [ ] = $ query ; if ( $ executeQueries ) { $ this -> connection -> executeQuery ( ( string ) $ query ) ; } }
Run a query if execute query is true
else simply add query to played queries stack

@param Query $query
@param bool $executeQueries
Run a query if execute query is true else simply add query to played queries stack