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

Method with_session_connection

src/session/db_handler.rs:2574–2583  ·  view source on GitHub ↗

Execute a closure with access to the session's connection

(
        &self,
        session_id: &Uuid,
        f: F
    )

Source from the content-addressed store, hash-verified

2572
2573 // Execute a closure with access to the session's connection
2574 pub async fn with_session_connection<F, R>(
2575 &self,
2576 session_id: &Uuid,
2577 f: F
2578 ) -> Result<R, PgSqliteError>
2579 where
2580 F: FnOnce(&rusqlite::Connection) -> Result<R, rusqlite::Error>
2581 {
2582 self.connection_manager.execute_with_session(session_id, f)
2583 }
2584
2585 pub async fn with_session_connection_mut<F, R>(
2586 &self,

Callers 13

get_table_schema_infoFunction · 0.80
execute_selectMethod · 0.80
execute_dmlMethod · 0.80
execute_ddlMethod · 0.80
handle_parseMethod · 0.80
handle_executeMethod · 0.80
execute_ddlMethod · 0.80
handle_catalog_queryMethod · 0.80
handle_pg_type_queryMethod · 0.80

Calls 1

execute_with_sessionMethod · 0.45

Tested by

no test coverage detected