schema-typegen
Advanced tools
Comparing version 2.7.0 to 2.7.1
@@ -6,9 +6,9 @@ 'use strict' | ||
const typeMapping = { | ||
string: ['bpchar', 'char', 'varchar', 'text', 'uuid', 'bytea', 'inet', 'time', 'timetz', 'interval', 'name'], | ||
number: ['int2', 'int4', 'float4', 'float8', 'numeric', 'money', 'oid'], | ||
string: ['bpchar', 'char', 'varchar', 'text', 'numeric', 'uuid', 'bytea', 'inet', 'time', 'timetz', 'interval', 'name'], | ||
number: ['int2', 'int4', 'float4', 'float8', 'money', 'oid'], | ||
boolean: ['bool'], | ||
bigint: [], | ||
Date: ['timestamp', 'timestamptz'], | ||
'Array<string>': ['_bpchar', '_char', '_varchar', '_text', '_uuid', '_bytea', '_inet', '_time', '_timetz', '_interval', '_name'], | ||
'Array<number>': ['_int2', '_int4', '_float4', '_float8', '_numeric', '_money', '_oid'], | ||
'Array<string>': ['_bpchar', '_char', '_varchar', '_text', '_numeric', '_uuid', '_bytea', '_inet', '_time', '_timetz', '_interval', '_name'], | ||
'Array<number>': ['_int2', '_int4', '_float4', '_float8', '_money', '_oid'], | ||
'Array<boolean>': ['_bool'], | ||
@@ -15,0 +15,0 @@ 'Array<Date>': ['_timestamp', '_timestamptz'], |
{ | ||
"name": "schema-typegen", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "Generate TypeScript type definitions from database schema", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package