2022-12-30 12:57:47 +00:00
|
|
|
use crate::err::Error;
|
2022-12-30 09:34:46 +00:00
|
|
|
use crate::sql::Value;
|
|
|
|
|
|
|
|
/// Returns a boolean that is false if the input is truthy and true otherwise.
|
|
|
|
pub fn not((val,): (Value,)) -> Result<Value, Error> {
|
|
|
|
Ok((!val.is_truthy()).into())
|
|
|
|
}
|