Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(expression: &str, properties: &Properties) -> Result<bool>
Expand description

Evaluate a CHECK constraint expression against a property bag.

Returns Ok(true) when the constraint holds, is inapplicable (missing property), or is outside the supported grammar.

§Errors

Returns an error only when the two operands cannot be ordered — e.g. CHECK (name > 5) against a string. Callers treat that as a failed write, not as a constraint violation.