35b6c48357e4c31799bb7e0910ba9fdec7a71e35
6 * A query writer which supports easily constructing queries for \pq\Connection::execParams()
9 interface WriterInterface
12 * Returns the plain constructed query as string
15 function __toString();
18 * Returns a list of parameters as array
24 * Returns a list any types associated with the params
29 * Reset the state of the query writer
34 * Write plain SQL to the query
35 * @param mixed $arg variable list of arguments, arrays will be imploded to a comm separated list
37 function write(/*...*/);
40 * Remember the parameter with any associated type and return $N to be written to the query string
41 * @param mixed $param a literal parameter, a \pq\Gateway\Table\Cell or a \pq\Query\Expr
42 * @param int $type the oid of the type of the param
44 function param($param, $type = null);
47 * An array of AND/OR criteria
48 * @param array $criteria
50 function criteria(array $criteria);