Liking cljdoc? Tell your friends :D

specomatic-db.seql

Contains all functions that work directly with the seql library: Provides schema generation and querying and registers transformations.

Contains all functions that work directly with the seql library: Provides schema generation and querying and registers transformations.
raw docstring

execute-queryclj

(execute-query env etype fields conditions)

Executes query via seql.

Executes query via seql.
sourceraw docstring

field-defcljmultimethod

Returns a seql field definition for field field of entity with spec, given entity-schema.

Returns a seql field definition for field `field` of `entity` with `spec`, given `entity-schema`.
sourceraw docstring

queryclj

(query env etype fields conditions)
(query env etype fields conditions query-table-keyword)

Returns a vector of [seql-etype fields conditions allowed-or-preds-by-verb] representing a seql query for retrieving a sequence of etype entities containing the seql-style fields and matching the HoneySQL conditions, as well as how to determine the value of each access control verb (allowed-or-preds-by-verb). Optionally accepts a query-table-keyword function parameter for mapping entity type keywords to table / view keywords for querying (default: cnv/etype->query-table-keyword) Shape of env: {:config specomatic config}

Returns a vector of [`seql-etype` `fields` `conditions` `allowed-or-preds-by-verb`] representing a seql query for retrieving a sequence of `etype` entities containing the seql-style `fields` and matching the HoneySQL `conditions`, as well as how to determine the value of each access control verb (`allowed-or-preds-by-verb`).
Optionally accepts a `query-table-keyword` function parameter for mapping entity type keywords to table / view keywords for querying (default: `cnv/etype->query-table-keyword`)
Shape of `env`:
{:config  specomatic config}
sourceraw docstring

query-tablesclj

(query-tables config etype fields)

Returns a collection of tables used in given query.

Returns a collection of tables used in given query.
sourceraw docstring

schemaclj

Returns a seql schema for the given specomatic config.

Returns a seql schema for the given specomatic `config`.
sourceraw docstring

schema-historicclj

Returns a seql schema for the given specomatic config.

Returns a seql schema for the given specomatic `config`.
sourceraw docstring

set-transform!clj

(set-transform! entity-schema)

Registers transformation functions (readers) for the given entity-schema.

Registers transformation functions (readers) for the given `entity-schema`.
sourceraw docstring

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

× close