DeleteBuilder
DeleteBuilder =
object
Defined in: packages/db/src/types.ts:530
Builder for delete operations on a single table.
Returned by db.delete(table). Chain .where() to add a condition,
and optionally .returning() to get the deleted row back.
Example
Section titled “Example”await db.delete(posts).where(eq(posts.id, "abc-123")).run({});Properties
Section titled “Properties”where()
Section titled “where()”where: (
condition) =>DeleteReturningBuilder
Defined in: packages/db/src/types.ts:532
Specifies the WHERE condition (AND’d with permission filters at .run() time).
Parameters
Section titled “Parameters”condition
Section titled “condition”unknown