pub fn migrations_from_sqlx(
migrator: &Migrator,
) -> Result<Vec<Migration>, FromSqlxError>Expand description
The migrations of an sqlx Migrator (sqlx::migrate!("./migrations") or Migrator::new(path))
as Migrations for Migrates::migrate, in the order sqlx would run them.
The ledger is shared, not converted: Migrates::migrate writes sqlx’s own _sqlx_migrations
with the same SHA-384 checksum sqlx computes from the same text, so a database migrated by
sqlx migrate run is accepted as it is (and the other way round). Down halves of reversible
migrations are dropped (this crate never undoes). Anything sqlx would do differently from this
crate is an error, not a silent difference: see FromSqlxError.