Module

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

Kysely dialect for PostgreSQL using the Postgres.js client.
method kysely.UpdateQueryBuilder.prototype.clearReturning
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { UpdateQueryBuilder } = kysely;

Clears all returning clauses from the query.

Examples

db.updateTable('person')
  .returningAll()
  .set({ age: 39 })
  .where('first_name', '=', 'John')
  .clearReturning()

The generated SQL(PostgreSQL):

update "person" set "age" = 39 where "first_name" = "John"