Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.InsertQueryBuilder#clearReturning

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

Clears all returning clauses from the query.

Examples

db.insertInto('person')
  .values({ first_name: 'James', last_name: 'Smith', age: 42 })
  .returning(['first_name'])
  .clearReturning()

The generated SQL(PostgreSQL):

insert into "person" ("James", "Smith", 42)