@things-factory/integration-base 7.0.0-alpha.6 → 7.0.0-alpha.8

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.
Files changed (41) hide show
  1. package/dist-server/controllers/index.js +5 -0
  2. package/dist-server/controllers/index.js.map +1 -0
  3. package/dist-server/controllers/scenario-controller.js +87 -0
  4. package/dist-server/controllers/scenario-controller.js.map +1 -0
  5. package/dist-server/engine/connector/oracle-connector.js +113 -17
  6. package/dist-server/engine/connector/oracle-connector.js.map +1 -1
  7. package/dist-server/engine/task/oracle-procedure.js +1 -15
  8. package/dist-server/engine/task/oracle-procedure.js.map +1 -1
  9. package/dist-server/engine/task/utils/headless-pool-for-scenario.js +1 -1
  10. package/dist-server/engine/task/utils/headless-pool-for-scenario.js.map +1 -1
  11. package/dist-server/index.js +1 -0
  12. package/dist-server/index.js.map +1 -1
  13. package/dist-server/restful/unstable/run-scenario.js.map +1 -1
  14. package/dist-server/restful/unstable/start-scenario.js +1 -1
  15. package/dist-server/restful/unstable/start-scenario.js.map +1 -1
  16. package/dist-server/restful/unstable/stop-scenario.js +1 -1
  17. package/dist-server/restful/unstable/stop-scenario.js.map +1 -1
  18. package/dist-server/service/scenario-instance/scenario-instance-mutation.js +4 -71
  19. package/dist-server/service/scenario-instance/scenario-instance-mutation.js.map +1 -1
  20. package/dist-server/service/scenario-instance/scenario-instance-type.js +6 -1
  21. package/dist-server/service/scenario-instance/scenario-instance-type.js.map +1 -1
  22. package/dist-server/tsconfig.tsbuildinfo +1 -1
  23. package/helps/integration/connector/oracle-connector.ja.md +90 -0
  24. package/helps/integration/connector/oracle-connector.ko.md +87 -0
  25. package/helps/integration/connector/oracle-connector.md +46 -25
  26. package/helps/integration/connector/oracle-connector.ms.md +87 -0
  27. package/helps/integration/connector/oracle-connector.zh.md +87 -0
  28. package/openapi/unstable/scenario.yaml +100 -100
  29. package/openapi/unstable.yaml +11 -11
  30. package/package.json +7 -11
  31. package/server/controllers/index.ts +1 -0
  32. package/server/controllers/scenario-controller.ts +116 -0
  33. package/server/engine/connector/oracle-connector.ts +132 -22
  34. package/server/engine/task/oracle-procedure.ts +1 -16
  35. package/server/engine/task/utils/headless-pool-for-scenario.ts +1 -1
  36. package/server/index.ts +1 -0
  37. package/server/restful/unstable/run-scenario.ts +0 -1
  38. package/server/restful/unstable/start-scenario.ts +1 -1
  39. package/server/restful/unstable/stop-scenario.ts +1 -1
  40. package/server/service/scenario-instance/scenario-instance-mutation.ts +10 -121
  41. package/server/service/scenario-instance/scenario-instance-type.ts +11 -8
@@ -0,0 +1,90 @@
1
+ # Oracle コネクタ
2
+
3
+ ## サポート
4
+
5
+ 1. Oracle Client ライブラリのバージョン 11.2 以降が必要です
6
+ 2. Oracle データベース 10g 以降に接続可能
7
+
8
+ ## 設定
9
+
10
+ ### MAC OS
11
+
12
+ - Oracle クライアントのインストール
13
+
14
+ ```sh
15
+ cd $HOME/Downloads
16
+ curl -O https://download.oracle.com/otn_software/mac/instantclient/198000/instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
17
+ hdiutil mount instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
18
+ /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru/install_ic.sh
19
+ hdiutil unmount /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru
20
+
21
+ ln -s ~/Downloads/instantclient_19_8/libclntsh.dylib node_modules/oracledb/build/Release
22
+ ```
23
+
24
+ ### Linux
25
+
26
+ - Oracle パスの作成
27
+ ```sh
28
+ mkdir -p /opt/oracle
29
+ cd /opt/oracle
30
+ ```
31
+ - Oracle データベースに接続するための最新の Oracle クライアントのダウンロード
32
+ ```sh
33
+ wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
34
+ unzip instantclient-basiclite-linuxx64.zip && \
35
+ rm -f instantclient-basiclite-linuxx64.zip && \
36
+ cd /opt/oracle/instantclient* && \
37
+ rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
38
+ echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
39
+ ldconfig
40
+ ```
41
+
42
+ ### 詳細はこちらを参照してください
43
+
44
+ - https://oracle.github.io/node-oracledb/INSTALL.html
45
+
46
+ ## エンドポイント
47
+
48
+ Oracle エンジンのホスト名とサービスポート
49
+
50
+ - hostname : データベースサーバのホスト
51
+ - service port : データベースサービスポート(デフォルト - 1521)
52
+ - 形式
53
+ - {hostname}[:{port}]
54
+ - 例
55
+ - "localhost:1521"
56
+ - "localhost"
57
+ - "192.168.0.1:1521"
58
+
59
+ ## パラメータ
60
+
61
+ ### user
62
+
63
+ - Oracle データベースのユーザー ID
64
+
65
+ ### password
66
+
67
+ - Oracle データベースのユーザーパスワード
68
+
69
+ ### database
70
+
71
+ - Oracle SID 名
72
+
73
+ ### pool-increment
74
+
75
+ - 接続プールの増分サイズ
76
+ - デフォルト値 1
77
+
78
+ ### min. connection pool
79
+
80
+ - プールが作成されたときにデータベースに確立される接続数。これはまた、プールが縮小したときにプールが維持する最小の接続数です。
81
+ - デフォルト値 0
82
+
83
+ ### max. connection pool
84
+
85
+ - 接続プールが成
86
+
87
+ 長できる最大の接続数。
88
+
89
+ - 重要なのは、"max. connection pool" を増加させた場合、node-oracledb で使用可能なスレッド数も増やす必要があります。[接続数とスレッド数](https://node-oracledb.readthedocs.io/en/latest/user_guide/connection_handling.html#numberofthreads)を参照してください。
90
+ - デフォルト値 4
@@ -0,0 +1,87 @@
1
+ # 오라클 커넥터
2
+
3
+ ## 지원
4
+
5
+ 1. 오라클 클라이언트 라이브러리 버전 11.2 이상 필요
6
+ 2. 오라클 데이터베이스 10g 이상에 연결할 수 있음
7
+
8
+ ## 설정
9
+
10
+ ### MAC OS
11
+
12
+ - 오라클 클라이언트 설치
13
+
14
+ ```sh
15
+ cd $HOME/Downloads
16
+ curl -O https://download.oracle.com/otn_software/mac/instantclient/198000/instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
17
+ hdiutil mount instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
18
+ /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru/install_ic.sh
19
+ hdiutil unmount /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru
20
+
21
+ ln -s ~/Downloads/instantclient_19_8/libclntsh.dylib node_modules/oracledb/build/Release
22
+ ```
23
+
24
+ ### 리눅스
25
+
26
+ - 오라클 경로 생성
27
+ ```sh
28
+ mkdir -p /opt/oracle
29
+ cd /opt/oracle
30
+ ```
31
+ - 오라클 데이터베이스에 연결하기 위한 최신 오라클 클라이언트 다운로드
32
+ ```sh
33
+ wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
34
+ unzip instantclient-basiclite-linuxx64.zip && \
35
+ rm -f instantclient-basiclite-linuxx64.zip && \
36
+ cd /opt/oracle/instantclient* && \
37
+ rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
38
+ echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
39
+ ldconfig
40
+ ```
41
+
42
+ ### 자세한 내용은 참조하세요
43
+
44
+ - https://oracle.github.io/node-oracledb/INSTALL.html
45
+
46
+ ## 엔드포인트
47
+
48
+ 오라클 엔진 호스트 이름 및 서비스 포트
49
+
50
+ - hostname : 데이터베이스 서버 호스트
51
+ - service port : 데이터베이스 서비스 포트 (기본값 - 1521)
52
+ - 형식
53
+ - {hostname}[:{port}]
54
+ - 예.
55
+ - "localhost:1521"
56
+ - "localhost"
57
+ - "192.168.0.1:1521"
58
+
59
+ ## 파라미터
60
+
61
+ ### user
62
+
63
+ - 오라클 데이터베이스 사용자 ID
64
+
65
+ ### password
66
+
67
+ - 오라클 데이터베이스 사용자 비밀번호
68
+
69
+ ### database
70
+
71
+ - 오라클 SID 이름
72
+
73
+ ### pool-increment
74
+
75
+ - 연결 풀 증가 크기
76
+ - 기본값 1
77
+
78
+ ### min. connection pool
79
+
80
+ - 풀이 생성될 때 데이터베이스에 설정된 연결 수. 또한 이는 풀이 축소될 때 풀이 유지하는 최소 연결 수입니다.
81
+ - 기본값 0
82
+
83
+ ### max. connection pool
84
+
85
+ - 연결 풀이 성장할 수 있는 최대 연결 수.
86
+ - 중요하게, "max. connection pool"을 증가시킨다면, node-oracledb에 사용 가능한 스레드 수도 증가시켜야 합니다. [연결 및 스레드 수](https://node-oracledb.readthedocs.io/en/latest/user_guide/connection_handling.html#numberofthreads)를 참조하세요.
87
+ - 기본값 4
@@ -1,41 +1,47 @@
1
1
  # Oracle connector
2
2
 
3
3
  ## Support
4
+
4
5
  1. requires Oracle Client libraries version 11.2 or later
5
6
  2. Can connect to Oracle Database 10g or later
6
7
 
7
8
  ## Setting
9
+
8
10
  ### MAC OS
9
- * install oracle client
10
- ```sh
11
- cd $HOME/Downloads
12
- curl -O https://download.oracle.com/otn_software/mac/instantclient/198000/instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
13
- hdiutil mount instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
14
- /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru/install_ic.sh
15
- hdiutil unmount /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru
16
11
 
17
- ln -s ~/Downloads/instantclient_19_8/libclntsh.dylib node_modules/oracledb/build/Release
18
- ```
12
+ - install oracle client
13
+
14
+ ```sh
15
+ cd $HOME/Downloads
16
+ curl -O https://download.oracle.com/otn_software/mac/instantclient/198000/instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
17
+ hdiutil mount instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
18
+ /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru/install_ic.sh
19
+ hdiutil unmount /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru
20
+
21
+ ln -s ~/Downloads/instantclient_19_8/libclntsh.dylib node_modules/oracledb/build/Release
22
+ ```
19
23
 
20
24
  ### Linux
21
- * make oracle path
22
- ```sh
23
- mkdir -p /opt/oracle
24
- cd /opt/oracle
25
- ```
26
- * download newest oracle cilent for connect to Oracle Database
27
- ```sh
28
- wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
29
- unzip instantclient-basiclite-linuxx64.zip && \
30
- rm -f instantclient-basiclite-linuxx64.zip && \
31
- cd /opt/oracle/instantclient* && \
32
- rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
33
- echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
34
- ldconfig
35
- ```
25
+
26
+ - make oracle path
27
+ ```sh
28
+ mkdir -p /opt/oracle
29
+ cd /opt/oracle
30
+ ```
31
+ - download newest oracle cilent for connect to Oracle Database
32
+ ```sh
33
+ wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
34
+ unzip instantclient-basiclite-linuxx64.zip && \
35
+ rm -f instantclient-basiclite-linuxx64.zip && \
36
+ cd /opt/oracle/instantclient* && \
37
+ rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
38
+ echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
39
+ ldconfig
40
+ ```
41
+
36
42
  ### Detail please Refer
37
- * https://oracle.github.io/node-oracledb/INSTALL.html
38
43
 
44
+ - https://oracle.github.io/node-oracledb/INSTALL.html
39
45
 
40
46
  ## endpoint
41
47
 
@@ -64,3 +70,18 @@ Oracle engine hostname and service port
64
70
 
65
71
  - oracle sid name
66
72
 
73
+ ### pool-increment
74
+
75
+ - connection pool increment size
76
+ - default value 1
77
+
78
+ ### min. connection pool
79
+
80
+ - The number of connections established to the database when a pool is created. Also this is the minimum number of connections that a pool maintains when it shrinks.
81
+ - default value 0
82
+
83
+ ### max. connection pool
84
+
85
+ - The maximum number of connections to which a connection pool can grow.
86
+ - Importantly, if you increase "max. connection pool", you should also increase the number of threads available to node-oracledb. See [Connections and Number of Threads](https://node-oracledb.readthedocs.io/en/latest/user_guide/connection_handling.html#numberofthreads).
87
+ - default value 4
@@ -0,0 +1,87 @@
1
+ # Oracle penghubung
2
+
3
+ ## Sokongan
4
+
5
+ 1. memerlukan pustaka Klien Oracle versi 11.2 atau lebih tinggi
6
+ 2. Boleh menyambung ke Pangkalan Data Oracle 10g atau lebih tinggi
7
+
8
+ ## Tetapan
9
+
10
+ ### MAC OS
11
+
12
+ - pasang klien Oracle
13
+
14
+ ```sh
15
+ cd $HOME/Downloads
16
+ curl -O https://download.oracle.com/otn_software/mac/instantclient/198000/instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
17
+ hdiutil mount instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
18
+ /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru/install_ic.sh
19
+ hdiutil unmount /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru
20
+
21
+ ln -s ~/Downloads/instantclient_19_8/libclntsh.dylib node_modules/oracledb/build/Release
22
+ ```
23
+
24
+ ### Linux
25
+
26
+ - buat laluan Oracle
27
+ ```sh
28
+ mkdir -p /opt/oracle
29
+ cd /opt/oracle
30
+ ```
31
+ - muat turun klien Oracle terbaru untuk menyambung ke Pangkalan Data Oracle
32
+ ```sh
33
+ wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
34
+ unzip instantclient-basiclite-linuxx64.zip && \
35
+ rm -f instantclient-basiclite-linuxx64.zip && \
36
+ cd /opt/oracle/instantclient* && \
37
+ rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
38
+ echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
39
+ ldconfig
40
+ ```
41
+
42
+ ### Untuk maklumat lanjut sila rujuk
43
+
44
+ - https://oracle.github.io/node-oracledb/INSTALL.html
45
+
46
+ ## titik akhir
47
+
48
+ Nama hos enjin Oracle dan port perkhidmatan
49
+
50
+ - hostname : hos pelayan pangkalan data
51
+ - service port : port perkhidmatan pangkalan data (lalai - 1521)
52
+ - format
53
+ - {hostname}[:{port}]
54
+ - contoh
55
+ - "localhost:1521"
56
+ - "localhost"
57
+ - "192.168.0.1:1521"
58
+
59
+ ## Parameter
60
+
61
+ ### user
62
+
63
+ - ID pengguna untuk pangkalan data Oracle
64
+
65
+ ### password
66
+
67
+ - kata laluan pengguna untuk pangkalan data Oracle
68
+
69
+ ### database
70
+
71
+ - nama sid Oracle
72
+
73
+ ### pool-increment
74
+
75
+ - saiz peningkatan kolam sambungan
76
+ - nilai lalai 1
77
+
78
+ ### min. connection pool
79
+
80
+ - Bilangan sambungan yang ditubuhkan ke pangkalan data apabila kolam dicipta. Ini juga adalah bilangan sambungan minimum yang dikekalkan oleh kolam apabila ia mengecil.
81
+ - nilai lalai 0
82
+
83
+ ### max. connection pool
84
+
85
+ - Bilangan maksimum sambungan yang boleh berkembang ke kolam sambungan.
86
+ - Pentingnya, jika anda meningkatkan "max. connection pool", anda juga harus meningkatkan bilangan utas yang tersedia untuk node-oracledb. Lihat [Sambungan dan Bilangan Utas](https://node-oracledb.readthedocs.io/en/latest/user_guide/connection_handling.html#numberofthreads).
87
+ - nilai lalai 4
@@ -0,0 +1,87 @@
1
+ # Oracle 连接器
2
+
3
+ ## 支持
4
+
5
+ 1. 需要 Oracle 客户端库版本 11.2 或更高
6
+ 2. 可以连接到 Oracle 数据库 10g 或更高
7
+
8
+ ## 设置
9
+
10
+ ### MAC OS
11
+
12
+ - 安装 Oracle 客户端
13
+
14
+ ```sh
15
+ cd $HOME/Downloads
16
+ curl -O https://download.oracle.com/otn_software/mac/instantclient/198000/instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
17
+ hdiutil mount instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg
18
+ /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru/install_ic.sh
19
+ hdiutil unmount /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru
20
+
21
+ ln -s ~/Downloads/instantclient_19_8/libclntsh.dylib node_modules/oracledb/build/Release
22
+ ```
23
+
24
+ ### Linux
25
+
26
+ - 创建 Oracle 路径
27
+ ```sh
28
+ mkdir -p /opt/oracle
29
+ cd /opt/oracle
30
+ ```
31
+ - 下载最新的 Oracle 客户端以连接到 Oracle 数据库
32
+ ```sh
33
+ wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
34
+ unzip instantclient-basiclite-linuxx64.zip && \
35
+ rm -f instantclient-basiclite-linuxx64.zip && \
36
+ cd /opt/oracle/instantclient* && \
37
+ rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
38
+ echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
39
+ ldconfig
40
+ ```
41
+
42
+ ### 详情请参考
43
+
44
+ - https://oracle.github.io/node-oracledb/INSTALL.html
45
+
46
+ ## 端点
47
+
48
+ Oracle 引擎主机名和服务端口
49
+
50
+ - hostname : 数据库服务器主机
51
+ - service port : 数据库服务端口(默认 - 1521)
52
+ - 格式
53
+ - {hostname}[:{port}]
54
+ - 例如
55
+ - "localhost:1521"
56
+ - "localhost"
57
+ - "192.168.0.1:1521"
58
+
59
+ ## 参数
60
+
61
+ ### user
62
+
63
+ - Oracle 数据库用户 ID
64
+
65
+ ### password
66
+
67
+ - Oracle 数据库用户密码
68
+
69
+ ### database
70
+
71
+ - Oracle SID 名称
72
+
73
+ ### pool-increment
74
+
75
+ - 连接池增量大小
76
+ - 默认值 1
77
+
78
+ ### min. connection pool
79
+
80
+ - 创建池时数据库建立的连接数。这也是池缩小时保持的最小连接数。
81
+ - 默认值 0
82
+
83
+ ### max. connection pool
84
+
85
+ - 连接池可以增长的最大连接数。
86
+ - 重要的是,如果你增加了“max. connection pool”,你也应该增加 node-oracledb 可用的线程数。参见[连接和线程数](https://node-oracledb.readthedocs.io/en/latest/user_guide/connection_handling.html#numberofthreads)。
87
+ - 默认值 4