Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.NotNull

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

A type constant for marking a column as not null. Can be used with $narrowPartial.

Example:

const person = await db.selectFrom('person')
  .where('nullable_column', 'is not', null)
  .selectAll()
  .$narrowType<{ nullable_column: NotNull }>()
  .executeTakeFirstOrThrow()
definition: { readonly __notNull__: unique symbol; }