Metakit / @doeixd/metakit/drizzle
toWhere
function · packages/metakit/src/drizzle.ts:301
function toWhere<Env>(
expr: Expr.Expr<Env, boolean | null>,
table: Table,
options?: DrizzleOptions,
): Result.Result<SQL, SqlUnsupportedError>A boolean Expr as a Drizzle SQL predicate for .where(...), which keeps a row only where it is true.