@vizzly/sqlbuilder-public
Advanced tools
| declare const _default: { | ||
| JSONB: { | ||
| normalizedType: string; | ||
| }; | ||
| UUID: { | ||
| normalizedType: string; | ||
| }; | ||
| DECIMAL: { | ||
| normalizedType: string; | ||
| }; | ||
| NUMERIC: { | ||
| normalizedType: string; | ||
| }; | ||
| INT: { | ||
| normalizedType: string; | ||
| }; | ||
| INTEGER: { | ||
| normalizedType: string; | ||
| }; | ||
| BIGINT: { | ||
| normalizedType: string; | ||
| }; | ||
| SMALLINT: { | ||
| normalizedType: string; | ||
| }; | ||
| DOUBLEPRECISION: { | ||
| normalizedType: string; | ||
| castAs: string; | ||
| }; | ||
| "DOUBLE PRECISION": { | ||
| normalizedType: string; | ||
| }; | ||
| REAL: { | ||
| normalizedType: string; | ||
| }; | ||
| FLOAT: { | ||
| normalizedType: string; | ||
| }; | ||
| NUMBER: { | ||
| normalizedType: string; | ||
| }; | ||
| BINARY: { | ||
| normalizedType: string; | ||
| }; | ||
| VARBINARY: { | ||
| normalizedType: string; | ||
| }; | ||
| CHAR: { | ||
| normalizedType: string; | ||
| }; | ||
| CHARACTER: { | ||
| normalizedType: string; | ||
| }; | ||
| "CHARACTER VARYING": { | ||
| normalizedType: string; | ||
| }; | ||
| TEXT: { | ||
| normalizedType: string; | ||
| }; | ||
| VARCHAR: { | ||
| normalizedType: string; | ||
| }; | ||
| TIME: { | ||
| normalizedType: string; | ||
| }; | ||
| DATE: { | ||
| normalizedType: string; | ||
| }; | ||
| TIMESTAMP_LTZ: { | ||
| normalizedType: string; | ||
| }; | ||
| TIMESTAMP_NTZ: { | ||
| normalizedType: string; | ||
| }; | ||
| TIMESTAMP_TZ: { | ||
| normalizedType: string; | ||
| }; | ||
| TIMESTAMP: { | ||
| normalizedType: string; | ||
| }; | ||
| BOOLEAN: { | ||
| normalizedType: string; | ||
| }; | ||
| "TIMESTAMP WITH TIME ZONE": { | ||
| normalizedType: string; | ||
| }; | ||
| "TIMESTAMP WITHOUT TIME ZONE": { | ||
| normalizedType: string; | ||
| }; | ||
| ARRAY: { | ||
| normalizedType: string; | ||
| }; | ||
| }; | ||
| export default _default; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const STRING_NATIVE_COMPARISONS = [ | ||
| "TEXT", | ||
| "BINARY", | ||
| "VARBINARY", | ||
| "CHAR", | ||
| "CHARACTER", | ||
| "CHARACTER VARYING", | ||
| "TEXT", | ||
| "VARCHAR", | ||
| ]; | ||
| exports.default = { | ||
| JSONB: { | ||
| normalizedType: "string", | ||
| }, | ||
| UUID: { | ||
| normalizedType: "string", | ||
| }, | ||
| DECIMAL: { | ||
| normalizedType: "number", | ||
| }, | ||
| NUMERIC: { | ||
| normalizedType: "number", | ||
| }, | ||
| INT: { | ||
| normalizedType: "number", | ||
| }, | ||
| INTEGER: { | ||
| normalizedType: "number", | ||
| }, | ||
| BIGINT: { | ||
| normalizedType: "number", | ||
| }, | ||
| SMALLINT: { | ||
| normalizedType: "number", | ||
| }, | ||
| DOUBLEPRECISION: { | ||
| normalizedType: "number", | ||
| castAs: "DOUBLE PRECISION", | ||
| }, | ||
| "DOUBLE PRECISION": { | ||
| normalizedType: "number", | ||
| }, | ||
| REAL: { | ||
| normalizedType: "number", | ||
| }, | ||
| FLOAT: { | ||
| normalizedType: "number", | ||
| }, | ||
| NUMBER: { | ||
| normalizedType: "number", | ||
| }, | ||
| BINARY: { | ||
| normalizedType: "string", | ||
| }, | ||
| VARBINARY: { | ||
| normalizedType: "string", | ||
| }, | ||
| CHAR: { | ||
| normalizedType: "string", | ||
| }, | ||
| CHARACTER: { | ||
| normalizedType: "string", | ||
| }, | ||
| "CHARACTER VARYING": { | ||
| normalizedType: "string", | ||
| }, | ||
| TEXT: { | ||
| normalizedType: "string", | ||
| }, | ||
| VARCHAR: { | ||
| normalizedType: "string", | ||
| }, | ||
| TIME: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| DATE: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| TIMESTAMP_LTZ: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| TIMESTAMP_NTZ: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| TIMESTAMP_TZ: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| TIMESTAMP: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| BOOLEAN: { | ||
| normalizedType: "boolean", | ||
| }, | ||
| "TIMESTAMP WITH TIME ZONE": { | ||
| normalizedType: "date_time", | ||
| }, | ||
| "TIMESTAMP WITHOUT TIME ZONE": { | ||
| normalizedType: "date_time", | ||
| }, | ||
| ARRAY: { | ||
| normalizedType: "string[]", | ||
| }, | ||
| }; |
| import { NormalizedDataType } from "./types"; | ||
| export declare const NATIVE_DATA_TYPES_DATABASE: { | ||
| [client: string]: { | ||
| [nativeDataType: string]: { | ||
| castAs?: string | null; | ||
| normalizedType: NormalizedDataType; | ||
| }; | ||
| type DB_TYPES = { | ||
| [nativeDataType: string]: { | ||
| castAs?: string | null; | ||
| normalizedType: NormalizedDataType; | ||
| }; | ||
| }; | ||
| export declare const NATIVE_DATA_TYPES_DATABASE: { | ||
| [client: string]: DB_TYPES; | ||
| }; | ||
| export {}; |
| "use strict"; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.NATIVE_DATA_TYPES_DATABASE = void 0; | ||
| const postgres_1 = __importDefault(require("./nativeDataTypeDatabase/postgres")); | ||
| exports.NATIVE_DATA_TYPES_DATABASE = { | ||
@@ -204,95 +208,3 @@ microsoftSQLServer: { | ||
| }, | ||
| postgres: { | ||
| JSONB: { | ||
| normalizedType: "string", | ||
| }, | ||
| UUID: { | ||
| normalizedType: "string", | ||
| }, | ||
| DECIMAL: { | ||
| normalizedType: "number", | ||
| }, | ||
| NUMERIC: { | ||
| normalizedType: "number", | ||
| }, | ||
| INT: { | ||
| normalizedType: "number", | ||
| }, | ||
| INTEGER: { | ||
| normalizedType: "number", | ||
| }, | ||
| BIGINT: { | ||
| normalizedType: "number", | ||
| }, | ||
| SMALLINT: { | ||
| normalizedType: "number", | ||
| }, | ||
| DOUBLEPRECISION: { | ||
| normalizedType: "number", | ||
| castAs: "DOUBLE PRECISION", | ||
| }, | ||
| "DOUBLE PRECISION": { | ||
| normalizedType: "number", | ||
| }, | ||
| REAL: { | ||
| normalizedType: "number", | ||
| }, | ||
| FLOAT: { | ||
| normalizedType: "number", | ||
| }, | ||
| NUMBER: { | ||
| normalizedType: "number", | ||
| }, | ||
| BINARY: { | ||
| normalizedType: "string", | ||
| }, | ||
| VARBINARY: { | ||
| normalizedType: "string", | ||
| }, | ||
| CHAR: { | ||
| normalizedType: "string", | ||
| }, | ||
| CHARACTER: { | ||
| normalizedType: "string", | ||
| }, | ||
| "CHARACTER VARYING": { | ||
| normalizedType: "string", | ||
| }, | ||
| TEXT: { | ||
| normalizedType: "string", | ||
| }, | ||
| VARCHAR: { | ||
| normalizedType: "string", | ||
| }, | ||
| TIME: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| DATE: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| TIMESTAMP_LTZ: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| TIMESTAMP_NTZ: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| TIMESTAMP_TZ: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| TIMESTAMP: { | ||
| normalizedType: "date_time", | ||
| }, | ||
| BOOLEAN: { | ||
| normalizedType: "boolean", | ||
| }, | ||
| "TIMESTAMP WITH TIME ZONE": { | ||
| normalizedType: "date_time", | ||
| }, | ||
| "TIMESTAMP WITHOUT TIME ZONE": { | ||
| normalizedType: "date_time", | ||
| }, | ||
| ARRAY: { | ||
| normalizedType: "string[]", | ||
| }, | ||
| }, | ||
| postgres: postgres_1.default, | ||
| SQLite: { | ||
@@ -299,0 +211,0 @@ BOOLEAN: { |
+1
-1
| { | ||
| "name": "@vizzly/sqlbuilder-public", | ||
| "version": "0.1.22", | ||
| "version": "0.1.23", | ||
| "source": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
34444
5.87%24
9.09%1170
10.69%