(ctx: &DispatchCtx<'_>, seq: u64, key: &str)
| 19 | } |
| 20 | |
| 21 | pub(crate) fn handle_show(ctx: &DispatchCtx<'_>, seq: u64, key: &str) -> NativeResponse { |
| 22 | let value = ctx |
| 23 | .sessions |
| 24 | .get_parameter(ctx.peer_addr, &key.to_lowercase()) |
| 25 | .unwrap_or_default(); |
| 26 | NativeResponse { |
| 27 | seq, |
| 28 | status: nodedb_types::protocol::ResponseStatus::Ok, |
| 29 | columns: Some(vec!["setting".into()]), |
| 30 | rows: Some(vec![vec![Value::String(value)]]), |
| 31 | rows_affected: None, |
| 32 | watermark_lsn: 0, |
| 33 | error: None, |
| 34 | auth: None, |
| 35 | warnings: Vec::new(), |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | pub(crate) fn handle_reset(ctx: &DispatchCtx<'_>, seq: u64, key: &str) -> NativeResponse { |
| 40 | ctx.sessions |
no test coverage detected