2.0.0 • Published 1 year ago
postgresql-data-types v2.0.0
# npm
npm install postgresql-data-types
# yarn
yarn add postgresql-data-types
# pnpm
pnpm i postgresql-data-types
import { DataType, DataTypes } from "postgresql-data-types";
console.log(DataType.uuid); // 2950
let datatype: DataTypes = "uuid"; // Has autocomplete when using DataTypes as the TypeScript type
console.log(DataType[datatype]); // 2950