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

Method expect_value

src/sql/src/session/vars.rs:460–467  ·  view source on GitHub ↗
(&self, var: &VarDefinition)

Source from the content-addressed store, hash-verified

458 }
459
460 fn expect_value<V: Value>(&self, var: &VarDefinition) -> &V {
461 let var = self
462 .vars
463 .get(var.name)
464 .expect("provided var should be in state");
465 let val = var.value_dyn();
466 val.as_any().downcast_ref::<V>().expect("success")
467 }
468
469 /// Returns an iterator over the configuration parameters and their current
470 /// values for this session.

Callers 15

client_encodingMethod · 0.80
client_min_messagesMethod · 0.80
extra_float_digitsMethod · 0.80
integer_datetimesMethod · 0.80
intervalstyleMethod · 0.80
server_version_numMethod · 0.80
sql_safe_updatesMethod · 0.80
statement_timeoutMethod · 0.80
timezoneMethod · 0.80
transaction_isolationMethod · 0.80

Calls 4

expectMethod · 0.80
value_dynMethod · 0.80
getMethod · 0.45
as_anyMethod · 0.45

Tested by

no test coverage detected