6 * An executor of \pq\Query\Writer queries
9 interface ExecutorInterface
extends \SplSubject
13 * @return \pq\Connection
15 function getConnection();
19 * @param \pq\Connection $conn
20 * @return \pq\Query\ExecutorInterface
22 function setConnection(\pq\Connection
$conn);
25 * Execute the query and return the \pq\Result through $callback
26 * @param \pq\Query\WriterInterface $query
27 * @param callable $callback
28 * @return mixed the result of the callback
30 function execute(WriterInterface
$query, callable
$callback);
33 * @return \pq\Query\WriterInterface