MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / get_parameter

Method get_parameter

nodedb/src/control/server/pgwire/session/params.rs:18–20  ·  view source on GitHub ↗

Get a session parameter.

(&self, addr: &SocketAddr, key: &str)

Source from the content-addressed store, hash-verified

16
17 /// Get a session parameter.
18 pub fn get_parameter(&self, addr: &SocketAddr, key: &str) -> Option<String> {
19 self.read_session(addr, |s| s.parameters.get(key).cloned())?
20 }
21
22 /// Get all session parameters.
23 pub fn all_parameters(&self, addr: &SocketAddr) -> Vec<(String, String)> {

Callers 8

read_consistencyMethod · 0.80
cross_shard_txn_modeMethod · 0.80
handle_showMethod · 0.80
handle_show_sqlFunction · 0.80
handle_showFunction · 0.80

Calls 2

read_sessionMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected