Type Alias DbMigrationFn

Source
pub type DbMigrationFn<C> = Box<dyn for<'tx> Fn(DbMigrationFnContext<'tx, C>) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'tx>> + Send + Sync>;
Expand description

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

It is parametrized over C (contents), which is extra data/type/interface custom for different part of the codebase, e.g.:

  • server core
  • server modules
  • client core
  • gateway core

Aliased Type§

struct DbMigrationFn<C>(/* private fields */);