MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_connection

Method get_connection

crates/opencode-storage/src/database.rs:92–98  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

90 }
91
92 pub async fn get_connection(&self) -> Result<SqliteConnection, DatabaseError> {
93 self.pool
94 .acquire()
95 .await
96 .map(|conn| conn.detach())
97 .map_err(|e| DatabaseError::ConnectionError(e.to_string()))
98 }
99
100 async fn run_migrations(&self) -> Result<(), DatabaseError> {
101 info!("Running database migrations");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected