(ensure-all-install! conn migrations logger)
Ensures that all provided migrations
are installed.
conn
must be a valid Datomic connection. Logs to logger
all the
migrations that cannot be installed.
Ensures that all provided `migrations` are installed. `conn` must be a valid Datomic connection. Logs to `logger` all the migrations that cannot be installed.
(get-all-migrations migration-files logger)
Returns a vector of migrations from the migration-files
collection.
The collection must contain paths to resource files in .edn format.
Logs to logger
all the migration files that cannot be opened or
are not valid .edn files. Those files are not part of the returned
vector.
Returns a vector of migrations from the `migration-files` collection. The collection must contain paths to resource files in .edn format. Logs to `logger` all the migration files that cannot be opened or are not valid .edn files. Those files are not part of the returned vector.
(migrations-status conn migrations)
Get the status of each of the provided migrations
.
conn
must be a valid Datomic connection. Returns a map with the
following structure:
Get the status of each of the provided `migrations`. `conn` must be a valid Datomic connection. Returns a map with the following structure: * keys are the migrations' :id values * values are the migrations' statuses (true if installed, false otherwise)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close