risingwave_common::util::env_var

Function env_var_is_true

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

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

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