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

Function handle_select

nodedb/src/control/server/resp/handler.rs:86–94  ·  view source on GitHub ↗
(cmd: &RespCommand, session: &mut RespSession)

Source from the content-addressed store, hash-verified

84}
85
86fn handle_select(cmd: &RespCommand, session: &mut RespSession) -> RespValue {
87 match cmd.arg_str(0) {
88 Some(name) => {
89 session.collection = name.to_string();
90 RespValue::ok()
91 }
92 None => RespValue::err("ERR wrong number of arguments for 'select' command"),
93 }
94}
95
96/// AUTH [username] password
97///

Callers 1

executeFunction · 0.85

Calls 4

arg_strMethod · 0.80
to_stringMethod · 0.80
okFunction · 0.50
errFunction · 0.50

Tested by

no test coverage detected