workflo.macros.query.om-util

dispatch-key

(dispatch-key expr)

Returns the key the results for a query expression will be stored under in the query result map. E.g. the query {:foo [:bar :baz]} would store its results under :foo, whereas the query {:bar [:foo]} would store its results under :bar.

expr-type

(expr-type expr)

Returns the type of the expression as a keyword (e.g. :keyword, :ident, :join, :param).

ident-expr?

(ident-expr? expr)

Returns true if expr is an ident expression.

ident-name

Returns the name of an ident expression.

join-expr?

(join-expr? expr)

Returns true if expr is a join expression.

join-source

Returns the source of a join query expression.

join-target

Return the target of a join query expression.

param-expr?

(param-expr? expr)

Returns true if q is a parameterized query expression.

param-map

Returns the parameter map of a parameterized query expression.

param-query

(param-query expr)

Returns the query of a parameterized query expression.