MCPcopy Create free account
hub / github.com/emwalker/digraph / drop_items

Function drop_items

backend/src/bin/migrate.rs:176–185  ·  view source on GitHub ↗
(pool: &PgPool)

Source from the content-addressed store, hash-verified

174];
175
176async fn drop_items(pool: &PgPool) -> Result<()> {
177 for (type_, name) in DROP_ITEMS {
178 log::info!("dropping {} {}", type_, name);
179 sqlx::query(&format!("drop {type_} if exists {name}"))
180 .execute(pool)
181 .await?;
182 }
183
184 Ok(())
185}
186
187async fn delete_migration_records(pool: &PgPool) -> Result<()> {
188 log::info!("deleting rows from _sqlx_migrations");

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected