Treat the predicate value as a SQL truth: NULL → false, true → true, false → false.
(v: &VValue)
| 222 | /// Treat the predicate value as a SQL truth: NULL → false, true → true, |
| 223 | /// false → false. |
| 224 | pub fn truthy(v: &VValue) -> bool { |
| 225 | matches!(v, VValue::Bool(true)) |
| 226 | } |
| 227 | |
| 228 | /// SQL `LIKE` with `%` (any string) and `_` (any single char). No escape |
| 229 | /// handling — virtual-table data does not embed literal `%` or `_`. |