Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.DeleteQueryBuilder#$call

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

Simply calls the provided function passing this as the only argument. $call returns what the provided function returns.

If you want to conditionally call a method on this, see the {@link $if} method.

Examples

The next example uses a helper function log to log a query:

function log<T extends Compilable>(qb: T): T {
  console.log(qb.compile())
  return qb
}

db.deleteFrom('person')
  .$call(log)
  .execute()

Parameters

func: (qb: this) => T