mdref.json config
[mdref/mdref-pq] / pq / Connection / execParamsAsync.md
1 # pq\Result pq\Connection::execParamsAsync(string $query, array $params[, array $types = NULL, [callable $cb = NULL]])
2
3 [Asynchronously](pq/Connection/:%20Asynchronous%20Usage) [execute an SQL query](pq/Connection:%20Executing%20Queries) with properly escaped parameters substituted.
4
5 > ***NOTE***:
6 If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row.
7
8 ## Params:
9
10 * string $query
11 The query to execute.
12 * array $params
13 The parameter list to substitute.
14 * Optional array $types = NULL
15 Corresponding list of type OIDs for the parameters.
16 * Optional callable $cb as function(\pq\Result $res) : void
17 Result handler callback.
18
19 ## Throws:
20
21 * pq\Exception\InvalidArgumentException
22 * pq\Exception\RuntimeException
23 * pq\Exception\BadMethodCallException
24