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

Method get_db_handler

src/session/state.rs:120–122  ·  view source on GitHub ↗

Get the database handler for this session

(&self)

Source from the content-addressed store, hash-verified

118
119 /// Get the database handler for this session
120 pub async fn get_db_handler(&self) -> Option<Arc<DbHandler>> {
121 self.db_handler.lock().await.clone()
122 }
123
124 /// Initialize the session connection with the database handler
125 /// This ensures the session has its dedicated connection

Callers 1

handle_catalog_queryMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected