MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / down

Method down

sea-orm-migration/src/migrator.rs:241–249  ·  view source on GitHub ↗

Rollback applied migrations

(db: C, steps: Option<u32>)

Source from the content-addressed store, hash-verified

239
240 /// Rollback applied migrations
241 async fn down<'c, C>(db: C, steps: Option<u32>) -> Result<(), DbErr>
242 where
243 C: IntoSchemaManagerConnection<'c>,
244 {
245 exec_with_connection::<'_, _, _>(db, move |manager| {
246 Box::pin(async move { exec_down::<Self>(manager, steps).await })
247 })
248 .await
249 }
250}
251
252async fn exec_with_connection<'c, C, F>(db: C, f: F) -> Result<(), DbErr>

Callers 1

exec_downFunction · 0.45

Implementers 15

lib.rssea-orm-cli/template/migration/src/lib
default.rssea-orm-migration/tests/common/migrato
override_migration_table_name.rssea-orm-migration/tests/common/migrato
lib.rsexamples/loco_seaography/migration/src
lib.rsexamples/seaography_example/migration/
lib.rsexamples/jsonrpsee_example/seeder/src/
lib.rsexamples/jsonrpsee_example/migration/s
lib.rsexamples/tonic_example/migration/src/l
lib.rsexamples/graphql_example/seeder/src/li
lib.rsexamples/graphql_example/migration/src
lib.rsexamples/axum_example/seeder/src/lib.r
lib.rsexamples/axum_example/migration/src/li

Calls

no outgoing calls

Tested by

no test coverage detected