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()