Returns a [`SessionVar`] for inspection. Note: If you're trying to determine the value of the variable with `name` you should instead use the named accessor, or [`SessionVars::get`].
(&self, name: &str)
| 563 | /// Note: If you're trying to determine the value of the variable with `name` you should |
| 564 | /// instead use the named accessor, or [`SessionVars::get`]. |
| 565 | pub fn inspect(&self, name: &str) -> Result<&SessionVar, VarError> { |
| 566 | let name = compat_translate_name(name); |
| 567 | |
| 568 | self.vars |
| 569 | .get(UncasedStr::new(name)) |
| 570 | .ok_or_else(|| VarError::UnknownParameter(name.to_string())) |
| 571 | } |
| 572 | |
| 573 | /// Sets the configuration parameter named `name` to the value represented |
| 574 | /// by `value`. |