Liking cljdoc? Tell your friends :D

nanoql.core


compileclj/s

(compile query)

Compiles a query definition to query AST. See Query-Def schema.

Compiles a query definition to query AST.
See Query-Def schema.
sourceraw docstring

differenceclj/s

(difference a b)

Difference of two queries. Given A and B, what A has that B doesn't?

Difference of two queries.
Given A and B, what A has that B doesn't?
sourceraw docstring

executeclj/s

(execute query node)
(execute query node ctx)

Executes a query against a node or a value in an optional context. A node is:

  • a map of nodes and/or values
  • a vector of nodes and/or values
  • a function (ctx, AST -> node or value)
  • a function (ctx, AST -> promise with node or value) A value is anything else. Nodes get queried according to the query's structure, values get returned as they are.
Executes a query against a node or a value in an optional context.
A node is:
- a map of nodes and/or values
- a vector of nodes and/or values
- a function (ctx, AST -> node or value)
- a function (ctx, AST -> promise with node or value)
A value is anything else.
Nodes get queried according to the query's structure, values get returned as they are.
sourceraw docstring

intersectionclj/s

(intersection a b)

Intersection of two queries.

Intersection of two queries.
sourceraw docstring

Propclj/s

source

Props-Defclj/s

source

Queryclj/s

source

Query-Defclj/s

source

unionclj/s

(union a b)

Union of two queries. Note that this may produce a query with the same props. users('Alice') UNION users('Bob') will result in users('Alice'), users('Bob'). Since the result of execution of props is a map, executing that query may give unexpected results ('Bob' overriding 'Alice'). Use aliases to avoid that situation.

Union of two queries.
Note that this may produce a query with the same props.
users('Alice') UNION users('Bob') will result in users('Alice'), users('Bob').
Since the result of execution of props is a map, executing that query may give unexpected results ('Bob' overriding 'Alice').
Use aliases to avoid that situation.
sourceraw docstring

union*clj/s

(union* a b)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close