Skip to main content

Module migrations

Module migrations 

Source
Expand description

Forward-only migrations tracked in a SQLite table.

Migrations are plain .sql files in a directory, named NNNN_<slug>.sql (auto-numbered by generate). apply runs pending migrations in filename order, each inside its own transaction, and records applied filenames in the rustio_migrations table so reruns are idempotent.

Structs§

ApplyOptions
Options for apply_with.
MigrationRecord
Status

Functions§

applied
apply
apply_with
generate
list
status