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