Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.ExpressionWrapper#$notNull

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

Omit null from the expression's type.

This function can be useful in cases where you know an expression can't be null, but Kysely is unable to infer it.

This method call doesn't change the SQL in any way. This methods simply returns a copy of this with a new output type.

Returns

ExpressionWrapper<DB, TB, Exclude<T, null>>