ragtime.protocols

DataStore

protocol

Protocol for a data store that can be migrated.

members

add-migration-id

(add-migration-id store migration-id)
Add an applied migration ID to the data store.

applied-migration-ids

(applied-migration-ids store)
Return an ordered list of ids of all migrations applied to the data store.

remove-migration-id

(remove-migration-id store migration-id)
Remove a rolled-back migration ID from the data store.

Migration

protocol

Protocol for a migration that can be applied to a DataStore.

members

id

(id _)
Return the string identifier of the migration.

run-down!

(run-down! _ store)
Run the 'down' part of the migration.

run-up!

(run-up! _ store)
Run the 'up' part of the migration.