A collection of the PostgreSQL OIDs (Object Identifiers) for all of the built-in data types.
npm install @postgresql-typed/oids
A collection of the PostgreSQL OIDs (Object Identifiers) for all of the built-in data types.
Install @postgresql-typed/oids
``bash`
npm install --save @postgresql-typed/oids
`ts
import { OID, OIDs } from "@postgresql-typed/oids";
console.log(OID.uuid); // 2950
let oid: OIDs = "uuid"; // Has autocomplete when using OIDs as the TypeScript type
console.log(OID[oid]); // 2950
``
This package is part of the PostgreSQL-Typed ecosystem.