@rsdk/db.typeorm 3.6.0-next.2 → 3.6.0-next.5

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,19 @@
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.5](https://github.com/R-Vision/rsdk/compare/v3.6.0-next.4...v3.6.0-next.5) (2023-10-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ * correctly work with prefix ([db434fa](https://github.com/R-Vision/rsdk/commit/db434fafefb6907c6d9447dc0552a1864d050c27))
11
+ * correctly work with prefix ([7dd633b](https://github.com/R-Vision/rsdk/commit/7dd633bb8ab50e5700ab97c510318984f84eabde))
12
+
13
+ ## [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)
14
+
15
+ ### Bug Fixes
16
+
17
+ * correctly work with prefix ([b317186](https://github.com/R-Vision/rsdk/commit/b3171865223793335c10477b7c697a3bb48de997))
18
+
6
19
  ## [3.6.0-next.2](https://github.com/R-Vision/rsdk/compare/v3.6.0-next.1...v3.6.0-next.2) (2023-10-10)
7
20
 
8
21
  **Note:** Version bump only for package @rsdk/db.typeorm
@@ -21,13 +21,13 @@ let TypeOrmPluginConfig = exports.TypeOrmPluginConfig = class TypeOrmPluginConfi
21
21
  reconnectInterval;
22
22
  };
23
23
  __decorate([
24
- (0, core_1.Property)('DB_URL', new core_1.UrlParser(), {
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)('DB_SCHEMA', new core_1.StringParser(), {
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)('DB_POOL_MIN', new core_1.IntParser(), {
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)('DB_POOL_MAX', new core_1.IntParser(), {
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)('DB_RECONNECT_ATTEMPTS', new core_1.IntParser(), {
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)('DB_RECONNECT_INTERVAL', new core_1.TimespanParser(), {
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
  }),
@@ -74,6 +74,7 @@ exports.TypeOrmPluginConfig = TypeOrmPluginConfig = __decorate([
74
74
  (0, core_1.ConfigSection)({
75
75
  name: 'typeorm database config',
76
76
  tags: [core_1.ConfigTag.infrastructure, core_1.ConfigTag.storage],
77
+ prefix: 'DB',
77
78
  })
78
79
  ], TypeOrmPluginConfig);
79
80
  //# sourceMappingURL=typeorm.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeorm.config.js","sourceRoot":"","sources":["../../src/providers/typeorm.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA8C;AAC9C,qCASoB;AAMb,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,QAAQ,EAAE,IAAI,gBAAS,EAAE,EAAE;QACnC,WAAW,EAAE,qBAAqB;KACnC,CAAC;8BACI,GAAG;gDAAC;AASV;IAPC,IAAA,eAAQ,EAAC,WAAW,EAAE,IAAI,mBAAY,EAAE,EAAE;QACzC,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;QACD,YAAY,EAAE,SAAS;KACxB,CAAC;;mDACc;AAShB;IAPC,IAAA,eAAQ,EAAC,aAAa,EAAE,IAAI,gBAAS,EAAE,EAAE;QACxC,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;KACF,CAAC;;oDACe;AASjB;IAPC,IAAA,eAAQ,EAAC,aAAa,EAAE,IAAI,gBAAS,EAAE,EAAE;QACxC,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,IAAA,aAAI,EAAA;;;KAGhB;KACF,CAAC;;oDACe;AAMjB;IAJC,IAAA,eAAQ,EAAC,uBAAuB,EAAE,IAAI,gBAAS,EAAE,EAAE;QAClD,YAAY,EAAE,MAAM,CAAC,iBAAiB;QACtC,WAAW,EAAE,oCAAoC;KAClD,CAAC;;8DACyB;AAM3B;IAJC,IAAA,eAAQ,EAAC,uBAAuB,EAAE,IAAI,qBAAc,EAAE,EAAE;QACvD,YA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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.2",
3
+ "version": "3.6.0-next.5",
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.2",
23
- "@rsdk/db": "^3.6.0-next.2",
22
+ "@rsdk/core": "^3.6.0-next.5",
23
+ "@rsdk/db": "^3.6.0-next.5",
24
24
  "@rsdk/logging": "^3.5.0",
25
25
  "@rsdk/nest-tools": "^3.6.0-next.0",
26
26
  "typeorm": "^0.3.12"
27
27
  },
28
- "gitHead": "9852255e942109015c5e47acaf73ae3c00c703cd"
28
+ "gitHead": "04ad2bdeeda1c8d30f93b6b921c4dab56e0dde15"
29
29
  }
@@ -13,14 +13,15 @@ import {
13
13
  @ConfigSection({
14
14
  name: 'typeorm database config',
15
15
  tags: [ConfigTag.infrastructure, ConfigTag.storage],
16
+ prefix: 'DB',
16
17
  })
17
18
  export class TypeOrmPluginConfig extends Config {
18
- @Property('DB_URL', new UrlParser(), {
19
+ @Property('URL', new UrlParser(), {
19
20
  description: 'Database server url',
20
21
  })
21
22
  url!: URL;
22
23
 
23
- @Property('DB_SCHEMA', new StringParser(), {
24
+ @Property('SCHEMA', new StringParser(), {
24
25
  description: text`
25
26
  Use schema for all entities.
26
27
  **Only for postgres at the moment!**
@@ -29,7 +30,7 @@ export class TypeOrmPluginConfig extends Config {
29
30
  })
30
31
  schema!: string;
31
32
 
32
- @Property('DB_POOL_MIN', new IntParser(), {
33
+ @Property('POOL_MIN', new IntParser(), {
33
34
  defaultValue: 1,
34
35
  description: text`
35
36
  Minimum connection pool size.
@@ -38,7 +39,7 @@ export class TypeOrmPluginConfig extends Config {
38
39
  })
39
40
  poolMin!: number;
40
41
 
41
- @Property('DB_POOL_MAX', new IntParser(), {
42
+ @Property('POOL_MAX', new IntParser(), {
42
43
  defaultValue: 10,
43
44
  description: text`
44
45
  Maximum connection pool size.
@@ -47,13 +48,13 @@ export class TypeOrmPluginConfig extends Config {
47
48
  })
48
49
  poolMax!: number;
49
50
 
50
- @Property('DB_RECONNECT_ATTEMPTS', new IntParser(), {
51
+ @Property('RECONNECT_ATTEMPTS', new IntParser(), {
51
52
  defaultValue: Number.POSITIVE_INFINITY,
52
53
  description: 'Retry attempt count before give up',
53
54
  })
54
55
  reconnectAttempts!: number;
55
56
 
56
- @Property('DB_RECONNECT_INTERVAL', new TimespanParser(), {
57
+ @Property('RECONNECT_INTERVAL', new TimespanParser(), {
57
58
  defaultValue: new Timespan(1, 's'),
58
59
  description: 'Delay between retries',
59
60
  })