Liking cljdoc? Tell your friends :D

roterski.fulcro.rad.database-adapters.crux.wrap-crux-save


->delta-update-txsclj

(->delta-update-txs doc-delta)

->doc-deltaclj

(->doc-delta attr-delta tempid->generated-id env)

Converts attribute delta into document delta

Converts attribute delta into document delta
raw docstring

delta->txnclj

(delta->txn env schema delta)

generate-next-idclj

(generate-next-id {:com.fulcrologic.rad.attributes/keys [key->attribute]
                   :as env}
                  k)
(generate-next-id {:com.fulcrologic.rad.attributes/keys [key->attribute]
                   :as env}
                  k
                  suggested-id)

Generate an id. You may pass a suggested-id as a UUID or a tempid. If it is a tempid and the ID column is a UUID, then the UUID from the tempid will be used. If the ID column is not a UUID then the suggested id is ignored.

Generate an id. You may pass a `suggested-id` as a UUID or a tempid. If it is a tempid and the ID column is a UUID, then
the UUID *from* the tempid will be used. If the ID column is not a UUID then the suggested id is ignored.
raw docstring

ident->idclj

(ident->id [_attr key] tempid->generated-id)

idents->idsclj

(idents->ids doc tempid->generated-id env)

is-ident?clj

(is-ident? value)

keys-in-deltaclj


next-uuidclj

(next-uuid)

ref?clj

(ref? {:com.fulcrologic.rad.attributes/keys [key->attribute]} k)

save-form!clj

(save-form! env {:com.fulcrologic.rad.form/keys [delta]})

Do all of the possible Crux operations for the given form delta (save to all Crux databases involved)

Do all of the possible Crux operations for the given form delta (save to all Crux databases involved)
raw docstring

schemas-for-deltaclj

(schemas-for-delta {:com.fulcrologic.rad.attributes/keys [key->attribute]}
                   delta)

tempids->generated-idsclj

(tempids->generated-ids env delta)

transaction-functionsclj


wrap-crux-saveclj

(wrap-crux-save)
(wrap-crux-save handler)

Form save middleware to accomplish Crux saves.

Form save middleware to accomplish Crux saves.
raw docstring

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

× close