(add-event-to-state! state
{:keys [id inputs outputs ctx-args handler async?
ignore-changes should-run]
:as event})
(add-fields-to-ctx {:domino.core/keys [subcontexts] :as ctx}
[field :as fields]
on-complete)
(add-incoming-effect-to-state! state {:keys [id outputs handler] :as effect})
(add-outgoing-effect-to-state! state
{:keys [id inputs ctx-args handler] :as effect})
(event->rels {:keys [id inputs outputs ctx-args handler async? ignore-changes
should-run]
:as event})
(get-downstream {:domino.core/keys [downstream-deep subcontexts] :as ctx} id)
Gets all ids that could be affected by a change on the passed id.
Gets all ids that could be affected by a change on the passed id.
(get-in-db ctx id)
Looks somewhat similar to select, but doesn't support arbitrary reactions
Looks somewhat similar to select, but doesn't support arbitrary reactions
(get-parents {:domino.core/keys [id->parents subcontexts] :as ctx} id)
Gets all parent ids for an id (i.e. referenced IDs which wholly contain the id's data)
Gets all parent ids for an id (i.e. referenced IDs which wholly contain the id's data)
(get-path ctx id)
See get-path!. Returns nil on no match instead of throwing.
See get-path!. Returns nil on no match instead of throwing.
(get-path! {:domino.core/keys [id->path subcontexts]} id)
Given a domino context and an id, get the path to the value in the canonical DB
Given a domino context and an id, get the path to the value in the canonical DB
(get-upstream {:domino.core/keys [upstream-deep subcontexts] :as ctx} id)
Gets all ids which, if changed, may affect the passed id.
Gets all ids which, if changed, may affect the passed id.
(initialize schema)
(initialize schema cb-or-db)
(initialize schema initial-db cb)
(select {:domino.core/keys [subcontexts rx db] :as ctx} id)
Given an id keyword or vector, select a value from a domino context.
Given an id keyword or vector, select a value from a domino context.
(transact ctx user-changes)
(transact {db-pre? :domino.core/db
event-context :domino.core/event-context
initialized? :domino.core/initialized?
:as ctx-pre}
user-changes
cb)
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 |