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

Method user_modifiable

src/sql/src/session/vars.rs:1437–1441  ·  view source on GitHub ↗

Returns whether or not this parameter can be modified by a superuser.

(&self, name: &str)

Source from the content-addressed store, hash-verified

1435
1436 /// Returns whether or not this parameter can be modified by a superuser.
1437 pub fn user_modifiable(&self, name: &str) -> bool {
1438 SESSION_SYSTEM_VARS.contains_key(UncasedStr::new(name))
1439 || name == ENABLE_RBAC_CHECKS.name()
1440 || name == NETWORK_POLICY.name()
1441 }
1442
1443 /// Returns a [`Var`] representing the configuration parameter with the
1444 /// specified name.

Callers 1

Calls 2

contains_keyMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected