(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.
(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.
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |