MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / inspect

Method inspect

src/sql/src/session/vars.rs:565–571  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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`.

Callers 9

send_rowsMethod · 0.80
upsert_innerFunction · 0.80
source_render_operatorFunction · 0.80
write_batchesFunction · 0.80
startupMethod · 0.80
sequence_alter_roleMethod · 0.80
runFunction · 0.80

Calls 3

compat_translate_nameFunction · 0.85
getMethod · 0.45
to_stringMethod · 0.45

Tested by 1