@rsdk/db.typeorm 3.6.0-next.4 → 3.6.0-next.6
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
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## [3.6.0-next.6](https://github.com/R-Vision/rsdk/compare/v3.6.0-next.5...v3.6.0-next.6) (2023-10-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rsdk/db.typeorm
|
|
9
|
+
|
|
10
|
+
## [3.6.0-next.5](https://github.com/R-Vision/rsdk/compare/v3.6.0-next.4...v3.6.0-next.5) (2023-10-19)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* correctly work with prefix ([db434fa](https://github.com/R-Vision/rsdk/commit/db434fafefb6907c6d9447dc0552a1864d050c27))
|
|
15
|
+
* correctly work with prefix ([7dd633b](https://github.com/R-Vision/rsdk/commit/7dd633bb8ab50e5700ab97c510318984f84eabde))
|
|
16
|
+
|
|
6
17
|
## [3.6.0-next.4](https://github.com/R-Vision/rsdk/compare/v3.6.0-next.3...v3.6.0-next.4) (2023-10-19)
|
|
7
18
|
|
|
8
19
|
### Bug Fixes
|
|
@@ -21,13 +21,13 @@ let TypeOrmPluginConfig = exports.TypeOrmPluginConfig = class TypeOrmPluginConfi
|
|
|
21
21
|
reconnectInterval;
|
|
22
22
|
};
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, core_1.Property)('
|
|
24
|
+
(0, core_1.Property)('URL', new core_1.UrlParser(), {
|
|
25
25
|
description: 'Database server url',
|
|
26
26
|
}),
|
|
27
27
|
__metadata("design:type", URL)
|
|
28
28
|
], TypeOrmPluginConfig.prototype, "url", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0, core_1.Property)('
|
|
30
|
+
(0, core_1.Property)('SCHEMA', new core_1.StringParser(), {
|
|
31
31
|
description: (0, common_1.text) `
|
|
32
32
|
Use schema for all entities.
|
|
33
33
|
**Only for postgres at the moment!**
|
|
@@ -37,7 +37,7 @@ __decorate([
|
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], TypeOrmPluginConfig.prototype, "schema", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, core_1.Property)('
|
|
40
|
+
(0, core_1.Property)('POOL_MIN', new core_1.IntParser(), {
|
|
41
41
|
defaultValue: 1,
|
|
42
42
|
description: (0, common_1.text) `
|
|
43
43
|
Minimum connection pool size.
|
|
@@ -47,7 +47,7 @@ __decorate([
|
|
|
47
47
|
__metadata("design:type", Number)
|
|
48
48
|
], TypeOrmPluginConfig.prototype, "poolMin", void 0);
|
|
49
49
|
__decorate([
|
|
50
|
-
(0, core_1.Property)('
|
|
50
|
+
(0, core_1.Property)('POOL_MAX', new core_1.IntParser(), {
|
|
51
51
|
defaultValue: 10,
|
|
52
52
|
description: (0, common_1.text) `
|
|
53
53
|
Maximum connection pool size.
|
|
@@ -57,14 +57,14 @@ __decorate([
|
|
|
57
57
|
__metadata("design:type", Number)
|
|
58
58
|
], TypeOrmPluginConfig.prototype, "poolMax", void 0);
|
|
59
59
|
__decorate([
|
|
60
|
-
(0, core_1.Property)('
|
|
60
|
+
(0, core_1.Property)('RECONNECT_ATTEMPTS', new core_1.IntParser(), {
|
|
61
61
|
defaultValue: Number.POSITIVE_INFINITY,
|
|
62
62
|
description: 'Retry attempt count before give up',
|
|
63
63
|
}),
|
|
64
64
|
__metadata("design:type", Number)
|
|
65
65
|
], TypeOrmPluginConfig.prototype, "reconnectAttempts", void 0);
|
|
66
66
|
__decorate([
|
|
67
|
-
(0, core_1.Property)('
|
|
67
|
+
(0, core_1.Property)('RECONNECT_INTERVAL', new core_1.TimespanParser(), {
|
|
68
68
|
defaultValue: new common_1.Timespan(1, 's'),
|
|
69
69
|
description: 'Delay between retries',
|
|
70
70
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeorm.config.js","sourceRoot":"","sources":["../../src/providers/typeorm.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA8C;AAC9C,qCASoB;AAOb,IAAM,mBAAmB,iCAAzB,MAAM,mBAAoB,SAAQ,aAAM;IAI7C,GAAG,CAAO;IASV,MAAM,CAAU;IAShB,OAAO,CAAU;IASjB,OAAO,CAAU;IAMjB,iBAAiB,CAAU;IAM3B,iBAAiB,CAAY;CAC9B,CAAA;AAxCC;IAHC,IAAA,eAAQ,EAAC,
|
|
1
|
+
{"version":3,"file":"typeorm.config.js","sourceRoot":"","sources":["../../src/providers/typeorm.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA8C;AAC9C,qCASoB;AAOb,IAAM,mBAAmB,iCAAzB,MAAM,mBAAoB,SAAQ,aAAM;IAI7C,GAAG,CAAO;IASV,MAAM,CAAU;IAShB,OAAO,CAAU;IASjB,OAAO,CAAU;IAMjB,iBAAiB,CAAU;IAM3B,iBAAiB,CAAY;CAC9B,CAAA;AAxCC;IAHC,IAAA,eAAQ,EAAC,KAAK,EAAE,IAAI,gBAAS,EAAE,EAAE;QAChC,WAAW,EAAE,qBAAqB;KACnC,CAAC;8BACI,GAAG;gDAAC;AASV;IAPC,IAAA,eAAQ,EAAC,QAAQ,EAAE,IAAI,mBAAY,EAAE,EAAE;QACtC,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;QACD,YAAY,EAAE,SAAS;KACxB,CAAC;;mDACc;AAShB;IAPC,IAAA,eAAQ,EAAC,UAAU,EAAE,IAAI,gBAAS,EAAE,EAAE;QACrC,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;KACF,CAAC;;oDACe;AASjB;IAPC,IAAA,eAAQ,EAAC,UAAU,EAAE,IAAI,gBAAS,EAAE,EAAE;QACrC,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;KACF,CAAC;;oDACe;AAMjB;IAJC,IAAA,eAAQ,EAAC,oBAAoB,EAAE,IAAI,gBAAS,EAAE,EAAE;QAC/C,YAAY,EAAE,MAAM,CAAC,iBAAiB;QACtC,WAAW,EAAE,oCAAoC;KAClD,CAAC;;8DACyB;AAM3B;IAJC,IAAA,eAAQ,EAAC,oBAAoB,EAAE,IAAI,qBAAc,EAAE,EAAE;QACpD,YAAY,EAAE,IAAI,iBAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;QAClC,WAAW,EAAE,uBAAuB;KACrC,CAAC;8BACkB,iBAAQ;8DAAC;8BA3ClB,mBAAmB;IAL/B,IAAA,oBAAa,EAAC;QACb,IAAI,EAAE,yBAAyB;QAC/B,IAAI,EAAE,CAAC,gBAAS,CAAC,cAAc,EAAE,gBAAS,CAAC,OAAO,CAAC;QACnD,MAAM,EAAE,IAAI;KACb,CAAC;GACW,mBAAmB,CA4C/B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/db.typeorm",
|
|
3
|
-
"version": "3.6.0-next.
|
|
3
|
+
"version": "3.6.0-next.6",
|
|
4
4
|
"description": "Typeorm module for platform",
|
|
5
5
|
"license": "Apache License 2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"@nestjs/typeorm": "^10.0.0",
|
|
20
20
|
"@rsdk/common": "^3.5.0",
|
|
21
21
|
"@rsdk/common.nestjs": "^3.5.0",
|
|
22
|
-
"@rsdk/core": "^3.6.0-next.
|
|
23
|
-
"@rsdk/db": "^3.6.0-next.
|
|
24
|
-
"@rsdk/logging": "^3.
|
|
22
|
+
"@rsdk/core": "^3.6.0-next.6",
|
|
23
|
+
"@rsdk/db": "^3.6.0-next.6",
|
|
24
|
+
"@rsdk/logging": "^3.6.0-next.6",
|
|
25
25
|
"@rsdk/nest-tools": "^3.6.0-next.0",
|
|
26
26
|
"typeorm": "^0.3.12"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "6ccbf8735047029cbb4e487e3c548917292700dd"
|
|
29
29
|
}
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
prefix: 'DB',
|
|
17
17
|
})
|
|
18
18
|
export class TypeOrmPluginConfig extends Config {
|
|
19
|
-
@Property('
|
|
19
|
+
@Property('URL', new UrlParser(), {
|
|
20
20
|
description: 'Database server url',
|
|
21
21
|
})
|
|
22
22
|
url!: URL;
|
|
23
23
|
|
|
24
|
-
@Property('
|
|
24
|
+
@Property('SCHEMA', new StringParser(), {
|
|
25
25
|
description: text`
|
|
26
26
|
Use schema for all entities.
|
|
27
27
|
**Only for postgres at the moment!**
|
|
@@ -30,7 +30,7 @@ export class TypeOrmPluginConfig extends Config {
|
|
|
30
30
|
})
|
|
31
31
|
schema!: string;
|
|
32
32
|
|
|
33
|
-
@Property('
|
|
33
|
+
@Property('POOL_MIN', new IntParser(), {
|
|
34
34
|
defaultValue: 1,
|
|
35
35
|
description: text`
|
|
36
36
|
Minimum connection pool size.
|
|
@@ -39,7 +39,7 @@ export class TypeOrmPluginConfig extends Config {
|
|
|
39
39
|
})
|
|
40
40
|
poolMin!: number;
|
|
41
41
|
|
|
42
|
-
@Property('
|
|
42
|
+
@Property('POOL_MAX', new IntParser(), {
|
|
43
43
|
defaultValue: 10,
|
|
44
44
|
description: text`
|
|
45
45
|
Maximum connection pool size.
|
|
@@ -48,13 +48,13 @@ export class TypeOrmPluginConfig extends Config {
|
|
|
48
48
|
})
|
|
49
49
|
poolMax!: number;
|
|
50
50
|
|
|
51
|
-
@Property('
|
|
51
|
+
@Property('RECONNECT_ATTEMPTS', new IntParser(), {
|
|
52
52
|
defaultValue: Number.POSITIVE_INFINITY,
|
|
53
53
|
description: 'Retry attempt count before give up',
|
|
54
54
|
})
|
|
55
55
|
reconnectAttempts!: number;
|
|
56
56
|
|
|
57
|
-
@Property('
|
|
57
|
+
@Property('RECONNECT_INTERVAL', new TimespanParser(), {
|
|
58
58
|
defaultValue: new Timespan(1, 's'),
|
|
59
59
|
description: 'Delay between retries',
|
|
60
60
|
})
|