Liking cljdoc? Tell your friends :D

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


delete-entity!clj

(delete-entity! env params)
source

delta->ref-updatesclj

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

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)
source

delta->scalar-updatesclj

(delta->scalar-updates env schema delta)
source

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.
sourceraw docstring

form->sql-valueclj

(form->sql-value {:com.fulcrologic.rad.attributes/keys [type cardinality]
                  :com.fulcrologic.rad.database-adapters.sql/keys
                    [form->sql-value]}
                 form-value)
source

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.
sourceraw docstring

id-resolverclj

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

keys-in-deltaclj

source

ref-updatesclj

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

resolve-tempid-in-valueclj

(resolve-tempid-in-value tempids v)
source

save-form!clj

(save-form! {:com.fulcrologic.rad.attributes/keys [key->attribute]
             :com.fulcrologic.rad.database-adapters.sql/keys
               [connection-pools adapters default-adapter]
             :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
sourceraw docstring

scalar-insertclj

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

scalar-updateclj

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

schemas-for-deltaclj

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

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)
source

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])
source

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

× close