MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / migrate

Method migrate

crates/openshell-server/src/persistence/postgres.rs:35–40  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

33 }
34
35 pub async fn migrate(&self) -> PersistenceResult<()> {
36 POSTGRES_MIGRATOR
37 .run(&self.pool)
38 .await
39 .map_err(|e| map_migrate_error(&e))
40 }
41
42 /// Verify the database is reachable by acquiring a pooled connection
43 /// and issuing a protocol-level ping.

Callers

nothing calls this directly

Calls 2

map_migrate_errorFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected