@things-factory/integration-base 7.0.1-beta.8 → 7.0.1-beta.9

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.
@@ -11,13 +11,13 @@
11
11
  MSSqlエンジンのホスト名とサービスポート
12
12
 
13
13
  - ホスト名:データベースサーバーホスト
14
- - サービスポート:データベースサービスポート(デフォルト - 5432
14
+ - サービスポート:データベースサービスポート(デフォルト - 1433
15
15
  - フォーマット
16
16
  - {ホスト名}[:{ポート}]
17
17
  - 例
18
- - "localhost:5432"
18
+ - "localhost:1433"
19
19
  - "localhost"
20
- - "192.168.0.1:5432"
20
+ - "192.168.0.1:1433"
21
21
 
22
22
  ## パラメーター
23
23
 
@@ -11,13 +11,13 @@
11
11
  mssql 엔진 호스트 이름과 서비스 포트
12
12
 
13
13
  - 호스트 이름 : 데이터베이스 서버 호스트
14
- - 서비스 포트 : 데이터베이스 서비스 포트 (기본값 - 5432)
14
+ - 서비스 포트 : 데이터베이스 서비스 포트 (기본값 - 1433)
15
15
  - 형식
16
16
  - {호스트 이름}[:{포트}]
17
17
  - 예시
18
- - "localhost:5432"
18
+ - "localhost:1433"
19
19
  - "localhost"
20
- - "192.168.0.1:5432"
20
+ - "192.168.0.1:1433"
21
21
 
22
22
  ## 매개변수
23
23
 
@@ -11,13 +11,13 @@
11
11
  MSSql engine hostname and service port
12
12
 
13
13
  - hostname : database server host
14
- - service port : database service port (default - 5432)
14
+ - service port : database service port (default - 1433)
15
15
  - format
16
16
  - {hostname}[:{port}]
17
17
  - eg.
18
- - "localhost:5432"
18
+ - "localhost:1433"
19
19
  - "localhost"
20
- - "192.168.0.1:5432"
20
+ - "192.168.0.1:1433"
21
21
 
22
22
  ## Parameters
23
23
 
@@ -11,13 +11,13 @@
11
11
  Nama hos dan port perkhidmatan enjin MSSql
12
12
 
13
13
  - nama hos : hos pelayan pangkalan data
14
- - port perkhidmatan : port perkhidmatan pangkalan data (lalai - 5432)
14
+ - port perkhidmatan : port perkhidmatan pangkalan data (lalai - 1433)
15
15
  - format
16
16
  - {nama hos}[:{port}]
17
17
  - contoh
18
- - "localhost:5432"
18
+ - "localhost:1433"
19
19
  - "localhost"
20
- - "192.168.0.1:5432"
20
+ - "192.168.0.1:1433"
21
21
 
22
22
  ## Parameter
23
23
 
@@ -11,13 +11,13 @@
11
11
  MSSql引擎主机名和服务端口
12
12
 
13
13
  - 主机名:数据库服务器主机
14
- - 服务端口:数据库服务端口(默认 - 5432
14
+ - 服务端口:数据库服务端口(默认 - 1433
15
15
  - 格式
16
16
  - {主机名}[:{端口}]
17
17
  - 例如
18
- - "localhost:5432"
18
+ - "localhost:1433"
19
19
  - "localhost"
20
- - "192.168.0.1:5432"
20
+ - "192.168.0.1:1433"
21
21
 
22
22
  ## 参数
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-base",
3
- "version": "7.0.1-beta.8",
3
+ "version": "7.0.1-beta.9",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -27,11 +27,11 @@
27
27
  "dependencies": {
28
28
  "@apollo/client": "^3.6.9",
29
29
  "@operato/moment-timezone-es": "^2.0.0-beta.0",
30
- "@things-factory/api": "^7.0.1-beta.8",
31
- "@things-factory/auth-base": "^7.0.1-beta.8",
30
+ "@things-factory/api": "^7.0.1-beta.9",
31
+ "@things-factory/auth-base": "^7.0.1-beta.9",
32
32
  "@things-factory/env": "^7.0.1-beta.6",
33
- "@things-factory/oauth2-client": "^7.0.1-beta.8",
34
- "@things-factory/scheduler-client": "^7.0.1-beta.8",
33
+ "@things-factory/oauth2-client": "^7.0.1-beta.9",
34
+ "@things-factory/scheduler-client": "^7.0.1-beta.9",
35
35
  "@things-factory/shell": "^7.0.1-beta.8",
36
36
  "@things-factory/utils": "^7.0.1-beta.6",
37
37
  "async-mqtt": "^2.5.0",
@@ -43,5 +43,5 @@
43
43
  "readline": "^1.3.0",
44
44
  "vm2": "^3.9.11"
45
45
  },
46
- "gitHead": "d2ca60f7fca6feb2b7cb86b4f825378573fcc335"
46
+ "gitHead": "b2fb4923e2763b4d831f934905dd6ae0019446a4"
47
47
  }
@@ -20,7 +20,7 @@ export class MssqlConnector implements Connector {
20
20
  async connect(connection: InputConnection) {
21
21
  const {
22
22
  endpoint,
23
- params: { user, password, database, encrypt = 'Y' }
23
+ params: { user, password, database, encrypt = 'Y', trustServerCertificate }
24
24
  } = connection
25
25
 
26
26
  const [host, port = 1433] = endpoint.split(':')
@@ -33,9 +33,17 @@ export class MssqlConnector implements Connector {
33
33
  // client is pool
34
34
  user,
35
35
  password,
36
- server: `${host}`,
37
- database: `${database}`,
38
- encrypt: `${encrypt === 'Y'}`
36
+ server: host,
37
+ database,
38
+ pool: {
39
+ max: 10,
40
+ min: 0,
41
+ idleTimeoutMillis: 30000
42
+ },
43
+ options: {
44
+ encrypt: encrypt === 'Y',
45
+ trustServerCertificate: trustServerCertificate === 'Y'
46
+ }
39
47
  })
40
48
 
41
49
  ConnectionManager.addConnectionInstance(connection, {
@@ -88,6 +96,14 @@ export class MssqlConnector implements Connector {
88
96
  property: {
89
97
  options: ['Y', 'N']
90
98
  }
99
+ },
100
+ {
101
+ type: 'select',
102
+ name: 'trustServerCertificate',
103
+ label: 'trust-server-certificate',
104
+ property: {
105
+ options: ['Y', 'N']
106
+ }
91
107
  }
92
108
  ]
93
109
  }
@@ -6,5 +6,6 @@
6
6
  "error.timezone is not set": "timezone should be set for the scenario '{scenario}' in order to register as a schedule",
7
7
  "error.scenario instance not found": "scenario instance '{instance}' not found.",
8
8
  "label.auth-key": "authentication key",
9
- "label.subscription-handlers": "subscription handlers"
9
+ "label.subscription-handlers": "subscription handlers",
10
+ "label.trust-server-certificate": "trust server certificate"
10
11
  }
@@ -6,5 +6,6 @@
6
6
  "error.timezone is not set": "スケジュールとして登録するためにはシナリオ'{scenario}'にタイム ゾーン情報が設定される必要があります.",
7
7
  "error.scenario instance not found": "シナリオ インスタンス'{instance}'が見つかりません. 既に終了している可能性があります.",
8
8
  "label.auth-key": "認証キー",
9
- "label.subscription-handlers": "サブスクリプションハンドラー"
9
+ "label.subscription-handlers": "サブスクリプションハンドラー",
10
+ "label.trust-server-certificate": "サーバー証明書を信頼する"
10
11
  }
@@ -6,5 +6,6 @@
6
6
  "error.timezone is not set": "스케쥴로 등록하기 위해서는 시나리오 '{scenario}'에 타임존 정보가 설정되어야 합니다.",
7
7
  "error.scenario instance not found": "시나리오 인스턴스 '{instance}'를 찾을 수 없습니다. 이미 종료되었을 수 있습니다.",
8
8
  "label.auth-key": "인증 키",
9
- "label.subscription-handlers": "구독 핸들러"
9
+ "label.subscription-handlers": "구독 핸들러",
10
+ "label.trust-server-certificate": "서버 인증서 신뢰"
10
11
  }
@@ -6,5 +6,6 @@
6
6
  "error.timezone is not set": "Untuk mendaftarkan sebagai jadual, maklumat zon masa mesti diset dalam senario '{scenario}'.",
7
7
  "error.scenario instance not found": "Tidak dapat mencari instans senario '{instance}'. Mungkin telah berakhir.",
8
8
  "label.auth-key": "Kunci pengesahan",
9
- "label.subscription-handlers": "pengendali langganan"
9
+ "label.subscription-handlers": "pengendali langganan",
10
+ "label.trust-server-certificate": "percaya sijil pelayan"
10
11
  }
@@ -6,5 +6,6 @@
6
6
  "error.timezone is not set": "要注册为计划,场景 '{scenario}' 需要设置时区信息。",
7
7
  "error.scenario instance not found": "无法找到场景实例 '{instance}'。它可能已经结束。",
8
8
  "label.auth-key": "认证密钥",
9
- "label.subscription-handlers": "订阅处理程序"
9
+ "label.subscription-handlers": "订阅处理程序",
10
+ "label.trust-server-certificate": "信任服务器证书"
10
11
  }