Liking cljdoc? Tell your friends :D

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

This namespace provides any conversion necessary between RAD attributes and their corresponding table / columns in the database.

This namespace provides any conversion necessary between RAD
attributes and their corresponding table / columns in the database.
raw docstring

attr->column-nameclj

source

attr->table-nameclj

(attr->table-name k->attr
                  {:keys [:com.fulcrologic.rad.attributes/identities
                          :com.fulcrologic.rad.database-adapters.sql/table]})

DEPRECATED. use table-name on an id attr. This one cannot be correct, since an attr can be on more than one tbl

DEPRECATED. use `table-name` on an id attr. This one cannot be correct, since an attr can be on more than one tbl
sourceraw docstring

attrs->sql-col-indexclj

(attrs->sql-col-index k->attr)

Takes a list of rad attributes and returns an index of the form {[table column] :qualified/keyword}

Takes a list of rad attributes and returns an index of the form
`{[table column] :qualified/keyword}`
sourceraw docstring

column-nameclj

(column-name {:com.fulcrologic.rad.attributes/keys [qualified-key cardinality
                                                    type]
              :com.fulcrologic.rad.database-adapters.sql/keys [column-name]})
(column-name k->attr
             {:com.fulcrologic.rad.attributes/keys [identities cardinality type]
              :as attr})

Get the column name for the given attribute.

Get the column name for the given attribute.
sourceraw docstring

sequence-nameclj

(sequence-name id-attribute)
source

table-nameclj

(table-name {:com.fulcrologic.rad.attributes/keys [identity? qualified-key]
             :com.fulcrologic.rad.database-adapters.sql/keys [table]})
(table-name key->attribute
            {:com.fulcrologic.rad.attributes/keys [identity? identities]
             :com.fulcrologic.rad.database-adapters.sql/keys [table]
             :as attr})

Get the table name for a given identity key

Get the table name for a given identity key
sourceraw docstring

tables-and-columnsclj

(tables-and-columns key->attribute
                    {:com.fulcrologic.rad.attributes/keys [identity? identities]
                     :as attribute})

Return a sequence of [table-name column-name] that the given attribute appears at.

Return a sequence of [table-name column-name] that the given attribute appears at.
sourceraw docstring

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

× close