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

Method rollback

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

Rollback the transaction Discards all changes made within this transaction. This is called automatically when the transaction is dropped, so explicit rollback is rarely needed. # 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.

(mut self)

Source from the content-addressed store, hash-verified

177 /// # Ok::<(), graphlite_sdk::Error>(())
178 /// ```
179 pub fn rollback(mut self) -> Result<()> {
180 self.rollback_internal()
181 }
182
183 /// Set the behavior when this transaction is dropped
184 ///

Callers

nothing calls this directly

Calls 1

rollback_internalMethod · 0.80

Tested by

no test coverage detected