Compile a where object into a standalone boolean expression — no WHERE keyword, no bind parameters.
where
WHERE
compileCondition(dialect, { status: 'active' }); // "status" = 'active'compileCondition(dialect, { age: { $gte: 21 } }); // "age" >= 21 Copy
compileCondition(dialect, { status: 'active' }); // "status" = 'active'compileCondition(dialect, { age: { $gte: 21 } }); // "age" >= 21
Returns an empty string for an empty condition, which callers treat as "no constraint" rather than emitting a dangling clause.
Compile a
whereobject into a standalone boolean expression — noWHEREkeyword, no bind parameters.Returns an empty string for an empty condition, which callers treat as "no constraint" rather than emitting a dangling clause.