Module forest_filecoin::db::migration::migration_map
source ยท Macrosยง
- create_migrations ๐A utility macro to make the migrations easier to declare. The usage is:
<FROM version> -> <TO version> @ <Migrator object>
Structsยง
Staticsยง
- MIGRATIONS ๐
Traitsยง
- MigrationOperation ๐Migration trait. It is expected that the
MigrationOperation::migrate
method will pick up the relevant database existing underchain_data_path
and create a new migration database in the same directory.
Functionsยง
- Creates a migration chain from
start
togoal
. The chain is chosen to be the shortest possible. If there are multiple shortest paths, any of them is chosen. This method will use the pre-defined migrations map. - Same as
create_migration_chain
, but uses any provided migrations map. - temporary_db_name ๐Returns the name of the temporary database that will be created during the migration.
Type Aliasesยง
- MigrationsMap ๐
- Migrator ๐Migrations map. The key is the starting version and the value is the tuple of the target version and the
MigrationOperation
implementation.