stimulsoft-data-adapter 2023.3.2 → 2023.3.4
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/FirebirdAdapter.js +3 -3
- package/MSSQLAdapter.js +3 -3
- package/MySQLAdapter.js +3 -3
- package/PostgreSQLAdapter.js +10 -10
- package/index.js +3 -3
- package/package.json +1 -1
package/FirebirdAdapter.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2023.3.
|
|
4
|
-
Build date: 2023.
|
|
3
|
+
Version: 2023.3.4
|
|
4
|
+
Build date: 2023.09.12
|
|
5
5
|
License: https://www.stimulsoft.com/en/licensing/reports
|
|
6
6
|
*/
|
|
7
7
|
exports.process = function (command, onResult) {
|
|
8
8
|
var end = function (result) {
|
|
9
9
|
try {
|
|
10
10
|
if (db) db.detach();
|
|
11
|
-
result.adapterVersion = "2023.3.
|
|
11
|
+
result.adapterVersion = "2023.3.4";
|
|
12
12
|
onResult(result);
|
|
13
13
|
}
|
|
14
14
|
catch (e) {
|
package/MSSQLAdapter.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2023.3.
|
|
4
|
-
Build date: 2023.
|
|
3
|
+
Version: 2023.3.4
|
|
4
|
+
Build date: 2023.09.12
|
|
5
5
|
License: https://www.stimulsoft.com/en/licensing/reports
|
|
6
6
|
*/
|
|
7
7
|
exports.process = function (command, onResult) {
|
|
8
8
|
var end = function (result) {
|
|
9
9
|
try {
|
|
10
10
|
if (connection) connection.close();
|
|
11
|
-
result.adapterVersion = "2023.3.
|
|
11
|
+
result.adapterVersion = "2023.3.4";
|
|
12
12
|
onResult(result);
|
|
13
13
|
}
|
|
14
14
|
catch (e) {
|
package/MySQLAdapter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2023.3.
|
|
4
|
-
Build date: 2023.
|
|
3
|
+
Version: 2023.3.4
|
|
4
|
+
Build date: 2023.09.12
|
|
5
5
|
License: https://www.stimulsoft.com/en/licensing/reports
|
|
6
6
|
*/
|
|
7
7
|
exports.process = function (command, onResult) {
|
|
@@ -13,7 +13,7 @@ exports.process = function (command, onResult) {
|
|
|
13
13
|
catch (e) {
|
|
14
14
|
}
|
|
15
15
|
finally {
|
|
16
|
-
result.adapterVersion = "2023.3.
|
|
16
|
+
result.adapterVersion = "2023.3.4";
|
|
17
17
|
onResult(result);
|
|
18
18
|
}
|
|
19
19
|
}
|
package/PostgreSQLAdapter.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2023.3.
|
|
4
|
-
Build date: 2023.
|
|
3
|
+
Version: 2023.3.4
|
|
4
|
+
Build date: 2023.09.12
|
|
5
5
|
License: https://www.stimulsoft.com/en/licensing/reports
|
|
6
6
|
*/
|
|
7
7
|
exports.process = function (command, onResult) {
|
|
8
8
|
var end = function (result) {
|
|
9
9
|
try {
|
|
10
10
|
if (client) client.end();
|
|
11
|
-
result.adapterVersion = "2023.3.
|
|
11
|
+
result.adapterVersion = "2023.3.4";
|
|
12
12
|
onResult(result);
|
|
13
13
|
}
|
|
14
14
|
catch (e) {
|
|
@@ -210,7 +210,7 @@ exports.process = function (command, onResult) {
|
|
|
210
210
|
case "uid":
|
|
211
211
|
case "user":
|
|
212
212
|
case "user id":
|
|
213
|
-
info["
|
|
213
|
+
info["user"] = match[1];
|
|
214
214
|
break;
|
|
215
215
|
|
|
216
216
|
case "pwd":
|
|
@@ -272,15 +272,15 @@ exports.process = function (command, onResult) {
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
var pg = require('pg');
|
|
275
|
-
if (command.connectionString.startsWith("postgres://"))
|
|
275
|
+
if (command.connectionString.startsWith("postgres://")) {
|
|
276
|
+
var parse = require('pg-connection-string').parse;
|
|
277
|
+
command.connectionStringInfo = parse(command.connectionString);
|
|
278
|
+
}
|
|
276
279
|
else {
|
|
277
280
|
command.connectionStringInfo = getConnectionStringInfo(command.connectionString);
|
|
278
|
-
|
|
279
|
-
command.postgreConnectionString = "postgres://" + command.connectionStringInfo.userId + ":" + command.connectionStringInfo.password + "@" + command.connectionStringInfo.host;
|
|
280
|
-
if (command.connectionStringInfo.port != null) command.postgreConnectionString += ":" + command.connectionStringInfo.port;
|
|
281
|
-
command.postgreConnectionString += "/" + command.connectionStringInfo.database;
|
|
282
281
|
}
|
|
283
|
-
|
|
282
|
+
|
|
283
|
+
var client = new pg.Client(command.connectionStringInfo);
|
|
284
284
|
|
|
285
285
|
connect();
|
|
286
286
|
}
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2023.3.
|
|
4
|
-
Build date: 2023.
|
|
3
|
+
Version: 2023.3.4
|
|
4
|
+
Build date: 2023.09.12
|
|
5
5
|
License: https://www.stimulsoft.com/en/licensing/reports
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -67,7 +67,7 @@ function getResponse(result) {
|
|
|
67
67
|
return result
|
|
68
68
|
}
|
|
69
69
|
function onProcess(onResult, encryptData, result) {
|
|
70
|
-
result.handlerVersion = "2023.3.
|
|
70
|
+
result.handlerVersion = "2023.3.4";
|
|
71
71
|
result.checkVersion = true;
|
|
72
72
|
result.encryptData = encryptData;
|
|
73
73
|
onResult(result);
|