6 * A query writer which supports easily constructing queries for \pq\Connection::execParams()
8 interface WriterInterface
11 * Returns the plain constructed query as string
14 function __toString();
17 * Returns a list of parameters as array
23 * Returns a list any types associated with the params
28 * Reset the state of the query writer
33 * Write plain SQL to the query
34 * @param mixed $arg variable list of arguments, arrays will be imploded to a comm separated list
36 function write(/*...*/);
39 * Remember the parameter with any associated type and return $N to be written to the query string
40 * @param mixed $param a literal parameter, a \pq\Gateway\Table\Cell or a \pq\Query\Expr
41 * @param int $type the oid of the type of the param
43 function param($param, $type = null);
46 * An array of AND/OR criteria
47 * @param array $criteria
49 function criteria(array $criteria);