CLI entry point for database seeding.
Usage: clojure -M -m wagoe.platform.shell.database.cli-seed [path]
Defaults to resources/seeds/dev.edn. Invoked by bb db:seed, which cannot
open a JDBC connection itself (libs/tools is pure Babashka), so it shells out
here — the same arrangement bb migrate uses for cli-migrations.
CLI entry point for database seeding. Usage: clojure -M -m wagoe.platform.shell.database.cli-seed [path] Defaults to resources/seeds/dev.edn. Invoked by `bb db:seed`, which cannot open a JDBC connection itself (libs/tools is pure Babashka), so it shells out here — the same arrangement `bb migrate` uses for cli-migrations.
(seedable? env force?)True when seeding may proceed in env.
Pure, and public, so the decision is testable without driving -main and
its System/exit. The environment must be resolved by the same detection
the database connection uses — see the call site.
True when seeding may proceed in `env`. Pure, and public, so the decision is testable without driving `-main` and its `System/exit`. The environment must be resolved by the *same* detection the database connection uses — see the call site.
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 |