Skip to main content

Module migrate

Module migrate 

Source

Structs§

EmbeddedMigration
One migration whose SQL is resolved at compile time, usually by include_str!.

Enums§

MigrateError

Functions§

ensure_migrations_table
Errors
get_applied_migrations
Errors
mark_applied
Records names as already applied without executing their SQL.
mark_applied_through
Records every journal entry up to and including last_name as applied, without executing their SQL.
migrations_table_ddl
DDL for the internal _migrations table (dialect-specific).
record_migration
Errors
run_migrate
Applies pending migrations from the given directory to the database.
run_migrate_embedded
Applies pending migrations from an in-memory list instead of a directory.