Liking cljdoc? Tell your friends :D

bisql.crud


generate-crudclj

(generate-crud datasource options)

Generates minimal SQL templates from PostgreSQL schema metadata. Initial implementation generates get-by-* and list-by-* templates.

Generates minimal SQL templates from PostgreSQL schema metadata.
Initial implementation generates get-by-* and list-by-* templates.
raw docstring

render-crud-filesclj

(render-crud-files {:keys [dialect schema templates]})

Groups generated CRUD templates into one SQL file per table.

Groups generated CRUD templates into one SQL file per table.
raw docstring

render-crud-query-namespacesclj

(render-crud-query-namespaces crud-result)
(render-crud-query-namespaces {:keys [dialect schema templates]}
                              {:keys [output-root] :or {output-root "src/sql"}})

Renders one query namespace file per table. Each generated namespace loads the matching SQL directory via bisql/defquery.

Renders one query namespace file per table.
Each generated namespace loads the matching SQL directory via bisql/defquery.
raw docstring

write-crud-files!clj

(write-crud-files! crud-result
                   {:keys [output-root] :or {output-root "src/sql"}})

Writes generated CRUD templates as one SQL file per table.

Writes generated CRUD templates as one SQL file per table.
raw docstring

write-crud-query-namespaces!clj

(write-crud-query-namespaces! crud-result
                              {:keys [output-root] :or {output-root "src/sql"}})

Writes generated query namespace files, one per table.

Writes generated query namespace files, one per table.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close