Liking cljdoc? Tell your friends :D

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

This namespace provides query builders for various concerns of a SQL database in a RAD application. The main concerns are:

  • Fetch queries (with joins) coming from resolvers
  • Building custom queries based of off RAD attributes
  • Persisting data based off submitted form deltas
This namespace provides query builders for various concerns of
a SQL database in a RAD application. The main concerns are:

- Fetch queries (with joins) coming from resolvers
- Building custom queries based of off RAD attributes
- Persisting data based off submitted form deltas
raw docstring

base-property-queryclj

(base-property-query env
                     {id-key :com.fulcrologic.rad.attributes/qualified-key
                      :as id-attr}
                     attrs
                     ids)
source

eql->attrsclj

(eql->attrs {:com.fulcrologic.rad.attributes/keys [key->attribute] :as env}
            schema
            eql)

Find the attributes for the element of the (top-level) EQL query that exist on the given schema. Returns a sequence of attributes.

Find the attributes for the element of the (top-level) EQL query that exist on the given schema.
Returns a sequence of attributes.
sourceraw docstring

eql-query!clj

(eql-query! {:com.fulcrologic.rad.attributes/keys [key->attribute]
             :com.fulcrologic.rad.database-adapters.sql/keys [connection-pools]
             :as env}
            id-attribute
            eql-query
            resolver-input)
source

qclj

(q v)
source

RAD-column-readerclj

(RAD-column-reader rs md i)

An example column-reader that still uses .getObject but expands CLOB columns into strings.

An example column-reader that still uses `.getObject` but expands CLOB
columns into strings.
sourceraw docstring

row-builderclj

source

sql->form-valueclj

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

sql-results->edn-resultsclj

(sql-results->edn-results rows attrs)
source

to-many-join-column-queryclj

(to-many-join-column-query
  {:com.fulcrologic.rad.attributes/keys [key->attribute] :as env}
  {:com.fulcrologic.rad.attributes/keys [target cardinality identities
                                         qualified-key]
   :as attr}
  ids)
source

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

× close