Liking cljdoc? Tell your friends :D

ragtime.core


applied-migrationsclj

(applied-migrations db)

List all migrations applied to the database.

List all migrations applied to the database.
raw docstring

connectioncljmultimethod

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

defined-migrationsclj


Migratablecljprotocol

Protocol for a database that cab be migrated.

Protocol for a database that cab be migrated.

add-migration-idclj

(add-migration-id db migration-id)

Add an applied migration ID to the database.

Add an applied migration ID to the database.

applied-migration-idsclj

(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-idclj

(remove-migration-id db migration-id)

Remove a rolled-back migration ID from the database.

Remove a rolled-back migration ID from the database.
raw docstring

migrateclj

(migrate db migration)

Apply a single migration to a database.

Apply a single migration to a database.
raw docstring

migrate-allclj

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

remember-migrationclj

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

rollbackclj

(rollback db migration)

Rollback a migration already applied to the database.

Rollback a migration already applied to the database.
raw docstring

rollback-lastclj

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

rollback-toclj

(rollback-to db migration)

Rollback to a specific migration or migration ID.

Rollback to a specific migration or migration ID.
raw docstring

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

× close