prorm API Reference
    Preparing search index...

    Function compileCondition

    • Compile a where object into a standalone boolean expression — no WHERE keyword, no bind parameters.

      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.

      Parameters

      Returns string