Expand description
Re-exports§
pub use context::MigrationContext;
pub use error::Error;
Modules§
Structs§
- Migration
- A single migration that uses a given
sqlx::Transaction
to do the up (migrate) and down (revert) migrations. - Migration
Status - Status of a migration.
- Migration
Summary - Summary of a migration or revert operation.
- Migrator
- A Migrator that is capable of managing migrations for a database.
- Migrator
Options - Options for a
Migrator
.
Enums§
- Database
Type - An
SQLx
database type, used for code generation purposes.
Constants§
- DEFAULT_
MIGRATIONS_ TABLE - The default migrations table used by all migrators.
Functions§
- generate
generate
- Generate Rust code from a migrations directory.
It is meant to be used in
build.rs
.
Type Aliases§
- Migration
Error - An opaque error type returned by user-provided migration functions.