Parsers to convert PostgreSQL data types to TypeScript classes
Install @postgresql-typed/parsers
npm install --save @postgresql-typed/parsers
You can find the usage examples for each type parser in their respective documentation pages.
Category | Included Data Types |
---|---|
ByteA |
bytea |
Bit String |
bit varbit |
Boolean |
bool |
Character |
bpchar char varchar name text |
Date/Time |
date interval time timetz timestamp timestamptz |
Geometric |
box circle line lseg path point polygon |
JSON |
json jsonb |
Money |
money |
Numeric |
float4 float8 int2 int4 int8 |
OID |
oid |
UUID |
uuid |
Range and MultiRange data types are also supported by the Range and MultiRange parsers respectively.
This package is part of the PostgreSQL-Typed ecosystem.