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.CaseThenBuilder#then

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
method kysely.CaseThenBuilder.prototype.then
import { kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.4/deps.ts";
const { CaseThenBuilder } = kysely;

Adds a then clause to the case statement.

A then call can be followed by Whenable.when, CaseWhenBuilder.else, CaseWhenBuilder.end or CaseWhenBuilder.endCase call.

Type Parameters

E extends Expression<unknown>

Parameters

expression: E

Returns

CaseWhenBuilder<DB, TB, W, O | ExtractTypeFromValueExpression<E>>