Liking cljdoc? Tell your friends :D

migratus.core


completed-listclj

(completed-list config)

List completed migrations

List completed migrations
sourceraw docstring

completed-migrationsclj

(completed-migrations config store)
source

createclj

(create config & [name type])

Create a new migration with the current date

Create a new migration with the current date
sourceraw docstring

destroyclj

(destroy config & [name])

Destroy migration

Destroy migration
sourceraw docstring

downclj

(down config & ids)

Bring down the migrations identified by ids. Any migrations that are not completed will be skipped.

Bring down the migrations identified by ids.
Any migrations that are not completed will be skipped.
sourceraw docstring

initclj

(init config & [name])

Initialize the data store

Initialize the data store
sourceraw docstring

migrateclj

(migrate config)

Bring up any migrations that are not completed. Returns nil if successful, :ignore if the table is reserved, :failure otherwise. Supports thread cancellation.

Bring up any migrations that are not completed.
Returns nil if successful, :ignore if the table is reserved, :failure otherwise.
Supports thread cancellation.
sourceraw docstring

migrate-until-just-beforeclj

(migrate-until-just-before config migration-id)

Run all migrations preceding migration-id. This is useful when testing that a migration behaves as expected on fixture data. This only considers uncompleted migrations, and will not migrate down.

Run all migrations preceding migration-id. This is useful when testing that a
migration behaves as expected on fixture data. This only considers uncompleted
migrations, and will not migrate down.
sourceraw docstring

migration-nameclj

(migration-name migration)
source

pending-listclj

(pending-list config)

List pending migrations

List pending migrations
sourceraw docstring

require-pluginclj

(require-plugin {:keys [store]})
source

resetclj

(reset config)

Reset the database by down-ing all migrations successfully applied, then up-ing all migratinos.

Reset the database by down-ing all migrations successfully
applied, then up-ing all migratinos.
sourceraw docstring

rollbackclj

(rollback config)

Rollback the last migration that was successfully applied.

Rollback the last migration that was successfully applied.
sourceraw docstring

rollback-until-just-afterclj

(rollback-until-just-after config migration-id)

Migrate down all migrations after migration-id. This only considers completed migrations, and will not migrate up.

Migrate down all migrations after migration-id. This only considers completed
migrations, and will not migrate up.
sourceraw docstring

runclj

(run store ids command)
source

select-migrationsclj

(select-migrations config selection-fn)

List pairs of id and name for migrations selected by the selection-fn.

List pairs of id and name for migrations selected by the selection-fn.
sourceraw docstring

uncompleted-migrationsclj

(uncompleted-migrations config store)
source

upclj

(up config & ids)

Bring up the migrations identified by ids. Any migrations that are already complete will be skipped.

Bring up the migrations identified by ids.
Any migrations that are already complete will be skipped.
sourceraw docstring

with-storecljmacro

(with-store bindings & body)

bindings => name init Evaluates body in a try expression with name bound to the value of the init, and (proto/connect name) called before body, and a finally clause that calls (proto/disconnect name).

bindings => name init
Evaluates body in a try expression with name bound to the value
of the init, and (proto/connect name) called before body, and a
finally clause that calls (proto/disconnect name).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close