Liking cljdoc? Tell your friends :D

Installation

Add Bisql to deps.edn:

{:deps {io.github.hatappo/bisql {:mvn/version "0.2.0"}}}

If you want a shorter CLI entrypoint, add an alias:

{:aliases
 {:bisql {:main-opts ["-m" "bisql.cli"]}}}

Then these commands become available:

clojure -M:bisql gen-config
clojure -M:bisql gen-crud
clojure -M:bisql gen-declarations

If you prefer bb, define tasks like this:

{:tasks
 {:gen-config (apply clojure "-M:bisql" "gen-config" *command-line-args*)
  :gen-crud (apply clojure "-M:bisql" "gen-crud" *command-line-args*)
  :gen-declarations (apply clojure "-M:bisql" "gen-declarations" *command-line-args*)}}

When passing CLI flags through bb, use -- as a separator:

bb gen-declarations -- --include-sql-template --suppress-unused-public-var

Current assumptions:

  • PostgreSQL is the primary target database
  • next.jdbc is the default execution adapter

See also:

Can you improve this documentation?Edit on GitHub

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