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

Method value_dyn

src/sql/src/session/vars.rs:337–344  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

335 }
336
337 pub fn value_dyn(&self) -> &dyn Value {
338 self.local_value
339 .as_deref()
340 .or(self.staged_value.as_deref())
341 .or(self.session_value.as_deref())
342 .or(self.default_value.as_deref())
343 .unwrap_or_else(|| self.definition.value.value())
344 }
345
346 /// Returns the [`Value`] that is currently stored as the `session_value`.
347 ///

Callers 4

validate_constraintsMethod · 0.80
valueMethod · 0.80
expect_valueMethod · 0.80
expect_config_valueMethod · 0.80

Calls 3

default_valueMethod · 0.80
orMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected