Function sqlx_migrate::cli::run [−][src]
pub fn run<DB>(
migrations_path: impl AsRef<Path>,
migrations: impl IntoIterator<Item = Migration<DB>>
) where
DB: Database,
DB::Connection: Migrations,
Expand description
Run a CLI application that provides operations with the given migrations.
When compiled with debug_assertions
, it additionally allows modifying migrations
at the given migrations_path
.
Although not required, migrations
are expected to be originated from migrations_path
.
Panics
This functon assumes that it has control over the entire application.
It will happily alter global state (tracing), panic, or terminate the process.