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

Method transaction

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

Begin a new transaction Transactions provide ACID guarantees and can be committed or rolled back. Following the rusqlite pattern, transactions will automatically roll back when dropped unless explicitly committed. # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./mydb")?; let session = db.session("admin")?; // Transaction with explicit commit let mut tx = sessi

(&self)

Source from the content-addressed store, hash-verified

233 /// # Ok::<(), graphlite_sdk::Error>(())
234 /// ```
235 pub fn transaction(&self) -> Result<Transaction<'_>> {
236 Transaction::begin(self)
237 }
238
239 /// Get the internal coordinator (for internal SDK use)
240 pub(crate) fn coordinator(&self) -> &QueryCoordinator {

Callers 3

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected