Function sqlx_migrate::generate
source · pub fn generate(
migrations_dir: impl AsRef<Path>,
module_path: impl AsRef<Path>,
db_type: DatabaseType
)
Available on crate feature
generate
only.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.