High-level RAD <> Asami integration functions for changing the DB, independent of Pathom
High-level RAD <> Asami integration functions for changing the DB, independent of Pathom
(delete-entity! {:com.fulcrologic.rad.attributes/keys [key->attribute] :as env}
params)
Delete the given entity, if possible.
Delete the given entity, if possible.
(id-resolver* resolver-maker-fn
_attributes
{:com.fulcrologic.rad.attributes/keys [qualified-key schema]
:cz.holyjak.rad.database-adapters.asami/keys
[_fetch-nested? wrap-resolve no-batch?]
:as id-attribute}
output-attributes)
Common implementation of id-resolver. Takes in resolver-maker-fn, which knows how to make a Pathom resolver for either Pathom2 or Pathom3. Its signature must be [resolve-sym qualified-key outputs resolver-fn transform]
Common implementation of id-resolver. Takes in resolver-maker-fn, which knows how to make a Pathom resolver for either Pathom2 or Pathom3. Its signature must be [resolve-sym qualified-key outputs resolver-fn transform]
(save-form! env {:com.fulcrologic.rad.form/keys [delta] :as _save-params})
Do all the possible operations for the given form delta (save to the database involved)
Do all the possible operations for the given form delta (save to the database involved)
(wrap-delete)
(wrap-delete handler)
Form delete middleware to accomplish deletes.
Form delete middleware to accomplish deletes.
(wrap-env base-wrapper database-mapper)
Build a (fn [env] env') that adds RAD datomic support to an env.
database-mapper
- a `(fn [env]) -> map from a schema to an Asami connectionBuild a (fn [env] env') that adds RAD datomic support to an env. - `database-mapper` - a `(fn [env]) -> map from a schema to an Asami connection
(wrap-save)
(wrap-save handler)
Form save middleware to accomplish saves.
Form save middleware to accomplish saves.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close