@rsdk/db.knex 4.0.0-next.1 → 4.0.0-next.2
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.
- package/CHANGELOG.md +4 -0
- package/dist/knex.module.js +2 -1
- package/dist/knex.module.js.map +1 -1
- package/dist/providers/knex-logger.adapter.js +2 -1
- package/dist/providers/knex-logger.adapter.js.map +1 -1
- package/dist/providers/knex.config.js +2 -1
- package/dist/providers/knex.config.js.map +1 -1
- package/dist/providers/knex.factory.js +3 -2
- package/dist/providers/knex.factory.js.map +1 -1
- package/dist/providers/knex.indicator.js +2 -1
- package/dist/providers/knex.indicator.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.0-next.2](https://github.com/R-Vision/rsdk/compare/v4.0.0-next.1...v4.0.0-next.2) (2023-11-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rsdk/db.knex
|
|
9
|
+
|
|
6
10
|
## [4.0.0-next.1](https://github.com/R-Vision/rsdk/compare/v4.0.0-next.0...v4.0.0-next.1) (2023-11-10)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @rsdk/db.knex
|
package/dist/knex.module.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.KnexModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const inject_knex_decorator_1 = require("./inject-knex.decorator");
|
|
13
13
|
const providers_1 = require("./providers");
|
|
14
|
-
let KnexModule =
|
|
14
|
+
let KnexModule = KnexModule_1 = class KnexModule {
|
|
15
15
|
static forRoot(options) {
|
|
16
16
|
const instanceProvider = {
|
|
17
17
|
inject: [providers_1.KnexFactory],
|
|
@@ -26,6 +26,7 @@ let KnexModule = exports.KnexModule = KnexModule_1 = class KnexModule {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
+
exports.KnexModule = KnexModule;
|
|
29
30
|
exports.KnexModule = KnexModule = KnexModule_1 = __decorate([
|
|
30
31
|
(0, common_1.Module)({})
|
|
31
32
|
], KnexModule);
|
package/dist/knex.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex.module.js","sourceRoot":"","sources":["../src/knex.module.ts"],"names":[],"mappings":";;;;;;;;;;AACA,2CAAwC;AAGxC,mEAA+D;AAC/D,2CAAyD;AAIlD,IAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"knex.module.js","sourceRoot":"","sources":["../src/knex.module.ts"],"names":[],"mappings":";;;;;;;;;;AACA,2CAAwC;AAGxC,mEAA+D;AAC/D,2CAAyD;AAIlD,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB,MAAM,CAAC,OAAO,CAAC,OAA0B;QACvC,MAAM,gBAAgB,GAAoB;YACxC,MAAM,EAAE,CAAC,uBAAW,CAAC;YACrB,OAAO,EAAE,4CAAoB;YAC7B,UAAU,EAAE,KAAK,EAAE,OAAoB,EAAiB,EAAE,CACxD,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;SACvC,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,SAAS,EAAE,CAAC,yBAAa,EAAE,uBAAW,EAAE,gBAAgB,CAAC;YACzD,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,MAAM,EAAE,IAAI;SACb,CAAC;IACJ,CAAC;CACF,CAAA;AAhBY,gCAAU;qBAAV,UAAU;IADtB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAgBtB"}
|
|
@@ -14,7 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.KnexLoggerAdapter = void 0;
|
|
16
16
|
const core_1 = require("@rsdk/core");
|
|
17
|
-
let KnexLoggerAdapter =
|
|
17
|
+
let KnexLoggerAdapter = class KnexLoggerAdapter {
|
|
18
18
|
platformLogger;
|
|
19
19
|
constructor(platformLogger) {
|
|
20
20
|
this.platformLogger = platformLogger;
|
|
@@ -38,6 +38,7 @@ let KnexLoggerAdapter = exports.KnexLoggerAdapter = class KnexLoggerAdapter {
|
|
|
38
38
|
this.platformLogger.warn(`deprecate: ${method}, use: ${alternative}`);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
+
exports.KnexLoggerAdapter = KnexLoggerAdapter;
|
|
41
42
|
exports.KnexLoggerAdapter = KnexLoggerAdapter = __decorate([
|
|
42
43
|
__param(0, (0, core_1.InjectLogger)(KnexLoggerAdapter)),
|
|
43
44
|
__metadata("design:paramtypes", [Object])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex-logger.adapter.js","sourceRoot":"","sources":["../../src/providers/knex-logger.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAA0C;AAI1C,IAAa,iBAAiB
|
|
1
|
+
{"version":3,"file":"knex-logger.adapter.js","sourceRoot":"","sources":["../../src/providers/knex-logger.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAA0C;AAI1C,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAEwB;IADpD,YACoD,cAAuB;QAAvB,mBAAc,GAAd,cAAc,CAAS;QAEzE,4GAA4G;QAC5G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI,CAAC,OAAY;QACf,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,OAAY;QAChB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,OAAY;QAChB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,SAAS,CAAC,MAAc,EAAE,WAAmB;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,cAAc,MAAM,UAAU,WAAW,EAAE,CAAC,CAAC;IACxE,CAAC;CACF,CAAA;AA3BY,8CAAiB;4BAAjB,iBAAiB;IAEzB,WAAA,IAAA,mBAAY,EAAC,iBAAiB,CAAC,CAAA;;GAFvB,iBAAiB,CA2B7B"}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.KnexPluginConfig = void 0;
|
|
13
13
|
const common_1 = require("@rsdk/common");
|
|
14
14
|
const core_1 = require("@rsdk/core");
|
|
15
|
-
let KnexPluginConfig =
|
|
15
|
+
let KnexPluginConfig = class KnexPluginConfig extends core_1.Config {
|
|
16
16
|
url;
|
|
17
17
|
schema;
|
|
18
18
|
poolMin;
|
|
@@ -20,6 +20,7 @@ let KnexPluginConfig = exports.KnexPluginConfig = class KnexPluginConfig extends
|
|
|
20
20
|
reconnectAttempts;
|
|
21
21
|
reconnectInterval;
|
|
22
22
|
};
|
|
23
|
+
exports.KnexPluginConfig = KnexPluginConfig;
|
|
23
24
|
__decorate([
|
|
24
25
|
(0, core_1.Property)('DB_URL', new core_1.UrlParser(), {
|
|
25
26
|
description: 'database server url',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex.config.js","sourceRoot":"","sources":["../../src/providers/knex.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA8C;AAC9C,qCAQoB;AAGb,IAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"knex.config.js","sourceRoot":"","sources":["../../src/providers/knex.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA8C;AAC9C,qCAQoB;AAGb,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,aAAM;IAI1C,GAAG,CAAO;IASV,MAAM,CAAU;IAShB,OAAO,CAAU;IASjB,OAAO,CAAU;IAMjB,iBAAiB,CAAU;IAM3B,iBAAiB,CAAY;CAC9B,CAAA;AA5CY,4CAAgB;AAI3B;IAHC,IAAA,eAAQ,EAAC,QAAQ,EAAE,IAAI,gBAAS,EAAE,EAAE;QACnC,WAAW,EAAE,qBAAqB;KACnC,CAAC;8BACI,GAAG;6CAAC;AASV;IAPC,IAAA,eAAQ,EAAC,WAAW,EAAE,IAAI,mBAAY,EAAE,EAAE;QACzC,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;QACD,YAAY,EAAE,EAAE;KACjB,CAAC;;gDACc;AAShB;IAPC,IAAA,eAAQ,EAAC,aAAa,EAAE,IAAI,gBAAS,EAAE,EAAE;QACxC,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;KACF,CAAC;;iDACe;AASjB;IAPC,IAAA,eAAQ,EAAC,aAAa,EAAE,IAAI,gBAAS,EAAE,EAAE;QACxC,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;KACF,CAAC;;iDACe;AAMjB;IAJC,IAAA,eAAQ,EAAC,uBAAuB,EAAE,IAAI,gBAAS,EAAE,EAAE;QAClD,YAAY,EAAE,MAAM,CAAC,iBAAiB;QACtC,WAAW,EAAE,oCAAoC;KAClD,CAAC;;2DACyB;AAM3B;IAJC,IAAA,eAAQ,EAAC,uBAAuB,EAAE,IAAI,qBAAc,EAAE,EAAE;QACvD,YAAY,EAAE,IAAI,iBAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;QAClC,WAAW,EAAE,uBAAuB;KACrC,CAAC;8BACkB,iBAAQ;2DAAC;2BA3ClB,gBAAgB;IAD5B,IAAA,oBAAa,GAAE;GACH,gBAAgB,CA4C5B"}
|
|
@@ -20,7 +20,7 @@ const knex_1 = require("knex");
|
|
|
20
20
|
const promises_1 = require("node:timers/promises");
|
|
21
21
|
const knex_config_1 = require("./knex.config");
|
|
22
22
|
const knex_logger_adapter_1 = require("./knex-logger.adapter");
|
|
23
|
-
let KnexFactory =
|
|
23
|
+
let KnexFactory = class KnexFactory {
|
|
24
24
|
static { KnexFactory_1 = this; }
|
|
25
25
|
appName;
|
|
26
26
|
logger;
|
|
@@ -87,10 +87,11 @@ let KnexFactory = exports.KnexFactory = class KnexFactory {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
+
exports.KnexFactory = KnexFactory;
|
|
90
91
|
exports.KnexFactory = KnexFactory = KnexFactory_1 = __decorate([
|
|
91
92
|
(0, common_1.Injectable)(),
|
|
92
93
|
__param(0, (0, core_1.AppName)()),
|
|
93
|
-
__param(1, (0, core_1.InjectLogger)(
|
|
94
|
+
__param(1, (0, core_1.InjectLogger)(KnexFactory)),
|
|
94
95
|
__metadata("design:paramtypes", [String, Object, knex_config_1.KnexPluginConfig])
|
|
95
96
|
], KnexFactory);
|
|
96
97
|
//# sourceMappingURL=knex.factory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex.factory.js","sourceRoot":"","sources":["../../src/providers/knex.factory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,2CAA4C;AAC5C,qCAAmD;AAGnD,+BAA4B;AAC5B,mDAAkD;AAElD,+CAAiD;AACjD,+DAA0D;AAGnD,IAAM,WAAW,
|
|
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E,IAAI,CAAC,MAAM,CAAC,OAAO;gBACxB,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO;aACzB;SACF,CAAC,CAAC;QAEH;;;;;;;;;;;WAWG;QAEH,IAAI,OAAO,GAAG,CAAC,CAAC;QAEhB,OAAO,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE;YAC9C,IAAI;gBACF,MAAM,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;gBACnC,MAAM;aACP;YAAC,OAAO,KAAK,EAAE;gBACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,OAAO,EAAE,kBAAkB,EAAE,KAAc,CAAC,CAAC;gBACvE,MAAM,IAAA,qBAAU,EAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC,CAAC;aAC1D;SACF;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,qBAAqB;QAChC,IAAI,aAAW,CAAC,QAAQ,EAAE;YACxB,MAAM,aAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;SACtC;IACH,CAAC;;AArEU,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,cAAO,GAAE,CAAA;IACT,WAAA,IAAA,mBAAY,EAAC,WAAW,CAAC,CAAA;qDACD,8BAAgB;GANhC,WAAW,CAsEvB"}
|
|
@@ -17,7 +17,7 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const core_1 = require("@rsdk/core");
|
|
18
18
|
const knex_1 = require("knex");
|
|
19
19
|
const inject_knex_decorator_1 = require("../inject-knex.decorator");
|
|
20
|
-
let KnexIndicator =
|
|
20
|
+
let KnexIndicator = class KnexIndicator {
|
|
21
21
|
knex;
|
|
22
22
|
constructor(knex) {
|
|
23
23
|
this.knex = knex;
|
|
@@ -32,6 +32,7 @@ let KnexIndicator = exports.KnexIndicator = class KnexIndicator {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
+
exports.KnexIndicator = KnexIndicator;
|
|
35
36
|
exports.KnexIndicator = KnexIndicator = __decorate([
|
|
36
37
|
(0, common_1.Injectable)(),
|
|
37
38
|
(0, core_1.Indicator)('knex'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex.indicator.js","sourceRoot":"","sources":["../../src/providers/knex.indicator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,qCAAoD;AACpD,+BAA4B;AAE5B,oEAAsD;AAI/C,IAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"knex.indicator.js","sourceRoot":"","sources":["../../src/providers/knex.indicator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,qCAAoD;AACpD,+BAA4B;AAE5B,oEAAsD;AAI/C,IAAM,aAAa,GAAnB,MAAM,aAAa;IACmB;IAA3C,YAA2C,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;IAAG,CAAC;IAElD,KAAK,CAAC,KAAK;QAChB,IAAI;YACF,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YAEhC,OAAO,kBAAW,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;SAC3B;QAAC,OAAO,KAAc,EAAE;YACvB,OAAO,kBAAW,CAAC,IAAI,CAAC,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC,CAAC;SAC9D;IACH,CAAC;CACF,CAAA;AAZY,sCAAa;wBAAb,aAAa;IAFzB,IAAA,mBAAU,GAAE;IACZ,IAAA,gBAAS,EAAC,MAAM,CAAC;IAEH,WAAA,IAAA,kCAAU,GAAE,CAAA;;GADd,aAAa,CAYzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/db.knex",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.2",
|
|
4
4
|
"description": "Knex integration for platform",
|
|
5
5
|
"license": "Apache License 2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@nestjs/common": "^10.1.3",
|
|
18
18
|
"@nestjs/core": "^10.1.3",
|
|
19
|
-
"@rsdk/common": "^
|
|
20
|
-
"@rsdk/core": "^4.0.0-next.
|
|
21
|
-
"@rsdk/db": "^4.0.0-next.
|
|
22
|
-
"@rsdk/logging": "^4.0.0-next.
|
|
19
|
+
"@rsdk/common": "^4.0.0-next.2",
|
|
20
|
+
"@rsdk/core": "^4.0.0-next.2",
|
|
21
|
+
"@rsdk/db": "^4.0.0-next.2",
|
|
22
|
+
"@rsdk/logging": "^4.0.0-next.2",
|
|
23
23
|
"knex": "^2.4.2"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "442be21d7300bdf6f3596a6fc3d9c2cd0a5e8ef3"
|
|
26
26
|
}
|