public function sqlQuery($queryString)
    {
        try {
            // execute query
            $query = $this->connection->prepare(
                $queryString,
                [\PDO::ATTR_CURSOR => \PDO::CURSOR_FWDONLY]
            );
            $query->execute();

            return $query;
        } catch (\PDOException $e) {
            throw new \Exception($e->getMessage());
        }
    }
public function sqlQuery($queryString)
    {
        try {
            // execute query
            $query = $this->connection->prepare(
                $queryString,
                [\PDO::ATTR_CURSOR => \PDO::CURSOR_FWDONLY]
            );
            $query->execute();

            return $query;
        } catch (\PDOException $e) {
            throw new \Exception($e->getMessage());
        }
    }
public function sqlQuery ( $ queryString ) { try { // execute query $ query = $ this -> connection -> prepare ( $ queryString , [ \ PDO :: ATTR_CURSOR => \ PDO :: CURSOR_FWDONLY ] ) ; $ query -> execute ( ) ; return $ query ; } catch ( \ PDOException $ e ) { throw new \ Exception ( $ e -> getMessage ( ) ) ; } }
Executes a SQL query on the database.

@param string $queryString SPARQL- or SQL query to execute

@return \PDOStatement instance of PDOStatement which contains the result of the previous query

@throws \Exception If $queryString is invalid
Executes a SQL query on the database .