?
db.every
Resolves to true if every row matches the predicate. Returns a Promise, not a Query, so it does not batch.
Table.every(predicate, bindings?) → Promise<boolean>
Resolves to true when every row satisfies the predicate. Unlike most reads it returns a Promise directly rather than a Query, so it cannot go inside db.batch. Keep it separate from batched work.
Parameters
predicate
(row, $) => boolean
RequiredTested against every row.
bindings
object
Outer-scope values lifted so the check compiles to SQL.
All rows match
const allApproved = await Vendors.every((v) => v.status === 'approved');