Skip to main content
Module

x/drizzle/pg-core.ts>CustomTypeParams

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

Properties

dataType: (config: T["config"] | (Equal<T["configRequired"], true> extends true ? never : undefined)) => string

Database data type string representation, that is used for migrations

optional
toDriver: (value: T["data"]) => T["driverData"] | SQL

Optional mapping function, between user input and driver

optional
fromDriver: (value: T["driverData"]) => T["data"]

Optional mapping function, that is responsible for data mapping from database to JS/TS code