This namespace provides query builders for various concerns of a SQL database in a RAD application. The main concerns are:
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
(base-property-query env
{id-key :com.fulcrologic.rad.attributes/qualified-key
:as id-attr}
attrs
ids)
(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.
(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)
(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.
(sql->form-value {:com.fulcrologic.rad.attributes/keys [type]
:com.fulcrologic.rad.database-adapters.sql/keys
[sql->form-value]}
sql-value)
(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)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close