comlake.core.qast

Query abstract syntax tree parser.

getter-psql

(getter-psql coll)
Return a getter of given fields for PostgreSQL.

json->fn

(json->fn reader)
Parse JSON input stream reader into programmatic predicate.
Return nil in case of an invalid AST.

json->psql

(json->psql reader)
Parse JSON input stream reader into PostgreSQL predicate.
Return nil in case of an invalid AST.

mkfn

(mkfn op)
Construct a function returning a lambda lazily applying given operator.

not-nil-fn

(not-nil-fn args row)
Check for nil in operations result.

ops-fn

Supported query operators and their predicates for number of operands.

ops-psql

Supported query operators and their predicates for number of operands.

qast->fn

(qast->fn ast)
Parse query AST into programmatic predicate.
Return nil in case of an invalid AST.

qast->psql

(qast->psql ast)
Parse query AST into PostgreSQL predicate.
Return nil in case of an invalid AST.