Crate migrant [] [src]

Modules

errors

Structs

Settings

Settings that are serialized and saved in a project .migrant file

Functions

down

Move down one migration. If force, record the migration as a success regardless of the outcome. If fake, only update the settings file as if the migration was successful.

init

Initialize the current directory

list

List the currently applied and available migrations under settings.migration_folder

new

Create a new migration with the given tag

search_for_meta

Search for a .migrant file in the current directory, looking up the parent path until it finds one.

shell

Open a repl connection to the specified database connection

up

Move up one migration. If force, record the migration as a success regardless of the outcome. If fake, only update the settings file as if the migration was successful.