Create a new instance session provider # Arguments `transaction_manager` - Transaction manager for this instance `storage_manager` - Storage manager for this instance `catalog_manager` - Catalog manager for this instance
(
transaction_manager: Arc<TransactionManager>,
storage_manager: Arc<StorageManager>,
catalog_manager: Arc<RwLock<CatalogManager>>,
)
| 33 | /// * `storage_manager` - Storage manager for this instance |
| 34 | /// * `catalog_manager` - Catalog manager for this instance |
| 35 | pub fn new( |
| 36 | transaction_manager: Arc<TransactionManager>, |
| 37 | storage_manager: Arc<StorageManager>, |
| 38 | catalog_manager: Arc<RwLock<CatalogManager>>, |
| 39 | ) -> Self { |
| 40 | let manager = Arc::new(SessionManager::new( |
| 41 | transaction_manager, |
| 42 | storage_manager, |
| 43 | catalog_manager, |
| 44 | )); |
| 45 | |
| 46 | Self { manager } |
| 47 | } |
| 48 | |
| 49 | /// Get the underlying session manager (for compatibility) |
| 50 | pub fn manager(&self) -> Arc<SessionManager> { |
nothing calls this directly
no outgoing calls
no test coverage detected