Set the behavior when this transaction is dropped By default, transactions roll back when dropped. This can be changed to: - `DropBehavior::Commit` - Auto-commit on drop - `DropBehavior::Panic` - Panic if dropped without explicit commit/rollback - `DropBehavior::Ignore` - Do nothing (dangerous) # Examples ```no_run # use graphlite_sdk::{GraphLite, transaction::DropBehavior}; # let db = GraphLit
(&mut self, behavior: DropBehavior)
| 201 | /// # Ok::<(), graphlite_sdk::Error>(()) |
| 202 | /// ``` |
| 203 | pub fn set_drop_behavior(&mut self, behavior: DropBehavior) { |
| 204 | self.drop_behavior = behavior; |
| 205 | } |
| 206 | |
| 207 | /// Internal commit implementation |
| 208 | fn commit_internal(&mut self) -> Result<()> { |
nothing calls this directly
no outgoing calls
no test coverage detected