pq\Result pq\Connection::exec(string $query)

Execute one or multiple SQL queries on the connection.

NOTE:
Only the last result will be returned, if the query string contains more than one SQL query.

Params:

Returns:

Throws:

Example:

<?php

$connection = new pq\Connection;
$result = $connection->exec("SELECT 1");

?>