Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.NotNull

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
type alias kysely.NotNull
import { type kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.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; }