Expand description
Modules§
- cli
cli - Module for creating and running cli with help of migrator
- error
- Module for library error
- migration
- Module for defining the
Migrationtrait, which represents a database migration. - migrator
- Migrator module
- operation
- Module for defining the
Operationtrait - sync
- Module which is used to sync a external migration schema to
sqlx_migratorsqlx migration
Macros§
- any_
migration anyand (mysqlorpostgresorsqlite) - Macro for implementing the
migrationmacro for theAny. - migration
- Macro for implementing the Migration trait for the provided database.
- mysql_
migration mysql - Macro for implementing the
migrationmacro for theMySql. - postgres_
migration postgres - Macro for implementing the
migrationmacro for thePostgres. - sqlite_
migration sqlite - Macro for implementing the
migrationmacro for theSqlite. - vec_box
- Macro for vector of
Box
Structs§
- Migration
Command cli - Migration command for performing rust based sqlx migrations
- Migrator
- A struct that stores migration-related metadata, including the list of migrations and configuration such as table and schema name
- Plan
- Struct that determines the type of migration plan to execute.
Enums§
- Error
- Error enum to store different types of error
Traits§
- Info
- The
Infotrait provides database-agnostic methods for managing migrations and interacting with migration states. - Migrate
- The
Migratetrait defines methods to manage and apply database migrations according to a given plan. - Migration
- Trait representing a database migration.
- OldMigrator
- Trait which is implemented for syncing a migration from old migrator to new migrator
- Operation
- Trait representing a database migration operation.
- Synchronize
- Trait which is implemented for syncing a migration from old migrator to new migrator for a specific database