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

Method set_default

src/sql/src/session/vars.rs:293–298  ·  view source on GitHub ↗

Sets the default value for the variable.

(&mut self, input: VarInput)

Source from the content-addressed store, hash-verified

291
292 /// Sets the default value for the variable.
293 pub fn set_default(&mut self, input: VarInput) -> Result<(), VarError> {
294 let v = self.definition.parse(input)?;
295 self.validate_constraints(v.as_ref())?;
296 self.default_value = Some(v);
297 Ok(())
298 }
299
300 /// Reset the stored value to the default.
301 pub fn reset(&mut self, local: bool) {

Callers 6

startupMethod · 0.80
from_request_partsMethod · 0.80
handle_mcp_requestFunction · 0.80
smoketest_tracing_formatFunction · 0.80

Calls 9

compat_translateFunction · 0.85
validate_constraintsMethod · 0.80
check_read_onlyMethod · 0.80
notify_callbacksMethod · 0.80
parseMethod · 0.45
as_refMethod · 0.45
mapMethod · 0.45
get_mutMethod · 0.45
to_stringMethod · 0.45

Tested by 1