fedimint_core::db

Type Alias CoreMigrationFn

source
pub type CoreMigrationFn = for<'r, 'tx> fn(_: &'r mut DatabaseTransaction<'tx>) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'r>>;
Expand description

CoreMigrationFn that modules can implement to “migrate” the database to the next database version.