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

Method parse

src/sql/src/session/vars/value.rs:117–126  ·  view source on GitHub ↗
(input: VarInput)

Source from the content-addressed store, hash-verified

115 }
116
117 fn parse(input: VarInput) -> Result<Self, VarParseError>
118 where
119 Self: Sized,
120 {
121 let s = extract_single_value(input)?;
122 match s {
123 "" => Ok(None),
124 _ => <V as Value>::parse(VarInput::Flat(s)).map(Some),
125 }
126 }
127
128 fn box_clone(&self) -> Box<dyn Value> {
129 Box::new(self.clone())

Callers

nothing calls this directly

Calls 15

extract_single_valueFunction · 0.85
parse_timestamptzFunction · 0.85
split_identifier_stringFunction · 0.85
cfgFunction · 0.85
checked_mulMethod · 0.80
anyMethod · 0.80
to_vecMethod · 0.80
parseFunction · 0.50
mapMethod · 0.45
to_stringMethod · 0.45
trimMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected