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

Method get

src/session/thread_local_cache.rs:22–26  ·  view source on GitHub ↗
(session_id: &Uuid)

Source from the content-addressed store, hash-verified

20 /// Try to get a connection from the thread-local cache
21 #[inline(always)]
22 pub fn get(session_id: &Uuid) -> Option<Arc<Mutex<Connection>>> {
23 CONNECTION_CACHE.with(|cache| {
24 cache.borrow_mut().get(session_id).cloned()
25 })
26 }
27
28 /// Store a connection in the thread-local cache
29 #[inline(always)]

Callers 13

execute_with_paramsMethod · 0.45
queryMethod · 0.45
query_with_sessionMethod · 0.45
get_portalMethod · 0.45
get_execution_stateMethod · 0.45
execute_with_sessionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected