diff options
Diffstat (limited to 'src/transaction.rs')
-rw-r--r-- | src/transaction.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transaction.rs b/src/transaction.rs index e1b806e..5e649b7 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -6,8 +6,14 @@ use std::ops::Deref; #[derive(Copy, Clone)] #[non_exhaustive] pub enum TransactionBehavior { + /// DEFERRED means that the transaction does not actually start until the + /// database is first accessed. Deferred, + /// IMMEDIATE cause the database connection to start a new write + /// immediately, without waiting for a writes statement. Immediate, + /// EXCLUSIVE prevents other database connections from reading the database + /// while the transaction is underway. Exclusive, } |