Represents an active database transaction Transactions provide ACID guarantees for multi-statement operations. Following the rusqlite pattern: - Transactions automatically **roll back** when dropped - Must explicitly call `commit()` to persist changes - This prevents accidentally forgetting to commit or rollback # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./
| 38 | /// # Ok::<(), graphlite_sdk::Error>(()) |
| 39 | /// ``` |
| 40 | pub struct Transaction<'conn> { |
| 41 | session: &'conn Session, |
| 42 | committed: bool, |
| 43 | drop_behavior: DropBehavior, |
| 44 | } |
| 45 | |
| 46 | /// Behavior when a transaction is dropped |
| 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
no outgoing calls
no test coverage detected