A collection of functions and macros used to help building SEQL schemas conforming to the spec provided in :seql.core/schema
A collection of functions and macros used to help building SEQL schemas conforming to the spec provided in :seql.core/schema
(condition field)
(condition field from-field)
(condition field from-field value)
Build a condition which can be used to filter results at the database layer.
With a single arg, builds a condition bearing the name of a field to test pure equality.
With two args, builds a condition testing equality against the provided field name.
With three args, tests a field name against a provided value.
Build a condition which can be used to filter results at the database layer. With a single arg, builds a condition bearing the name of a field to test pure equality. With two args, builds a condition testing equality against the provided field name. With three args, tests a field name against a provided value.
(entity arg & components)
Provide an entity description. Expects either a keyword or a tuple
of [entity-name table-name]
and a list of details as expressed by
field
, has-many
, condition
, and mutation
Provide an entity description. Expects either a keyword or a tuple of `[entity-name table-name]` and a list of details as expressed by `field`, `has-many`, `condition`, and `mutation`
(field id & details)
Define an entity field, with optional details.
Possible detail functions include: ident
Define an entity field, with optional details. Possible detail functions include: `ident`
(has-many field [local remote])
Express a one to many relation between the current entity and a remote one, expects a tuple of local ID to (qualified) remote ID.
Express a one to many relation between the current entity and a remote one, expects a tuple of local ID to (qualified) remote ID.
(has-one field [local remote])
Express a one to one relation between the current entity and a remote one, expects a tuple of local ID to (qualified) remote ID.
Express a one to one relation between the current entity and a remote one, expects a tuple of local ID to (qualified) remote ID.
(ident)
Marks the current field as ident, used inside field definitions
Marks the current field as ident, used inside field definitions
(inline-condition field args & body)
Provide a function tail which shall yield a honeysql fragment to express a where condition on a field.
Provide a function tail which shall yield a honeysql fragment to express a where condition on a field.
(make-schema & entities)
Provide a complete schema of entites
Provide a complete schema of entites
(mutation mutation-name spec bindv & body)
Provide a function tail to perform a mutation against an entity
Provide a function tail to perform a mutation against an entity
(mutation-fn mutation-name spec handler)
Provide a function to perform a named mutation
Provide a function to perform a named mutation
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close