@openfn/language-mssql 7.0.1 → 7.0.3
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/ast.json +5 -2
- package/configuration-schema.json +9 -0
- package/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +2 -2
- package/types/Adaptor.d.ts +2 -2
package/ast.json
CHANGED
|
@@ -44,8 +44,11 @@
|
|
|
44
44
|
"title": "param",
|
|
45
45
|
"description": "Optional query options",
|
|
46
46
|
"type": {
|
|
47
|
-
"type": "
|
|
48
|
-
"
|
|
47
|
+
"type": "OptionalType",
|
|
48
|
+
"expression": {
|
|
49
|
+
"type": "NameExpression",
|
|
50
|
+
"name": "object"
|
|
51
|
+
}
|
|
49
52
|
},
|
|
50
53
|
"name": "params.options"
|
|
51
54
|
},
|
|
@@ -62,6 +62,15 @@
|
|
|
62
62
|
"examples": [
|
|
63
63
|
true
|
|
64
64
|
]
|
|
65
|
+
},
|
|
66
|
+
"requestTimeout": {
|
|
67
|
+
"title": "Request Timeout",
|
|
68
|
+
"description": "Number of milliseconds before a request times out. Default is 600000 (10 minutes). Set to 0 for no timeout.",
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"default": 600000,
|
|
71
|
+
"examples": [
|
|
72
|
+
300000
|
|
73
|
+
]
|
|
65
74
|
}
|
|
66
75
|
},
|
|
67
76
|
"type": "object",
|
package/dist/index.cjs
CHANGED
|
@@ -166,7 +166,8 @@ function createConnection(state) {
|
|
|
166
166
|
database,
|
|
167
167
|
port = 1433,
|
|
168
168
|
encrypt = true,
|
|
169
|
-
trustServerCertificate = false
|
|
169
|
+
trustServerCertificate = false,
|
|
170
|
+
requestTimeout = 6e5
|
|
170
171
|
} = state.configuration;
|
|
171
172
|
if (!server) {
|
|
172
173
|
throw new Error("server missing from configuration.");
|
|
@@ -182,7 +183,8 @@ function createConnection(state) {
|
|
|
182
183
|
database,
|
|
183
184
|
encrypt,
|
|
184
185
|
rowCollectionOnRequestCompletion: true,
|
|
185
|
-
trustServerCertificate
|
|
186
|
+
trustServerCertificate,
|
|
187
|
+
requestTimeout
|
|
186
188
|
}
|
|
187
189
|
};
|
|
188
190
|
const connection = new import_tedious.Connection(config);
|
package/dist/index.js
CHANGED
|
@@ -136,7 +136,8 @@ function createConnection(state) {
|
|
|
136
136
|
database,
|
|
137
137
|
port = 1433,
|
|
138
138
|
encrypt = true,
|
|
139
|
-
trustServerCertificate = false
|
|
139
|
+
trustServerCertificate = false,
|
|
140
|
+
requestTimeout = 6e5
|
|
140
141
|
} = state.configuration;
|
|
141
142
|
if (!server) {
|
|
142
143
|
throw new Error("server missing from configuration.");
|
|
@@ -152,7 +153,8 @@ function createConnection(state) {
|
|
|
152
153
|
database,
|
|
153
154
|
encrypt,
|
|
154
155
|
rowCollectionOnRequestCompletion: true,
|
|
155
|
-
trustServerCertificate
|
|
156
|
+
trustServerCertificate,
|
|
157
|
+
requestTimeout
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
160
|
const connection = new Connection(config);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-mssql",
|
|
3
3
|
"label": "MSSQL",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.3",
|
|
5
5
|
"description": "A Microsoft SQL language pack for OpenFn",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"tedious": "18.6.1",
|
|
29
|
-
"@openfn/language-common": "3.2.
|
|
29
|
+
"@openfn/language-common": "3.2.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"assertion-error": "2.0.0",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -22,12 +22,12 @@ export function execute(...operations: Operations): Operation;
|
|
|
22
22
|
* @function
|
|
23
23
|
* @param {object} params - Payload data for the SQL query
|
|
24
24
|
* @param {string} params.query - The SQL query to execute
|
|
25
|
-
* @param {object} params.options - Optional query options
|
|
25
|
+
* @param {object} [params.options] - Optional query options
|
|
26
26
|
* @returns {Operation}
|
|
27
27
|
*/
|
|
28
28
|
export function sql(params: {
|
|
29
29
|
query: string;
|
|
30
|
-
options
|
|
30
|
+
options?: object;
|
|
31
31
|
}): Operation;
|
|
32
32
|
/**
|
|
33
33
|
* Fetch a uuid key given a condition
|