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

Method migrate

crates/openshell-server/src/persistence/sqlite.rs:61–66  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

59 }
60
61 pub async fn migrate(&self) -> PersistenceResult<()> {
62 SQLITE_MIGRATOR
63 .run(&self.pool)
64 .await
65 .map_err(|e| map_migrate_error(&e))
66 }
67
68 /// Verify the database is reachable by acquiring a pooled connection
69 /// and issuing a ping.

Callers 1

connectMethod · 0.45

Calls 2

map_migrate_errorFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected