(with-database binding & body)
Start databases for the given name-to-config bindings, started and migrate the databases, run the given body, then shut down the database.
The bindings
should be pairs of sym
and config
sym
- Any symbol you want to bind to
config
- A map containing the database configuration. NOTE: :auto-migrate? will be forced to true, as will :create-drop?
Start databases for the given name-to-config bindings, started and migrate the databases, run the given body, then shut down the database. The `bindings` should be pairs of `sym` and `config` `sym` - Any symbol you want to bind to `config` - A map containing the database configuration. NOTE: :auto-migrate? will be forced to true, as will :create-drop?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close