Liking cljdoc? Tell your friends :D

domino.core


add-conflicts-rx!clj/s

(add-conflicts-rx! rx-map)
source

add-default-idclj/s

(add-default-id m)
source

add-effect-rxns!clj/s

(add-effect-rxns! state effects)
source

add-event-rxns!clj/s

(add-event-rxns! state events)
source

add-event-to-state!clj/s

(add-event-to-state! state
                     {:keys [id inputs outputs ctx-args handler async?
                             ignore-changes should-run]
                      :as event})
source

add-fields-to-ctxclj/s

(add-fields-to-ctx {:domino.core/keys [subcontexts] :as ctx} [field :as fields])
source

add-incoming-effect-to-state!clj/s

(add-incoming-effect-to-state! state {:keys [id outputs handler] :as effect})
source

add-outgoing-effect-to-state!clj/s

(add-outgoing-effect-to-state! state
                               {:keys [id inputs ctx-args handler] :as effect})
source

always-inherit-ksclj/s

source

append-db-hash!clj/s

(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.
sourceraw docstring

append-events-to-queueclj/s

(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.
sourceraw docstring

apply-db-initializersclj/s

(apply-db-initializers db inits)
source

change-is-async?clj/s

(change-is-async? ctx change)
source

clean-maccclj/s

(clean-macc opts {:keys [id] :as m})
source

clear-transaction-dataclj/s

(clear-transaction-data ctx)
source

compute-relsclj/s

(compute-rels rels)
source

constraint->reactionsclj/s

(constraint->reactions constraint)
source

constraint->relsclj/s

(constraint->rels constraint)
source

create-elementclj/s

(create-element subcontext index)
(create-element subcontext index db)
source

create-element-asyncclj/s

(create-element-async subcontext index db on-success on-fail)
source

create-new-context-in-collectionclj/s

(create-new-context-in-collection ctx idx cb)
source

db-changed?clj/s

(db-changed? ctx)
source

deep-relationshipsclj/s

(deep-relationships rel-map)
source

default-reactionsclj/s

source

event->relsclj/s

(event->rels {:keys [id inputs outputs ctx-args handler async? ignore-changes
                     should-run]
              :as event})
source

get-constraint-idsclj/s

(get-constraint-ids rx-map)
source

get-downstreamclj/s

(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.
sourceraw docstring

get-in-dbclj/s

(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
sourceraw docstring

get-parentsclj/s

(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)
sourceraw docstring

get-pathclj/s

(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.
sourceraw docstring

get-path!clj/s

(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
sourceraw docstring

get-resolution-changeset!clj/s

(get-resolution-changeset! ctx)
source

get-upstreamclj/s

(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.
sourceraw docstring

group-changesclj/s

(group-changes ctx changes)
source

initial-transactclj/s

(initial-transact ctx db)
source

initial-transact-asyncclj/s

(initial-transact-async ctx db on-success on-fail)
source

initializeclj/s

(initialize schema)
(initialize schema initial-db)
source

initialize-all-subcontextsclj/s

(initialize-all-subcontexts ctx)
source

initialize-all-subcontexts-asyncclj/s

(initialize-all-subcontexts-async ctx on-success on-fail)
source

initialize-asyncclj/s

(initialize-async schema initial-db on-success on-fail)
source

initialize-dbclj/s

(initialize-db ctx initial-db)
source

initialize-subcontextclj/s

(initialize-subcontext ctx subctx-id subcontext)
source

initialize-subcontext-asyncclj/s

(initialize-subcontext-async ctx subctx-id subcontext on-success on-fail)
source

model-map-mergeclj/s

(model-map-merge opts macc m)
source

normalize-schemaclj/s

(normalize-schema schema)
source

parse-changeclj/s

(parse-change ctx change)
source

parse-changesclj/s

(parse-changes ctx changes)
source

parse-reactionsclj/s

(parse-reactions schema)
source

passing-constraint-result?clj/s

(passing-constraint-result? result)
source

post-initializeclj/s

(post-initialize ctx initial-db)
source

post-initialize-asyncclj/s

(post-initialize-async ctx initial-db on-success on-fail)
source

pre-initializeclj/s

(pre-initialize schema)
source

pre-initialize-fieldsclj/s

(pre-initialize-fields ctx fields)
source

pre-initialize-relsclj/s

(pre-initialize-rels ctx schema)
source

prevent-change-to-final!clj/s

(prevent-change-to-final! ctx change)
source

resolve-changeclj/s

(resolve-change ctx-pre change)
source

resolve-change-asyncclj/s

(resolve-change-async ctx change on-success on-fail)
source

resume-transactionclj/s

(resume-transaction {db-pre :domino.core/db
                     event-context :domino.core/event-context
                     changes :domino.core/pending-changes
                     :as ctx-pre})
source

resume-transaction-asyncclj/s

(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)
source

schema-is-async?clj/s

(schema-is-async? schema)
source

selectclj/s

(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.
sourceraw docstring

set-initial-rx-rootclj/s

(set-initial-rx-root ctx)
source

transactclj/s

(transact
  {db-pre :domino.core/db event-context :domino.core/event-context :as ctx-pre}
  user-changes)
source

transact-asyncclj/s

(transact-async
  {db-pre :domino.core/db event-context :domino.core/event-context :as ctx-pre}
  user-changes
  on-success
  on-fail)
source

transaction-state-keysclj/s

source

trigger-effectsclj/s

(trigger-effects ctx triggers)
source

trigger-effects-asyncclj/s

(trigger-effects-async ctx triggers on-success on-fail)
source

trigger-output-effects!clj/s

(trigger-output-effects! ctx)
source

update-rxclj/s

(update-rx ctx)
source

valid-change?clj/s

(valid-change? change)
source

walk-modelclj/s

(walk-model raw-model {:as opts})
source

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

× close