Provides lookup tables mapping PostgreSQL OIDs to data type names and descriptions. v1.0.0 is the current stable version; no recent updates. Lightweight utility for node-postgres ecosystem. Differentiator: simple OID-to-name mapping with reverse lookup, plus human-readable descriptions.
npm install pg-type-namesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Import and use pg-type-names to look up PostgreSQL type names by OID, reverse lookup, and get descriptions.
Check for undefined when accessing names[0]
Add custom mappings manually or use another library like pg-types
Consider using pg-types directly for more complete type mapping
Refer to Postgres docs for authoritative type information
Run `npm install pg-type-names` and ensure case-correct import
Use `import { oids } from 'pg-type-names'`Check for existence before use: `names[oid] ?? 'unknown'`
No dependency data recorded yet.