NullableIdColumnType
NullableIdColumnType<
Brand> =ColumnType<Id<Brand> |null,Id<Brand> |null,Id<Brand> |null>
Defined in: src/adapters/kysely.ts:59
Kysely column type mapping for a nullable Id<Brand> column.
Use in your Kysely Database interface for optional foreign keys or any
column that can be NULL. Pair with nullableIdColumn(codec) for runtime
transformation.
Type Parameters
Section titled “Type Parameters”Brand extends string
Example
Section titled “Example”import type { NullableIdColumnType } from "@smonn/ids/kysely";import type { Id } from "@smonn/ids";
interface Database { posts: { authorId: NullableIdColumnType<"usr"> };}