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

Method initialize_connection

src/session/state.rs:126–131  ·  view source on GitHub ↗

Initialize the session connection with the database handler This ensures the session has its dedicated connection

(&self)

Source from the content-addressed store, hash-verified

124 /// Initialize the session connection with the database handler
125 /// This ensures the session has its dedicated connection
126 pub async fn initialize_connection(&self) -> Result<(), crate::PgSqliteError> {
127 if let Some(ref db_handler) = *self.db_handler.lock().await {
128 db_handler.create_session_connection(self.id).await?;
129 }
130 Ok(())
131 }
132
133 /// Clean up the session connection
134 /// This should be called when the session is being terminated

Callers 2

Calls 1

Tested by

no test coverage detected