1 # pq\Query\Writer pq\Query\Writer::criteria(array $criteria)
3 Write nested AND/OR criteria to the query string.
8 Nested AND/OR criteria.
12 * pq\Query\Writer, self.
20 $q = new Query\Writer;
21 $q->write("select * from account where")
23 ["id >" => 1, "id <" => 5],
27 var_dump((string) $q, $q->getParams());
33 string(84) "select * from account where ( ( ( id > $1 ) AND ( id < $2 ) ) OR ( ( name = $3 ) ) )"