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

Method commit

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

Commit the transaction Persists all changes made within this transaction. After calling commit(), the transaction is consumed and cannot be used further. # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./mydb")?; # let session = db.session("admin")?; let mut tx = session.transaction()?; tx.execute("CREATE (p:Person {name: 'Alice'})")?; tx.commit()?; // Changes

(mut self)

Source from the content-addressed store, hash-verified

156 /// # Ok::<(), graphlite_sdk::Error>(())
157 /// ```
158 pub fn commit(mut self) -> Result<()> {
159 self.commit_internal()
160 }
161
162 /// Rollback the transaction
163 ///

Callers 1

mainFunction · 0.45

Calls 1

commit_internalMethod · 0.80

Tested by

no test coverage detected