(->delta-update-txs doc-delta)
(->doc-delta attr-delta tempid->generated-id env)
Converts attribute delta into document delta
Converts attribute delta into document delta
(delta->txn env schema delta)
(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.
(ident->id [_attr key] tempid->generated-id)
(idents->ids doc tempid->generated-id env)
(is-ident? value)
(next-uuid)
(ref? {:com.fulcrologic.rad.attributes/keys [key->attribute]} k)
(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)
(schemas-for-delta {:com.fulcrologic.rad.attributes/keys [key->attribute]}
delta)
(tempids->generated-ids env delta)
(wrap-crux-save)
(wrap-crux-save handler)
Form save middleware to accomplish Crux saves.
Form save middleware to accomplish Crux saves.
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 |