@openfn/language-mysql 1.3.3 → 1.3.5
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/README.md +3 -4
- package/ast.json +48 -0
- package/package.json +2 -2
- package/types/Adaptor.d.ts +2 -1
package/README.md
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Language Pack for building expressions and operations to run MySQL queries.
|
|
4
4
|
|
|
5
|
-
**See
|
|
6
|
-
[`src/Adaptor.js`](https://github.com/OpenFn/language-mysql/blob/master/src/Adaptor.js)
|
|
7
|
-
for the full list of available helper functions including `upsert(...)`.**
|
|
8
|
-
|
|
9
5
|
## Documentation
|
|
10
6
|
|
|
7
|
+
View the [docs site](https://docs.openfn.org/adaptors/packages/mysql-docs) for
|
|
8
|
+
full technical documentation.
|
|
9
|
+
|
|
11
10
|
### Configuration
|
|
12
11
|
|
|
13
12
|
View all the required and optional properties for `state.configuration` in the
|
package/ast.json
CHANGED
|
@@ -86,6 +86,14 @@
|
|
|
86
86
|
"name": "Function"
|
|
87
87
|
},
|
|
88
88
|
"name": "func"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"title": "returns",
|
|
92
|
+
"description": null,
|
|
93
|
+
"type": {
|
|
94
|
+
"type": "NameExpression",
|
|
95
|
+
"name": "Operation"
|
|
96
|
+
}
|
|
89
97
|
}
|
|
90
98
|
]
|
|
91
99
|
},
|
|
@@ -121,6 +129,14 @@
|
|
|
121
129
|
"name": "String"
|
|
122
130
|
},
|
|
123
131
|
"name": "path"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"title": "returns",
|
|
135
|
+
"description": null,
|
|
136
|
+
"type": {
|
|
137
|
+
"type": "NameExpression",
|
|
138
|
+
"name": "Operation"
|
|
139
|
+
}
|
|
124
140
|
}
|
|
125
141
|
]
|
|
126
142
|
},
|
|
@@ -199,6 +215,14 @@
|
|
|
199
215
|
"name": "String"
|
|
200
216
|
},
|
|
201
217
|
"name": "path"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"title": "returns",
|
|
221
|
+
"description": null,
|
|
222
|
+
"type": {
|
|
223
|
+
"type": "NameExpression",
|
|
224
|
+
"name": "Operation"
|
|
225
|
+
}
|
|
202
226
|
}
|
|
203
227
|
]
|
|
204
228
|
},
|
|
@@ -234,6 +258,14 @@
|
|
|
234
258
|
"name": "String"
|
|
235
259
|
},
|
|
236
260
|
"name": "path"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"title": "returns",
|
|
264
|
+
"description": null,
|
|
265
|
+
"type": {
|
|
266
|
+
"type": "NameExpression",
|
|
267
|
+
"name": "Operation"
|
|
268
|
+
}
|
|
237
269
|
}
|
|
238
270
|
]
|
|
239
271
|
},
|
|
@@ -279,6 +311,14 @@
|
|
|
279
311
|
"name": "Operation"
|
|
280
312
|
},
|
|
281
313
|
"name": "operation"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"title": "returns",
|
|
317
|
+
"description": null,
|
|
318
|
+
"type": {
|
|
319
|
+
"type": "NameExpression",
|
|
320
|
+
"name": "Operation"
|
|
321
|
+
}
|
|
282
322
|
}
|
|
283
323
|
]
|
|
284
324
|
},
|
|
@@ -367,6 +407,14 @@
|
|
|
367
407
|
"name": "Value"
|
|
368
408
|
},
|
|
369
409
|
"name": "value"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"title": "returns",
|
|
413
|
+
"description": null,
|
|
414
|
+
"type": {
|
|
415
|
+
"type": "NameExpression",
|
|
416
|
+
"name": "Field"
|
|
417
|
+
}
|
|
370
418
|
}
|
|
371
419
|
]
|
|
372
420
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-mysql",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "A MySQL Language Pack for OpenFn",
|
|
5
5
|
"homepage": "https://docs.openfn.org",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"configuration-schema.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@openfn/language-common": "1.
|
|
20
|
+
"@openfn/language-common": "1.7.7",
|
|
21
21
|
"json-sql": "^0.3.10",
|
|
22
22
|
"mysql": "^2.13.0",
|
|
23
23
|
"squel": "^5.8.0",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* create('foo'),
|
|
7
7
|
* delete('bar')
|
|
8
8
|
* )(state)
|
|
9
|
-
* @
|
|
9
|
+
* @private
|
|
10
10
|
* @param {Operations} operations - Operations to be performed.
|
|
11
11
|
* @returns {Operation}
|
|
12
12
|
*/
|
|
@@ -78,3 +78,4 @@ export function query(options: object): Operation;
|
|
|
78
78
|
* @returns {Operation}
|
|
79
79
|
*/
|
|
80
80
|
export function sqlString(queryString: string): Operation;
|
|
81
|
+
export { field, fields, sourceValue, alterState, fn, arrayToString, each, combine, merge, dataPath, dataValue, lastReferenceValue, http } from "@openfn/language-common";
|