Thin layer over Clara-Rules common API functions that simplifies working with EAV triplets, and adds some specific features like transient EAVs, upserts and accumulators that rebuild entity maps out of EAVs.
Thin layer over Clara-Rules common API functions that simplifies working with EAV triplets, and adds some specific features like transient EAVs, upserts and accumulators that rebuild entity maps out of EAVs.
(defquery name & form)
Like Clara-Rules defquery but with support for EAV fact expressions.
Like Clara-Rules defquery but with support for EAV fact expressions.
(defrule name & form)
Like Clara-Rules defrule but with support for EAV fact expressions.
Like Clara-Rules defrule but with support for EAV fact expressions.
(defsession name & nss)
Wrapper on Clara-Rules defsession with EAV's :fact-type-fn
and
:ancestors-fn
. Pass name and namespaces (defsession my-session 'my.rules 'my.more.rules)
.
Wrapper on Clara-Rules defsession with EAV's `:fact-type-fn` and `:ancestors-fn`. Pass name and namespaces `(defsession my-session 'my.rules 'my.more.rules)`.
Clara-Rules Accumulator that accumulates EAVs in a list of entity maps.
Ex: [?all-entities <- ce/entities :from [[:eav/all]]
.
Clara-Rules Accumulator that accumulates EAVs in a list of entity maps. Ex: `[?all-entities <- ce/entities :from [[:eav/all]]`.
Clara-Rules Accumulator that accumulates EAVs in an entity map.
Make sure to filter such that all EAVs returned have the eid, or you get
whatever entity is first. Ex: [?new-todo-template <- ce/entity :from [[:new-todo]]]
.
Clara-Rules Accumulator that accumulates EAVs in an entity map. Make sure to filter such that all EAVs returned have the eid, or you get whatever entity is first. Ex: `[?new-todo-template <- ce/entity :from [[:new-todo]]]`.
(retract session tx)
Like Clara-Rules retract; tx is transaction data with no tempids.
Like Clara-Rules retract; tx is transaction data with no tempids.
(retract! tx)
Like Clara-Rules retract!; tx is transaction data with no tempids.
Like Clara-Rules retract!; tx is transaction data with no tempids.
(upsert session tx)
Similar to Clara-Rules insert-all; tx is transaction data. Retracts EAVs that have the same eid and attribute but with a new value.
Similar to Clara-Rules insert-all; tx is transaction data. Retracts EAVs that have the same eid and attribute but with a new value.
(upsert! tx)
Similar to Clara-Rules insert-all!; tx is transaction data. Retracts EAVs that have the same eid and attribute but come with a new value.
Similar to Clara-Rules insert-all!; tx is transaction data. Retracts EAVs that have the same eid and attribute but come with a new value.
(upsert-unconditional! tx)
Similar to Clara-Rules insert-all-unconditional!; tx is transaction data. Retracts EAVs that have the same eid and attribute but with a new value.
Similar to Clara-Rules insert-all-unconditional!; tx is transaction data. Retracts EAVs that have the same eid and attribute but with a new value.
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 |