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.
(execute-query env etype fields conditions)
Executes query via seql.
Executes query via seql.
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`.
(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}
(query-tables config etype fields)
Returns a collection of tables used in given query.
Returns a collection of tables used in given query.
Returns a seql schema for the given specomatic config
.
Returns a seql schema for the given specomatic `config`.
Returns a seql schema for the given specomatic config
.
Returns a seql schema for the given specomatic `config`.
(set-transform! entity-schema)
Registers transformation functions (readers) for the given entity-schema
.
Registers transformation functions (readers) for the given `entity-schema`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close