Skip to main content

setup

Function setup 

Source
pub async fn setup(
    conn: &DatabaseConnection,
    schema: &str,
    seeder: impl AsyncFnOnce(&DatabaseConnection) -> Result<()>,
) -> Result<()>
Expand description

db:setup — load schema, then run the seeder.