pub async fn run(
models: &[&'static ModelMeta],
db: &Db,
dir: &Path,
args: impl IntoIterator<Item = String>,
) -> Result<ExitCode, MigrationError>Expand description
Run a migrations command.
models is the compiled metadata (User::META, …). dir is the
migrations directory. args is the command plus flags, without the
program name (["makemigrations", "--name", "init"]).
§Errors
Graph, IO, JSON, ORM, or usage errors.