@hemia/db-connector 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6290,4 +6290,4 @@ const pgTable = (name, columns, extraConfig) => {
|
|
|
6290
6290
|
return pgTableWithSchema(name, columns, extraConfig, void 0);
|
|
6291
6291
|
};
|
|
6292
6292
|
|
|
6293
|
-
export { ClickHouseConnector, CoreSqlTypes, DBConnector, DBError, DBNoSQLType, DBOLAPType, DBSQLType, DrizzlePostgresConnector, DrizzleSqlConnector, MySQLConnectionError, NoSQLConnector, OLAPConnector, SqlConnector, boolean, integer, json, jsonb, pgEnum, pgTable, serial, text, timestamp, varchar };
|
|
6293
|
+
export { ClickHouseConnector, CoreSqlTypes, DBConnector, DBError, DBNoSQLType, DBOLAPType, DBSQLType, DrizzlePostgresConnector, DrizzleSQLType, DrizzleSqlConnector, MySQLConnectionError, NoSQLConnector, OLAPConnector, SqlConnector, boolean, integer, json, jsonb, pgEnum, pgTable, serial, text, timestamp, varchar };
|
|
@@ -3264,15 +3264,15 @@ class DrizzlePostgresConnector extends DrizzleSqlConnector {
|
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
3266
|
|
|
3267
|
-
|
|
3267
|
+
exports.DrizzleSQLType = void 0;
|
|
3268
3268
|
(function (DrizzleSQLType) {
|
|
3269
3269
|
DrizzleSQLType["PostgreSQL"] = "postgresql";
|
|
3270
|
-
})(DrizzleSQLType || (DrizzleSQLType = {}));
|
|
3270
|
+
})(exports.DrizzleSQLType || (exports.DrizzleSQLType = {}));
|
|
3271
3271
|
|
|
3272
3272
|
class DrizzleConnectionManager {
|
|
3273
3273
|
static getInstance(type, credentials) {
|
|
3274
3274
|
switch (type) {
|
|
3275
|
-
case DrizzleSQLType.PostgreSQL:
|
|
3275
|
+
case exports.DrizzleSQLType.PostgreSQL:
|
|
3276
3276
|
return new DrizzlePostgresConnector(credentials);
|
|
3277
3277
|
default:
|
|
3278
3278
|
throw new Error(`Tipo de base de datos no soportado: ${type}`);
|
|
@@ -3831,7 +3831,7 @@ class DBConnector {
|
|
|
3831
3831
|
else if (Object.values(exports.DBOLAPType).includes(type)) {
|
|
3832
3832
|
this.connection = new ClickHouseConnector(credentials);
|
|
3833
3833
|
}
|
|
3834
|
-
else if (Object.values(DrizzleSQLType).includes(type)) {
|
|
3834
|
+
else if (Object.values(exports.DrizzleSQLType).includes(type)) {
|
|
3835
3835
|
this.connection = DrizzleConnectionManager.getInstance(type, credentials);
|
|
3836
3836
|
}
|
|
3837
3837
|
else {
|
|
@@ -3867,7 +3867,7 @@ class DBConnector {
|
|
|
3867
3867
|
else if (Object.values(exports.DBOLAPType).includes(type)) {
|
|
3868
3868
|
this.connection = new ClickHouseConnector(credentials);
|
|
3869
3869
|
}
|
|
3870
|
-
else if (Object.values(DrizzleSQLType).includes(type)) {
|
|
3870
|
+
else if (Object.values(exports.DrizzleSQLType).includes(type)) {
|
|
3871
3871
|
this.connection = DrizzleConnectionManager.getInstance(type, credentials);
|
|
3872
3872
|
}
|
|
3873
3873
|
else {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { DBOLAPType } from "./types/OLAPTypes";
|
|
|
8
8
|
export { NoSQLConnector } from "./abstract/NoSQLConnector";
|
|
9
9
|
export { SqlConnector, Filter } from "./abstract/SQLConnector";
|
|
10
10
|
export { NoSQLOptions } from "./types/NoSQLOptions";
|
|
11
|
+
export { DrizzleSQLType } from "./types/DrizzleSQLType";
|
|
11
12
|
export { DrizzleSqlConnector, DrizzleSelectOptions, DrizzleInsertOptions, DrizzleUpdateOptions, DrizzleDeleteOptions, DrizzleQueryOptions, DrizzleTransaction } from "./abstract/DrizzleSQLConnector";
|
|
12
13
|
export * from 'mongoose';
|
|
13
14
|
export { Model as ModelSequelize, Sequelize, DataTypes, CreateOptions, UpdateOptions, DestroyOptions, FindOptions, Attributes, WhereOptions, QueryOptions, InferAttributes, CreationAttributes, InferCreationAttributes, QueryTypes, QueryOptionsWithType, Transaction, Op, fn } from "sequelize";
|