pg-type-names
v1.0.0
Published
Type names for node-postgres
Downloads
112
Maintainers
Readme
pg-type-names
Return the data type names given postgres OIDs. This module just provides simple lookup tables for OID -> typename.
Installation
npm install pg-type-names
Example
var types = require('pg-type-names');
console.log(types.names[20]);
// bigint
console.log(types.oids['bigint']);
// 20
console.log(types.descriptions['bigint']);
// ~18 digit integer, 8-byte storage