Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.DeleteQueryBuilder#clearReturning

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
method kysely.DeleteQueryBuilder.prototype.clearReturning
Re-export
import { kysely } from "https://deno.land/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"