pq\Result pq\Connection::getResult()

Fetch the result of an asynchronous query.

If the query hasn't finished yet, the call will block until the result is available.

Params:

None.

Returns:

Throws:

Example:


<?php

$conn 
= new pq\Connection;
$conn->execAsync("SELECT 1");

// ...

$result $conn->getResult();

?>