Bisql resolves SQL templates from the logical sql/ base path on the classpath.
In practice, that usually means src/sql/ or resources/sql/.
Recommended layout:
sql/<dialect>/<schema>/<table>/<clj-function>.sql
Example:
src/sql/postgresql/public/users/get-by-id.sql
Rules and conventions:
postgresql is the dialect segment in the current implementationpublic is the default schemaThis keeps:
See also:
Can you improve this documentation?Edit on GitHub
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 |