function toBooleanPredicate(result): boolean;
Defined in: packages/db/src/query/compiler/evaluators.ts:54
Converts a 3-valued logic result to a boolean for use in WHERE/HAVING filters. In SQL, UNKNOWN (null) values in WHERE clauses exclude rows, matching false behavior.
The 3-valued logic result: true, false, or null (UNKNOWN)
boolean | null
boolean
true only if result is explicitly true, false otherwise
Truth table: