risingwave_common::util::env_var

Function env_var_is_true_or

source
pub fn env_var_is_true_or(key: impl AsRef<OsStr>, default: bool) -> bool
Expand description

Checks whether the environment variable key is set to true or 1 or t.

Returns default if the environment variable is not set, or contains invalid characters.