MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / rollback_internal

Method rollback_internal

sdk-rust/src/transaction.rs:225–237  ·  view source on GitHub ↗

Internal rollback implementation

(&mut self)

Source from the content-addressed store, hash-verified

223
224 /// Internal rollback implementation
225 fn rollback_internal(&mut self) -> Result<()> {
226 if self.committed {
227 return Ok(()); // Already committed, nothing to rollback
228 }
229
230 self.session
231 .coordinator()
232 .process_query("ROLLBACK", self.session.id())
233 .map_err(|e| Error::Transaction(format!("Failed to rollback: {}", e)))?;
234
235 self.committed = true; // Mark as finished
236 Ok(())
237 }
238}
239
240impl<'conn> Drop for Transaction<'conn> {

Callers 2

rollbackMethod · 0.80
dropMethod · 0.80

Calls 4

process_queryMethod · 0.80
coordinatorMethod · 0.80
TransactionClass · 0.70
idMethod · 0.45

Tested by

no test coverage detected