Convenience functions for interacting with sqlium's SQL entity DSL. See the two DSL namespaces for more extensive documentation about the contents of specs and the return values of the various operations
Convenience functions for interacting with sqlium's SQL entity DSL. See the two DSL namespaces for more extensive documentation about the contents of specs and the return values of the various operations
(compile-spec* dsl-spec)
Takes a DSL spec, returns map with the parsed spec in :spec key, and grouped spec in :grouped key.
Takes a DSL spec, returns map with the parsed spec in :spec key, and grouped spec in :grouped key.
(group-spec spec)
Takes a (parsed) spec, returns structure with the relationships grouped.
Takes a (parsed) spec, returns structure with the relationships grouped.
(group-tables spec)
Returns a collection all the tables in group for an (analyzed) table spec, ie. the table itself and all the single relationships.
Returns a collection all the tables in group for an (analyzed) table spec, ie. the table itself and all the single relationships.
(id-column spec)
Returns the id column for a spec as a keyword :table/column.
Returns the id column for a spec as a keyword :table/column.
(parse-spec dsl-spec)
Takes a DSL expression of a spec, returns parsed spec.
Takes a DSL expression of a spec, returns parsed spec.
(relationship? ent)
True if spec entry is a relationship.
True if spec entry is a relationship.
(single-relationships spec)
Returns the single relationships for an (analyzed) table spec.
Returns the single relationships for an (analyzed) table spec.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close