Liking cljdoc? Tell your friends :D

com.fulcrologic.rad.database-adapters.sql.resolvers


delete-entity!clj

(delete-entity! env params)

delta->ref-updatesclj

(delta->ref-updates env tempids schema delta)

delta->scalar-insertsclj

(delta->scalar-inserts {:com.fulcrologic.rad.attributes/keys [key->attribute]
                        :com.fulcrologic.rad.database-adapters.sql/keys
                          [connection-pools]
                        :as env}
                       schema
                       delta)

delta->scalar-updatesclj

(delta->scalar-updates env schema delta)

entity-queryclj

(entity-query
  {:com.fulcrologic.rad.attributes/keys [id-attribute key->attribute] :as env}
  input)

The entity query used by the pathom resolvers.

The entity query used by the pathom resolvers.
raw docstring

generate-resolversclj

(generate-resolvers attributes schema)

Returns a sequence of resolvers that can resolve attributes from SQL databases.

Returns a sequence of resolvers that can resolve attributes from
SQL databases.
raw docstring

id-resolverclj

(id-resolver {:com.fulcrologic.rad.attributes/keys [id-attribute attributes
                                                    k->attr]})

keys-in-deltaclj


ref-updatesclj

(ref-updates {:com.fulcrologic.rad.attributes/keys [key->attribute] :as env}
             schema
             tempids
             [table id :as ident]
             diff)

save-form!clj

(save-form! {:com.fulcrologic.rad.attributes/keys [key->attribute]
             :com.fulcrologic.rad.database-adapters.sql/keys [connection-pools]
             :as env}
            {:com.fulcrologic.rad.form/keys [delta]})

Does all the necessary operations to persist mutations from the form delta into the appropriate tables in the appropriate databases

Does all the necessary operations to persist mutations from the
form delta into the appropriate tables in the appropriate databases
raw docstring

scalar-insertclj

(scalar-insert {:com.fulcrologic.rad.attributes/keys [key->attribute] :as env}
               schema-to-save
               tempids
               [table id :as ident]
               diff)

scalar-updateclj

(scalar-update {:com.fulcrologic.rad.attributes/keys [key->attribute] :as env}
               schema-to-save
               [table id :as ident]
               diff)

schemas-for-deltaclj

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

to-many-ref-updateclj

(to-many-ref-update {:com.fulcrologic.rad.attributes/keys [key->attribute]
                     :as env}
                    schema
                    target-row-id-attr
                    tempids
                    target-id
                    to-many-attr
                    old-val
                    new-val)

to-one-ref-updateclj

(to-one-ref-update {:com.fulcrologic.rad.attributes/keys [key->attribute]
                    :as env}
                   schema-to-save
                   id-attr
                   tempids
                   row-id
                   attr
                   old-val
                   [_ new-id :as new-val])

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

× close