@postgresql-typed/oids
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@PostgreSQL-Typed/OIDs

A collection of the PostgreSQL OIDs (Object Identifiers) for all of the built-in data types.

Table of Contents Installation
Usage
Ecosystem
License

Installation

Install @postgresql-typed/oids

npm install --save @postgresql-typed/oids

Usage

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

Ecosystem

This package is part of the PostgreSQL-Typed ecosystem.

License

Mozilla Public License 2.0

Package Sidebar

Install

npm i @postgresql-typed/oids

Weekly Downloads

991

Version

0.2.0

License

MPL-2.0

Unpacked Size

59.7 kB

Total Files

6

Last publish

Collaborators

  • bas950