stimulsoft-data-adapter 2024.2.5 → 2024.3.1
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/MongoDBAdapter.js +3 -3
- package/MySQLAdapter.js +3 -3
- package/OracleAdapter.js +8 -8
- package/PostgreSQLAdapter.js +3 -3
- package/index.js +3 -3
- package/package.json +5 -5
package/FirebirdAdapter.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2024.
|
|
4
|
-
Build date: 2024.
|
|
3
|
+
Version: 2024.3.1
|
|
4
|
+
Build date: 2024.06.13
|
|
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 = "2024.
|
|
11
|
+
result.adapterVersion = "2024.3.1";
|
|
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: 2024.
|
|
4
|
-
Build date: 2024.
|
|
3
|
+
Version: 2024.3.1
|
|
4
|
+
Build date: 2024.06.13
|
|
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 = "2024.
|
|
11
|
+
result.adapterVersion = "2024.3.1";
|
|
12
12
|
onResult(result);
|
|
13
13
|
}
|
|
14
14
|
catch (e) {
|
package/MongoDBAdapter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2024.
|
|
4
|
-
Build date: 2024.
|
|
3
|
+
Version: 2024.3.1
|
|
4
|
+
Build date: 2024.06.13
|
|
5
5
|
License: https://www.stimulsoft.com/en/licensing/reports
|
|
6
6
|
*/
|
|
7
7
|
exports.process = function (command, onResult) {
|
|
@@ -126,7 +126,7 @@ exports.process = function (command, onResult) {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
client.close();
|
|
129
|
-
result.adapterVersion = "2024.
|
|
129
|
+
result.adapterVersion = "2024.3.1";
|
|
130
130
|
onResult(result);
|
|
131
131
|
});
|
|
132
132
|
}
|
package/MySQLAdapter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2024.
|
|
4
|
-
Build date: 2024.
|
|
3
|
+
Version: 2024.3.1
|
|
4
|
+
Build date: 2024.06.13
|
|
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 = "2024.
|
|
16
|
+
result.adapterVersion = "2024.3.1";
|
|
17
17
|
onResult(result);
|
|
18
18
|
}
|
|
19
19
|
}
|
package/OracleAdapter.js
CHANGED
|
@@ -150,10 +150,10 @@ exports.process = function (command, onResult) {
|
|
|
150
150
|
var parameters = null;
|
|
151
151
|
var result = "";
|
|
152
152
|
|
|
153
|
-
if (baseSqlCommand != null && baseSqlCommand.indexOf("
|
|
154
|
-
while (baseSqlCommand.indexOf("
|
|
155
|
-
result += baseSqlCommand.substring(0, baseSqlCommand.indexOf("
|
|
156
|
-
baseSqlCommand = baseSqlCommand.substring(baseSqlCommand.indexOf("
|
|
153
|
+
if (baseSqlCommand != null && baseSqlCommand.indexOf(":") > -1) {
|
|
154
|
+
while (baseSqlCommand.indexOf(":") >= 0 && baseParameters != null && baseParameters.length > 0) {
|
|
155
|
+
result += baseSqlCommand.substring(0, baseSqlCommand.indexOf(":"));
|
|
156
|
+
baseSqlCommand = baseSqlCommand.substring(baseSqlCommand.indexOf(":") + 1);
|
|
157
157
|
|
|
158
158
|
var parameterName = "";
|
|
159
159
|
|
|
@@ -172,13 +172,13 @@ exports.process = function (command, onResult) {
|
|
|
172
172
|
var parameterValue = parameter.value;
|
|
173
173
|
if (parameter.typeGroup == "number") parameterValue = +parameter.value;
|
|
174
174
|
else if (parameter.typeGroup == "datetime") parameterValue = new Date(parameter.value);
|
|
175
|
-
if (
|
|
175
|
+
else if (parameter.typeGroup == "date") parameterValue = new Date(parameter.value);
|
|
176
|
+
else if (parameter.typeGroup == "time") parameterValue = new Date(parameter.value);
|
|
177
|
+
if (parameters == null) parameters = {};
|
|
176
178
|
parameters[parameter.name] = parameterValue;
|
|
177
179
|
}
|
|
178
|
-
result += ':' + parameter.name;
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
-
result += "@" + parameterName;
|
|
181
|
+
result += ':' + parameter.name;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
package/PostgreSQLAdapter.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2024.
|
|
4
|
-
Build date: 2024.
|
|
3
|
+
Version: 2024.3.1
|
|
4
|
+
Build date: 2024.06.13
|
|
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 = "2024.
|
|
11
|
+
result.adapterVersion = "2024.3.1";
|
|
12
12
|
onResult(result);
|
|
13
13
|
}
|
|
14
14
|
catch (e) {
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Stimulsoft.Reports.JS
|
|
3
|
-
Version: 2024.
|
|
4
|
-
Build date: 2024.
|
|
3
|
+
Version: 2024.3.1
|
|
4
|
+
Build date: 2024.06.13
|
|
5
5
|
License: https://www.stimulsoft.com/en/licensing/reports
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -75,7 +75,7 @@ function getResponse(result) {
|
|
|
75
75
|
return result
|
|
76
76
|
}
|
|
77
77
|
function onProcess(onResult, encryptData, result) {
|
|
78
|
-
result.handlerVersion = "2024.
|
|
78
|
+
result.handlerVersion = "2024.3.1";
|
|
79
79
|
result.checkVersion = true;
|
|
80
80
|
result.encryptData = encryptData;
|
|
81
81
|
onResult(result);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stimulsoft-data-adapter",
|
|
3
|
-
"version": "2024.
|
|
3
|
+
"version": "2024.3.1",
|
|
4
4
|
"description": "Nodejs data adapter for Stimulsoft Reports.JS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"url": "https://github.com/stimulsoft/DataAdapters.JS/tree/main/NodejsDataAdapters"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"mongodb": "^6.
|
|
14
|
+
"mongodb": "^6.7.0",
|
|
15
15
|
"mssql": "^6.2.1",
|
|
16
|
-
"mysql2": "^3.
|
|
16
|
+
"mysql2": "^3.10.0",
|
|
17
17
|
"node-firebird": "^1.1.8",
|
|
18
|
-
"oracledb": "^6.
|
|
19
|
-
"pg": "^8.
|
|
18
|
+
"oracledb": "^6.5.1",
|
|
19
|
+
"pg": "^8.12.0",
|
|
20
20
|
"tzdata": "^1.0.40"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|