MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / truthy

Function truthy

nodedb/src/control/server/pgwire/pg_catalog/vquery/expr.rs:224–226  ·  view source on GitHub ↗

Treat the predicate value as a SQL truth: NULL → false, true → true, false → false.

(v: &VValue)

Source from the content-addressed store, hash-verified

222/// Treat the predicate value as a SQL truth: NULL → false, true → true,
223/// false → false.
224pub 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 `_`.

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected