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

Method require_feature_flag

src/sql/src/plan/statement.rs:895–898  ·  view source on GitHub ↗

Returns an error if the named `FeatureFlag` is not set to `on`.

(&self, flag: &'static FeatureFlag)

Source from the content-addressed store, hash-verified

893
894 /// Returns an error if the named `FeatureFlag` is not set to `on`.
895 pub fn require_feature_flag(&self, flag: &'static FeatureFlag) -> Result<(), PlanError> {
896 flag.require(self.catalog.system_vars())?;
897 Ok(())
898 }
899
900 /// Returns true if the named [`FeatureFlag`] is set to `on`, returns false otherwise.
901 pub fn is_feature_flag_enabled(&self, flag: &'static FeatureFlag) -> bool {

Callers 2

planFunction · 0.45

Calls 2

requireMethod · 0.45
system_varsMethod · 0.45

Tested by

no test coverage detected