MCPcopy Create free account
hub / github.com/erans/pgsqlite / set_db_handler

Method set_db_handler

src/session/state.rs:115–117  ·  view source on GitHub ↗

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>)

Source from the content-addressed store, hash-verified

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>> {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected