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

Method begin

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

Source from the content-addressed store, hash-verified

70 }
71
72 pub async fn begin(&self) -> Result<SqliteTransaction<'_>, DatabaseError> {
73 self.pool
74 .begin()
75 .await
76 .map_err(|e| DatabaseError::TransactionError(e.to_string()))
77 }
78
79 pub async fn transaction<F, T, Fut>(&self, f: F) -> Result<T, DatabaseError>
80 where

Callers 1

transactionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected