Parsers to convert PostgreSQL data types to TypeScript classes
npm install @postgresql-typed/parsers
Parsers to convert PostgreSQL data types to TypeScript classes
Install @postgresql-typed/parsers
``bash``
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 | bitvarbit |
Boolean | bool |
Character | bpcharcharvarcharnametext |
Date/Time | dateintervaltimetimetztimestamptimestamptz |
Geometric | boxcirclelinelsegpathpointpolygon |
JSON | jsonjsonb |
Money | money |
Numeric | float4float8int2int4int8 |
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.