@openfn/language-mssql 3.1.2 → 4.0.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/README.md +1 -1
- package/ast.json +10 -20
- package/dist/index.cjs +60714 -38
- package/dist/index.js +60728 -35
- package/package.json +1 -1
- package/types/Adaptor.d.ts +11 -196
package/README.md
CHANGED
package/ast.json
CHANGED
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
"description": "sql({ query, options })"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
"title": "
|
|
21
|
+
"title": "function",
|
|
22
22
|
"description": null,
|
|
23
|
-
"type": null,
|
|
24
23
|
"name": null
|
|
25
24
|
},
|
|
26
25
|
{
|
|
@@ -62,9 +61,8 @@
|
|
|
62
61
|
"description": "findValue({\n uuid: 'id',\n relation: 'users',\n where: { first_name: 'Mama%', last_name: 'Cisse'},\n operator: { first_name: 'like', last_name: '='}\n })"
|
|
63
62
|
},
|
|
64
63
|
{
|
|
65
|
-
"title": "
|
|
64
|
+
"title": "function",
|
|
66
65
|
"description": null,
|
|
67
|
-
"type": null,
|
|
68
66
|
"name": null
|
|
69
67
|
},
|
|
70
68
|
{
|
|
@@ -108,9 +106,8 @@
|
|
|
108
106
|
"description": "insert(table, record, {setNull: [\"'undefined'\", \"''\"], logValues: false})"
|
|
109
107
|
},
|
|
110
108
|
{
|
|
111
|
-
"title": "
|
|
109
|
+
"title": "function",
|
|
112
110
|
"description": null,
|
|
113
|
-
"type": null,
|
|
114
111
|
"name": null
|
|
115
112
|
},
|
|
116
113
|
{
|
|
@@ -172,9 +169,8 @@
|
|
|
172
169
|
"description": "insertMany(table, records, { setNull: false, writeSql: true, logValues: false })"
|
|
173
170
|
},
|
|
174
171
|
{
|
|
175
|
-
"title": "
|
|
172
|
+
"title": "function",
|
|
176
173
|
"description": null,
|
|
177
|
-
"type": null,
|
|
178
174
|
"name": null
|
|
179
175
|
},
|
|
180
176
|
{
|
|
@@ -237,9 +233,8 @@
|
|
|
237
233
|
"description": "upsert(table, uuid, record, { setNull: \"'undefined'\", logValues: false})\nupsert(table, [uuid1, uuid2], record, { setNull: \"'undefined'\", logValues: false})"
|
|
238
234
|
},
|
|
239
235
|
{
|
|
240
|
-
"title": "
|
|
236
|
+
"title": "function",
|
|
241
237
|
"description": null,
|
|
242
|
-
"type": null,
|
|
243
238
|
"name": null
|
|
244
239
|
},
|
|
245
240
|
{
|
|
@@ -312,9 +307,8 @@
|
|
|
312
307
|
"description": "upsertIf(\n dataValue('name'),\n 'users', // the DB table\n 'uuid', // a DB column with a unique constraint\n { name: 'Elodie', id: 7 },\n { writeSql:true, execute: true, logValues: false }\n)"
|
|
313
308
|
},
|
|
314
309
|
{
|
|
315
|
-
"title": "
|
|
310
|
+
"title": "function",
|
|
316
311
|
"description": null,
|
|
317
|
-
"type": null,
|
|
318
312
|
"name": null
|
|
319
313
|
},
|
|
320
314
|
{
|
|
@@ -395,9 +389,8 @@
|
|
|
395
389
|
"description": "upsertMany(\n 'users', 'email', records, { logValues: false }\n)\nupsertMany(\n 'users', ['email', 'phone'], records, { logValues: false }\n)"
|
|
396
390
|
},
|
|
397
391
|
{
|
|
398
|
-
"title": "
|
|
392
|
+
"title": "function",
|
|
399
393
|
"description": null,
|
|
400
|
-
"type": null,
|
|
401
394
|
"name": null
|
|
402
395
|
},
|
|
403
396
|
{
|
|
@@ -467,9 +460,8 @@
|
|
|
467
460
|
"description": "describeTable('clinic_visits')"
|
|
468
461
|
},
|
|
469
462
|
{
|
|
470
|
-
"title": "
|
|
463
|
+
"title": "function",
|
|
471
464
|
"description": null,
|
|
472
|
-
"type": null,
|
|
473
465
|
"name": null
|
|
474
466
|
},
|
|
475
467
|
{
|
|
@@ -522,9 +514,8 @@
|
|
|
522
514
|
"description": "insertTable('table_name', state => state.data.map(\n column => ({\n name: column.name,\n type: column.type,\n required: true, // optional\n unique: false, // optional - to be set to true for unique constraint\n })\n));"
|
|
523
515
|
},
|
|
524
516
|
{
|
|
525
|
-
"title": "
|
|
517
|
+
"title": "function",
|
|
526
518
|
"description": null,
|
|
527
|
-
"type": null,
|
|
528
519
|
"name": null
|
|
529
520
|
},
|
|
530
521
|
{
|
|
@@ -586,9 +577,8 @@
|
|
|
586
577
|
"description": "modifyTable('table_name', state => state.data.map(\n newColumn => ({\n name: newColumn.name,\n type: newColumn.type,\n required: true, // optional\n unique: false, // optional - to be set to true for unique constraint\n })\n));"
|
|
587
578
|
},
|
|
588
579
|
{
|
|
589
|
-
"title": "
|
|
580
|
+
"title": "function",
|
|
590
581
|
"description": null,
|
|
591
|
-
"type": null,
|
|
592
582
|
"name": null
|
|
593
583
|
},
|
|
594
584
|
{
|