register

Function register 

Source
pub fn register(
    id: &'static str,
    f: for<'a> fn(&'a SqlitePool) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>,
)
Expand description

Registers a migration function under the given stable id.

ยงPanics

Panics if the registry lock is poisoned (should never happen in normal use).