MCPcopy Create free account
hub / github.com/erans/pgsqlite / begin_with_session

Method begin_with_session

src/session/db_handler.rs:2146–2151  ·  view source on GitHub ↗

Transaction control methods

(&self, session_id: &Uuid)

Source from the content-addressed store, hash-verified

2144
2145 /// Transaction control methods
2146 pub async fn begin_with_session(&self, session_id: &Uuid) -> Result<(), PgSqliteError> {
2147 self.connection_manager.execute_with_session(session_id, |conn| {
2148 conn.execute("BEGIN", [])?;
2149 Ok(())
2150 })
2151 }
2152
2153 pub async fn commit(&self, session_id: &Uuid) -> Result<(), PgSqliteError> {
2154 // Execute the commit on the current session

Callers 5

execute_transactionMethod · 0.80
execute_transactionMethod · 0.80

Calls 2

execute_with_sessionMethod · 0.45
executeMethod · 0.45

Tested by 3