Module migrations

Source
Available on crate feature db only.
Expand description

Database migrations.

Structs§

AddFieldBuilder
A builder for adding a field to a model.
CreateModelBuilder
A builder for creating a new model.
Field
A field in a model.
MigrationDependency
A migration dependency: a relationship between two migrations that tells the migration engine which migrations need to be applied before others.
MigrationEngine
A migration engine that can run migrations.
Operation
A migration operation that can be run forwards or backwards.
RemoveFieldBuilder
A builder for removing a field from a model.
RemoveModelBuilder
A builder for removing a model.

Enums§

MigrationEngineError
An error that occurred while running migrations.

Traits§

DynMigration
A trait for defining a migration that can be dynamically applied.
Migration
A trait for defining a migration.

Functions§

wrap_migrations
Wrap a list of statically defined migrations into a dynamic Vec.

Type Aliases§

SyncDynMigration
A type alias for a dynamic migration that is both Send and Sync.