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

Method parse

src/sql/src/session/vars.rs:1074–1079  ·  view source on GitHub ↗
(&self, input: VarInput)

Source from the content-addressed store, hash-verified

1072 }
1073
1074 fn parse(&self, input: VarInput) -> Result<Box<dyn Value>, VarError> {
1075 let v = self.definition.parse(input)?;
1076 // Validate our parsed value.
1077 self.validate_constraints(v.as_ref())?;
1078 Ok(v)
1079 }
1080
1081 fn set(&mut self, input: VarInput) -> Result<bool, VarError> {
1082 let v = self.parse(input)?;

Callers 5

checkMethod · 0.45
setMethod · 0.45
set_defaultMethod · 0.45
compat_translateFunction · 0.45
is_defaultMethod · 0.45

Calls 3

validate_constraintsMethod · 0.80
as_refMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected