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

Method expect_config_value

src/sql/src/session/vars.rs:1392–1402  ·  view source on GitHub ↗
(&self, name: &UncasedStr)

Source from the content-addressed store, hash-verified

1390 }
1391
1392 fn expect_config_value<V: ConfigType + 'static>(&self, name: &UncasedStr) -> &V {
1393 let val = self
1394 .vars
1395 .get(name)
1396 .unwrap_or_else(|| panic!("provided var {name} should be in state"));
1397
1398 val.value_dyn()
1399 .as_any()
1400 .downcast_ref()
1401 .expect("provided var type should matched stored var")
1402 }
1403
1404 /// Reset all the values to their defaults (preserving
1405 /// defaults from `VarMut::set_default).

Callers 6

crdb_connect_timeoutMethod · 0.80
crdb_tcp_user_timeoutMethod · 0.80
crdb_keepalives_idleMethod · 0.80

Calls 4

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

Tested by

no test coverage detected