Liking cljdoc? Tell your friends :D

cz.holyjak.rad.database-adapters.asami.pathom-common

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
raw docstring

delete-entity!clj

(delete-entity! {:com.fulcrologic.rad.attributes/keys [key->attribute] :as env}
                params)

Delete the given entity, if possible.

Delete the given entity, if possible.
sourceraw docstring

id-resolver*clj

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

save-form!clj

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

wrap-deleteclj

(wrap-delete)
(wrap-delete handler)

Form delete middleware to accomplish deletes.

Form delete middleware to accomplish deletes.
sourceraw docstring

wrap-envclj

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

wrap-saveclj

(wrap-save)
(wrap-save handler)

Form save middleware to accomplish saves.

Form save middleware to accomplish saves.
sourceraw docstring

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

× close