import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.4/deps.ts";
const { DeleteQueryBuilder } = kysely;
Clears all returning
clauses from the query.
Examples
db.deleteFrom('pet')
.returningAll()
.where('name', '=', 'Max')
.clearReturning()
The generated SQL(PostgreSQL):
delete from "pet" where "name" = "Max"
Returns
DeleteQueryBuilder<DB, TB, DeleteResult>