(applied-migrations db)
List all migrations applied to the database.
List all migrations applied to the database.
Create a Migratable database connection from a URL. Dispatches on the URL scheme.
Create a Migratable database connection from a URL. Dispatches on the URL scheme.
Protocol for a database that cab be migrated.
Protocol for a database that cab be migrated.
(add-migration-id db migration-id)
Add an applied migration ID to the database.
Add an applied migration ID to the database.
(applied-migration-ids db)
Return a list of the ids of all migrations applied to the database.
Return a list of the ids of all migrations applied to the database.
(remove-migration-id db migration-id)
Remove a rolled-back migration ID from the database.
Remove a rolled-back migration ID from the database.
(migrate db migration)
Apply a single migration to a database.
Apply a single migration to a database.
(migrate-all db migrations)
(migrate-all db migrations strategy)
Migrate all migrations using the supplied strategy. The strategy defines what to do if there are conflicts between the migrations applied to the database, and the migrations that need to be applied. The default strategy is ragtime.strategy/raise-error.
Migrate all migrations using the supplied strategy. The strategy defines what to do if there are conflicts between the migrations applied to the database, and the migrations that need to be applied. The default strategy is ragtime.strategy/raise-error.
(remember-migration migration)
Remember a migration so that it can be found from its ID.
Remember a migration so that it can be found from its ID.
(rollback db migration)
Rollback a migration already applied to the database.
Rollback a migration already applied to the database.
(rollback-last db)
(rollback-last db n)
Rollback the last n previous migrations from the database. If n is not specified, only the very last migration is rolled back.
Rollback the last n previous migrations from the database. If n is not specified, only the very last migration is rolled back.
(rollback-to db migration)
Rollback to a specific migration or migration ID.
Rollback to a specific migration or migration ID.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close