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

Class Transaction

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

Represents an active database transaction Transactions provide ACID guarantees for multi-statement operations. Following the rusqlite pattern: - Transactions automatically **roll back** when dropped - Must explicitly call `commit()` to persist changes - This prevents accidentally forgetting to commit or rollback # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./

Source from the content-addressed store, hash-verified

38/// # Ok::<(), graphlite_sdk::Error>(())
39/// ```
40pub struct Transaction<'conn> {
41 session: &'conn Session,
42 committed: bool,
43 drop_behavior: DropBehavior,
44}
45
46/// Behavior when a transaction is dropped
47#[derive(Debug, Clone, Copy, PartialEq, Eq)]

Callers 5

beginMethod · 0.70
executeMethod · 0.70
queryMethod · 0.70
commit_internalMethod · 0.70
rollback_internalMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected