fedimint_client::db

Type Alias ClientMigrationFn

Source
pub type ClientMigrationFn = for<'r, 'tx> fn(_: &'r mut DatabaseTransaction<'tx>, _: Vec<(Vec<u8>, OperationId)>, _: Vec<(Vec<u8>, OperationId)>) -> BoxFuture<'r, Result<Option<(Vec<(Vec<u8>, OperationId)>, Vec<(Vec<u8>, OperationId)>)>>>;
Expand description

ClientMigrationFn is a function that modules can implement to “migrate” the database to the next database version.