Liking cljdoc? Tell your friends :D
Clojure only.

wagoe.platform.shell.database.cli-seed

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.
raw docstring

-mainclj

(-main & args)
source

seedable?clj

(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.
sourceraw docstring

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