risingwave_common::cast

Function str_to_bool

source
pub fn str_to_bool(input: &str) -> Result<bool, String>
Expand description

Parse a string into a bool.

See [https://www.postgresql.org/docs/9.5/datatype-boolean.html]