Skip to content

postgrelize / DataType

Type Alias: DataType ​

DataType = Readonly<{ bindCast?: string; isJson?: boolean; isVirtual?: boolean; key: string; parse?: (value) => unknown; serialize?: (value) => unknown; sqlType: string; subtype?: DataType; values?: readonly string[]; }>

Defined in: src/data-types/abstract-data-type.ts:5

Description of a column type: its SQL type and conversions between JavaScript values and the values sent to / received from PostgreSQL.

Released under the MIT License.