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

Method value

src/expr/src/interpret.rs:216–224  ·  view source on GitHub ↗

A spec that only matches the given value.

(value: Datum<'a>)

Source from the content-addressed store, hash-verified

214
215 /// A spec that only matches the given value.
216 pub fn value(value: Datum<'a>) -> ResultSpec<'a> {
217 match value {
218 Datum::Null => Self::null(),
219 nonnull => ResultSpec {
220 values: Values::just(nonnull),
221 ..Self::nothing()
222 },
223 }
224 }
225
226 /// A spec that matches values between the given (non-null) min and max.
227 pub fn value_between(min: Datum<'a>, max: Datum<'a>) -> ResultSpec<'a> {

Callers 15

peekViewMethod · 0.45
parse_literal_okFunction · 0.45
parse_literal_errFunction · 0.45
parse_datumMethod · 0.45
parse_analysesFunction · 0.45
runFunction · 0.45
send_execute_responseMethod · 0.45
newMethod · 0.45
readMethod · 0.45
fmtMethod · 0.45
goodbytesMethod · 0.45
cmpMethod · 0.45

Calls

no outgoing calls