Create a new session transaction state
(manager: Arc<TransactionManager>)
| 34 | impl SessionTransactionState { |
| 35 | /// Create a new session transaction state |
| 36 | pub fn new(manager: Arc<TransactionManager>) -> Self { |
| 37 | Self { |
| 38 | manager, |
| 39 | current_transaction: Arc::new(RwLock::new(None)), |
| 40 | transaction_logs: Arc::new(RwLock::new(HashMap::new())), |
| 41 | auto_commit: Arc::new(RwLock::new(true)), |
| 42 | isolation_level: Arc::new(RwLock::new(IsolationLevel::ReadCommitted)), |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | /// Get the transaction manager |
| 47 | pub fn manager(&self) -> Arc<TransactionManager> { |
nothing calls this directly
no outgoing calls
no test coverage detected