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

Method all_parameters

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

Get all session parameters.

(&self, addr: &SocketAddr)

Source from the content-addressed store, hash-verified

21
22 /// Get all session parameters.
23 pub fn all_parameters(&self, addr: &SocketAddr) -> Vec<(String, String)> {
24 self.read_session(addr, |s| {
25 let mut params: Vec<_> = s
26 .parameters
27 .iter()
28 .map(|(k, v)| (k.clone(), v.clone()))
29 .collect();
30 params.sort_by(|a, b| a.0.cmp(&b.0));
31 params
32 })
33 .unwrap_or_default()
34 }
35}
36
37/// Parse a SET command: `SET [SESSION|LOCAL] key = value` or `SET key TO value`.

Callers 2

handle_show_allMethod · 0.80
handle_show_sqlFunction · 0.80

Calls 5

read_sessionMethod · 0.80
collectMethod · 0.80
iterMethod · 0.45
cloneMethod · 0.45
cmpMethod · 0.45

Tested by

no test coverage detected