Datalog query engine: pattern clauses with constants and variables, joins through ref attributes (forward and reverse), predicates and function expressions in :where, user-defined rules (including recursion) supplied through the % input, :in bindings (scalar, tuple, collection, relation, database), find specs (relation, collection, scalar, single string), and aggregates with :with-aware grouping.
Datalog query engine: pattern clauses with constants and variables, joins through ref attributes (forward and reverse), predicates and function expressions in :where, user-defined rules (including recursion) supplied through the % input, :in bindings (scalar, tuple, collection, relation, database), find specs (relation, collection, scalar, single string), and aggregates with :with-aware grouping.
(q query inputs)Run a Datalog query. query is a data-form vector/map or an EDN string;
inputs supply the :in bindings in order — the database bound to $ and,
when the :in clause names %, a sequence of rules.
Run a Datalog query. `query` is a data-form vector/map or an EDN string; `inputs` supply the :in bindings in order — the database bound to $ and, when the :in clause names %, a sequence of rules.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |