@postgresql-typed/oids
v0.2.0
Published
A collection of the PostgreSQL OIDs (Object Identifiers) for all of the built-in data types.
Downloads
2,787
Maintainers
Readme
npm install --save @postgresql-typed/oids
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