Skip to main content
Module

x/drizzle/pg-core.ts>customType

Deno port of the drizzle-orm library
Latest
function customType
Re-export
import { customType } from "https://deno.land/x/drizzle@v0.23.85/pg-core.ts";

Custom pg database data type generator

Parameters

customTypeParams: CustomTypeParams<T>

Returns

Equal<T["configRequired"], true> extends true ? <TName extends string>(dbName: TName, fieldConfig: T["config"]) => PgCustomColumnBuilder<ConvertCustomConfig<TName, T>> : <TName extends string>(dbName: TName, fieldConfig?: T["config"]) => PgCustomColumnBuilder<ConvertCustomConfig<TName, T>>