(completed-list config)
List completed migrations
List completed migrations
(create config & [name type])
Create a new migration with the current date
Create a new migration with the current date
(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.
(init config & [name])
Initialize the data store
Initialize the data store
(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.
(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.
(pending-list config)
List pending migrations
List pending migrations
(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.
(rollback config)
Rollback the last migration that was successfully applied.
Rollback the last migration that was successfully applied.
(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.
(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.
(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.
(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).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close