Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.WheneableMergeQueryBuilder#whenMatchedAndRef

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

Adds the when matched clause to the query with an and condition. But unlike {@link whenMatchedAnd}, this method accepts a column reference as the 3rd argument.

This method is similar to {@link SelectQueryBuilder.whereRef}, so see the documentation for that method for more examples.

Type Parameters

LRE extends ReferenceExpression<DB, TT | ST>
RRE extends ReferenceExpression<DB, TT | ST>