Set the database handler for this session This should be called after the session is created and a connection is established
(&self, db_handler: Arc<DbHandler>)
| 113 | /// Set the database handler for this session |
| 114 | /// This should be called after the session is created and a connection is established |
| 115 | pub async fn set_db_handler(&self, db_handler: Arc<DbHandler>) { |
| 116 | *self.db_handler.lock().await = Some(db_handler); |
| 117 | } |
| 118 | |
| 119 | /// Get the database handler for this session |
| 120 | pub async fn get_db_handler(&self) -> Option<Arc<DbHandler>> { |
no outgoing calls
no test coverage detected