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

Method is_default

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

Source from the content-addressed store, hash-verified

1055 }
1056
1057 fn is_default(&self, input: VarInput) -> Result<bool, VarError> {
1058 let v = self.definition.parse(input)?;
1059 Ok(self.definition.default_value() == v.as_ref())
1060 }
1061
1062 pub fn value_dyn(&self) -> &dyn Value {
1063 self.persisted_value

Callers

nothing calls this directly

Calls 4

default_valueMethod · 0.80
parseMethod · 0.45
as_refMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected