Function sqlx_migrate::generate[][src]

pub fn generate(
    migrations_dir: impl AsRef<Path>,
    module_path: impl AsRef<Path>,
    db_type: DatabaseType
)
Expand description

Generate Rust code from a migrations directory. It is meant to be used in build.rs.

Panics

This function is meant to be used in build.rs and will panic on errors.