(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])
(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})
(append-db-hash! ctx)
Add a new db hash to the set of encountered hashes, error if duplicate is found.
Add a new db hash to the set of encountered hashes, error if duplicate is found.
(append-events-to-queue {hist :domino.core/event-history
event-queue :domino.core/event-queue
:as ctx})
Add any pending events (which aren't ignored) to the event queue.
Events with :evaluation
:once
will bubble to the tail of the queue.
Add any pending events (which aren't ignored) to the event queue. Events with `:evaluation` `:once` will bubble to the tail of the queue.
(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-all-subcontexts-async ctx on-success on-fail)
(initialize-subcontext-async ctx subctx-id subcontext on-success on-fail)
(resume-transaction {db-pre :domino.core/db
event-context :domino.core/event-context
changes :domino.core/pending-changes
:as ctx-pre})
(resume-transaction-async {db-pre :domino.core/db
event-context :domino.core/event-context
changes :domino.core/pending-changes
:as ctx-pre}
on-success
on-fail)
(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
{db-pre :domino.core/db event-context :domino.core/event-context :as ctx-pre}
user-changes)
(transact-async
{db-pre :domino.core/db event-context :domino.core/event-context :as ctx-pre}
user-changes
on-success
on-fail)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close