@budibase/server 1.0.79-alpha.7 → 1.0.79-alpha.8

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.
Files changed (192) hide show
  1. package/builder/assets/{index.ef62c13b.js → index.d0476387.js} +43 -43
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +118 -103
  4. package/coverage/coverage-final.json +1 -1
  5. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/application.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/index.html +1 -1
  16. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/index.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  47. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  48. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  49. package/coverage/lcov-report/api/index.html +1 -1
  50. package/coverage/lcov-report/api/index.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/index.html +1 -1
  63. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  79. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  80. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  81. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  82. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  83. package/coverage/lcov-report/automations/actions.js.html +1 -1
  84. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  85. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  86. package/coverage/lcov-report/automations/index.html +1 -1
  87. package/coverage/lcov-report/automations/index.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/index.html +1 -1
  97. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  102. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  103. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  104. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  105. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  111. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  112. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  113. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  114. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  115. package/coverage/lcov-report/automations/utils.js.html +1 -1
  116. package/coverage/lcov-report/constants/index.html +1 -1
  117. package/coverage/lcov-report/constants/index.js.html +1 -1
  118. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  119. package/coverage/lcov-report/constants/screens.js.html +1 -1
  120. package/coverage/lcov-report/db/client.js.html +1 -1
  121. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  122. package/coverage/lcov-report/db/index.html +1 -1
  123. package/coverage/lcov-report/db/index.js.html +1 -1
  124. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  125. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  126. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  127. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  128. package/coverage/lcov-report/db/newid.js.html +1 -1
  129. package/coverage/lcov-report/db/utils.js.html +1 -1
  130. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  131. package/coverage/lcov-report/events/index.html +1 -1
  132. package/coverage/lcov-report/events/index.js.html +1 -1
  133. package/coverage/lcov-report/events/utils.js.html +1 -1
  134. package/coverage/lcov-report/index.html +19 -19
  135. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  136. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  137. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  138. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  139. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  140. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  141. package/coverage/lcov-report/middleware/index.html +1 -1
  142. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  143. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  144. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  145. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  146. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  147. package/coverage/lcov-report/threads/automation.js.html +1 -1
  148. package/coverage/lcov-report/threads/index.html +19 -19
  149. package/coverage/lcov-report/threads/index.js.html +1 -1
  150. package/coverage/lcov-report/threads/query.js.html +123 -39
  151. package/coverage/lcov-report/threads/utils.js.html +1 -1
  152. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  153. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  154. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  155. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  156. package/coverage/lcov-report/utilities/global.js.html +1 -1
  157. package/coverage/lcov-report/utilities/index.html +1 -1
  158. package/coverage/lcov-report/utilities/index.js.html +1 -1
  159. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  160. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  161. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  162. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  163. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  164. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  165. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  166. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  167. package/coverage/lcov-report/utilities/security.js.html +1 -1
  168. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  169. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  170. package/coverage/lcov-report/utilities/usageQuota/index.js.html +1 -1
  171. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  172. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  173. package/coverage/lcov-report/utilities/users.js.html +1 -1
  174. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  175. package/coverage/lcov.info +208 -185
  176. package/dist/integrations/googlesheets.js +3 -0
  177. package/dist/integrations/microsoftSqlServer.js +35 -29
  178. package/dist/integrations/mysql.js +30 -26
  179. package/dist/integrations/oracle.js +14 -19
  180. package/dist/integrations/postgres.js +34 -28
  181. package/dist/package.json +4 -4
  182. package/dist/threads/query.js +33 -8
  183. package/dist/tsconfig.tsbuildinfo +1 -1
  184. package/package.json +5 -5
  185. package/scripts/integrations/oracle/oracle.md +2 -2
  186. package/src/integrations/base/datasourcePlus.ts +3 -0
  187. package/src/integrations/googlesheets.ts +5 -2
  188. package/src/integrations/microsoftSqlServer.ts +38 -33
  189. package/src/integrations/mysql.ts +38 -36
  190. package/src/integrations/oracle.ts +27 -35
  191. package/src/integrations/postgres.ts +33 -26
  192. package/src/threads/query.js +37 -9
@@ -8254,205 +8254,228 @@ BRH:10
8254
8254
  end_of_record
8255
8255
  TN:
8256
8256
  SF:src/threads/query.js
8257
- FN:9,(anonymous_0)
8258
- FN:26,(anonymous_1)
8259
- FN:88,(anonymous_2)
8260
- FN:89,(anonymous_3)
8261
- FN:102,(anonymous_4)
8262
- FN:118,(anonymous_5)
8263
- FN:136,(anonymous_6)
8264
- FN:151,(anonymous_7)
8265
- FN:160,(anonymous_8)
8266
- FN:181,(anonymous_9)
8267
- FN:223,(anonymous_10)
8268
- FN:224,(anonymous_11)
8269
- FN:227,(anonymous_12)
8270
- FN:230,(anonymous_13)
8271
- FNF:14
8272
- FNH:13
8257
+ FN:13,(anonymous_0)
8258
+ FN:30,(anonymous_1)
8259
+ FN:48,(anonymous_2)
8260
+ FN:116,(anonymous_3)
8261
+ FN:117,(anonymous_4)
8262
+ FN:130,(anonymous_5)
8263
+ FN:146,(anonymous_6)
8264
+ FN:164,(anonymous_7)
8265
+ FN:179,(anonymous_8)
8266
+ FN:188,(anonymous_9)
8267
+ FN:209,(anonymous_10)
8268
+ FN:251,(anonymous_11)
8269
+ FN:252,(anonymous_12)
8270
+ FN:255,(anonymous_13)
8271
+ FN:258,(anonymous_14)
8272
+ FNF:15
8273
+ FNH:14
8273
8274
  FNDA:15,(anonymous_0)
8274
- FNDA:16,(anonymous_1)
8275
- FNDA:13,(anonymous_2)
8276
- FNDA:0,(anonymous_3)
8277
- FNDA:5,(anonymous_4)
8278
- FNDA:6,(anonymous_5)
8279
- FNDA:16,(anonymous_6)
8280
- FNDA:6,(anonymous_7)
8275
+ FNDA:2,(anonymous_1)
8276
+ FNDA:16,(anonymous_2)
8277
+ FNDA:13,(anonymous_3)
8278
+ FNDA:0,(anonymous_4)
8279
+ FNDA:5,(anonymous_5)
8280
+ FNDA:6,(anonymous_6)
8281
+ FNDA:14,(anonymous_7)
8281
8282
  FNDA:6,(anonymous_8)
8282
- FNDA:16,(anonymous_9)
8283
- FNDA:10,(anonymous_10)
8283
+ FNDA:6,(anonymous_9)
8284
+ FNDA:12,(anonymous_10)
8284
8285
  FNDA:10,(anonymous_11)
8285
- FNDA:8,(anonymous_12)
8286
- FNDA:2,(anonymous_13)
8286
+ FNDA:10,(anonymous_12)
8287
+ FNDA:8,(anonymous_13)
8288
+ FNDA:2,(anonymous_14)
8287
8289
  DA:1,2
8288
8290
  DA:2,2
8289
8291
  DA:3,2
8290
8292
  DA:4,2
8291
- DA:5,2
8292
- DA:6,2
8293
- DA:10,15
8294
- DA:11,15
8295
- DA:12,15
8296
- DA:13,15
8293
+ DA:8,2
8294
+ DA:9,2
8295
+ DA:10,2
8297
8296
  DA:14,15
8298
8297
  DA:15,15
8299
8298
  DA:16,15
8300
8299
  DA:17,15
8301
8300
  DA:18,15
8301
+ DA:19,15
8302
+ DA:20,15
8303
+ DA:21,15
8302
8304
  DA:22,15
8303
- DA:23,15
8304
- DA:27,16
8305
- DA:29,16
8306
- DA:30,16
8307
- DA:33,16
8308
- DA:34,0
8309
- DA:37,16
8310
- DA:38,16
8311
- DA:39,2
8312
- DA:41,14
8313
- DA:43,14
8314
- DA:44,14
8315
- DA:45,14
8316
- DA:46,14
8317
- DA:47,14
8318
- DA:48,14
8319
- DA:49,12
8320
- DA:50,12
8321
- DA:51,12
8322
- DA:52,12
8323
- DA:56,14
8324
- DA:57,0
8325
- DA:61,0
8326
- DA:65,14
8327
- DA:71,1
8328
- DA:73,1
8329
- DA:74,1
8330
- DA:78,13
8331
- DA:79,0
8332
- DA:83,13
8333
- DA:84,11
8334
- DA:88,13
8305
+ DA:26,15
8306
+ DA:27,15
8307
+ DA:31,2
8308
+ DA:32,2
8309
+ DA:33,2
8310
+ DA:35,0
8311
+ DA:36,0
8312
+ DA:37,0
8313
+ DA:38,0
8314
+ DA:39,0
8315
+ DA:40,0
8316
+ DA:43,0
8317
+ DA:44,0
8318
+ DA:45,0
8319
+ DA:49,16
8320
+ DA:50,16
8321
+ DA:51,16
8322
+ DA:52,2
8323
+ DA:54,14
8324
+ DA:57,14
8325
+ DA:60,14
8326
+ DA:61,2
8327
+ DA:63,12
8328
+ DA:67,14
8329
+ DA:68,0
8330
+ DA:71,14
8331
+ DA:72,14
8332
+ DA:73,14
8333
+ DA:74,14
8334
+ DA:75,14
8335
+ DA:76,14
8336
+ DA:77,12
8337
+ DA:78,12
8338
+ DA:79,12
8339
+ DA:80,12
8340
+ DA:84,14
8341
+ DA:85,0
8335
8342
  DA:89,0
8336
- DA:93,13
8337
- DA:95,13
8338
- DA:96,0
8339
- DA:99,13
8340
- DA:103,5
8341
- DA:104,5
8342
- DA:105,5
8343
- DA:106,5
8344
- DA:119,6
8345
- DA:120,6
8346
- DA:121,6
8347
- DA:122,6
8348
- DA:123,6
8349
- DA:124,5
8350
- DA:128,5
8351
- DA:129,5
8352
- DA:131,1
8353
- DA:133,6
8354
- DA:137,16
8355
- DA:138,16
8356
- DA:139,0
8357
- DA:141,16
8358
- DA:142,16
8359
- DA:143,16
8360
- DA:144,2
8361
- DA:145,2
8362
- DA:148,16
8363
- DA:150,11
8364
- DA:151,11
8365
- DA:153,6
8366
- DA:154,0
8367
- DA:157,6
8368
- DA:158,6
8369
- DA:160,11
8370
- DA:161,11
8371
- DA:162,11
8372
- DA:163,6
8373
- DA:164,6
8374
- DA:175,6
8375
- DA:178,16
8376
- DA:182,16
8377
- DA:185,16
8378
- DA:186,19
8379
- DA:187,0
8380
- DA:189,19
8381
- DA:191,0
8382
- DA:192,19
8383
- DA:194,19
8384
- DA:200,0
8385
- DA:203,16
8386
- DA:208,0
8387
- DA:209,0
8388
- DA:217,0
8389
- DA:219,16
8390
- DA:223,2
8391
- DA:224,10
8392
- DA:225,10
8393
- DA:226,10
8394
- DA:228,8
8395
- DA:231,2
8396
- LF:109
8397
- LH:95
8398
- BRDA:9,0,0,10
8399
- BRDA:33,1,0,0
8400
- BRDA:33,1,1,16
8401
- BRDA:38,2,0,2
8402
- BRDA:38,2,1,14
8403
- BRDA:48,3,0,12
8404
- BRDA:48,3,1,2
8405
- BRDA:56,4,0,0
8406
- BRDA:56,4,1,14
8407
- BRDA:65,5,0,1
8408
- BRDA:65,5,1,13
8409
- BRDA:66,6,0,14
8410
- BRDA:66,6,1,12
8411
- BRDA:66,6,2,1
8412
- BRDA:66,6,3,1
8413
- BRDA:78,7,0,0
8414
- BRDA:78,7,1,13
8415
- BRDA:83,8,0,11
8416
- BRDA:83,8,1,2
8417
- BRDA:88,9,0,0
8418
- BRDA:88,9,1,13
8419
- BRDA:95,10,0,0
8420
- BRDA:95,10,1,13
8421
- BRDA:123,11,0,5
8422
- BRDA:123,11,1,1
8423
- BRDA:124,12,0,0
8424
- BRDA:124,12,1,5
8425
- BRDA:138,13,0,0
8426
- BRDA:138,13,1,16
8427
- BRDA:138,14,0,16
8428
- BRDA:138,14,1,16
8429
- BRDA:141,15,0,16
8430
- BRDA:141,15,1,15
8431
- BRDA:142,16,0,16
8432
- BRDA:142,16,1,5
8433
- BRDA:144,17,0,2
8434
- BRDA:144,17,1,0
8435
- BRDA:148,18,0,11
8436
- BRDA:148,18,1,5
8437
- BRDA:153,19,0,0
8438
- BRDA:153,19,1,6
8439
- BRDA:181,20,0,0
8440
- BRDA:186,21,0,0
8441
- BRDA:186,21,1,19
8442
- BRDA:189,22,0,0
8443
- BRDA:189,22,1,19
8444
- BRDA:192,23,0,19
8445
- BRDA:192,23,1,0
8446
- BRDA:203,24,0,0
8447
- BRDA:203,24,1,16
8448
- BRDA:204,25,0,16
8449
- BRDA:204,25,1,16
8450
- BRDA:204,25,2,16
8451
- BRDA:210,26,0,0
8452
- BRDA:210,26,1,0
8453
- BRDA:210,26,2,0
8454
- BRF:56
8455
- BRH:39
8343
+ DA:93,14
8344
+ DA:99,1
8345
+ DA:101,1
8346
+ DA:102,1
8347
+ DA:106,13
8348
+ DA:107,0
8349
+ DA:111,13
8350
+ DA:112,11
8351
+ DA:116,13
8352
+ DA:117,0
8353
+ DA:121,13
8354
+ DA:123,13
8355
+ DA:124,0
8356
+ DA:127,13
8357
+ DA:131,5
8358
+ DA:132,5
8359
+ DA:133,5
8360
+ DA:134,5
8361
+ DA:147,6
8362
+ DA:148,6
8363
+ DA:149,6
8364
+ DA:150,6
8365
+ DA:151,6
8366
+ DA:152,5
8367
+ DA:156,5
8368
+ DA:157,5
8369
+ DA:159,1
8370
+ DA:161,6
8371
+ DA:165,14
8372
+ DA:166,14
8373
+ DA:167,0
8374
+ DA:169,14
8375
+ DA:170,14
8376
+ DA:171,14
8377
+ DA:172,2
8378
+ DA:173,2
8379
+ DA:176,14
8380
+ DA:178,9
8381
+ DA:179,9
8382
+ DA:181,6
8383
+ DA:182,0
8384
+ DA:185,6
8385
+ DA:186,6
8386
+ DA:188,9
8387
+ DA:189,9
8388
+ DA:190,9
8389
+ DA:191,6
8390
+ DA:192,6
8391
+ DA:203,6
8392
+ DA:206,14
8393
+ DA:210,12
8394
+ DA:213,12
8395
+ DA:214,19
8396
+ DA:215,0
8397
+ DA:217,19
8398
+ DA:219,0
8399
+ DA:220,19
8400
+ DA:222,19
8401
+ DA:228,0
8402
+ DA:231,12
8403
+ DA:236,0
8404
+ DA:237,0
8405
+ DA:245,0
8406
+ DA:247,12
8407
+ DA:251,2
8408
+ DA:252,10
8409
+ DA:253,10
8410
+ DA:254,10
8411
+ DA:256,8
8412
+ DA:259,2
8413
+ LF:124
8414
+ LH:101
8415
+ BRDA:13,0,0,10
8416
+ BRDA:32,1,0,2
8417
+ BRDA:32,1,1,0
8418
+ BRDA:51,2,0,2
8419
+ BRDA:51,2,1,14
8420
+ BRDA:60,3,0,2
8421
+ BRDA:60,3,1,12
8422
+ BRDA:67,4,0,0
8423
+ BRDA:67,4,1,14
8424
+ BRDA:76,5,0,12
8425
+ BRDA:76,5,1,2
8426
+ BRDA:84,6,0,0
8427
+ BRDA:84,6,1,14
8428
+ BRDA:93,7,0,1
8429
+ BRDA:93,7,1,13
8430
+ BRDA:94,8,0,14
8431
+ BRDA:94,8,1,12
8432
+ BRDA:94,8,2,1
8433
+ BRDA:94,8,3,1
8434
+ BRDA:106,9,0,0
8435
+ BRDA:106,9,1,13
8436
+ BRDA:111,10,0,11
8437
+ BRDA:111,10,1,2
8438
+ BRDA:116,11,0,0
8439
+ BRDA:116,11,1,13
8440
+ BRDA:123,12,0,0
8441
+ BRDA:123,12,1,13
8442
+ BRDA:151,13,0,5
8443
+ BRDA:151,13,1,1
8444
+ BRDA:152,14,0,0
8445
+ BRDA:152,14,1,5
8446
+ BRDA:166,15,0,0
8447
+ BRDA:166,15,1,14
8448
+ BRDA:166,16,0,14
8449
+ BRDA:166,16,1,14
8450
+ BRDA:169,17,0,14
8451
+ BRDA:169,17,1,13
8452
+ BRDA:170,18,0,14
8453
+ BRDA:170,18,1,3
8454
+ BRDA:172,19,0,2
8455
+ BRDA:172,19,1,0
8456
+ BRDA:176,20,0,9
8457
+ BRDA:176,20,1,5
8458
+ BRDA:181,21,0,0
8459
+ BRDA:181,21,1,6
8460
+ BRDA:209,22,0,0
8461
+ BRDA:210,23,0,0
8462
+ BRDA:210,23,1,12
8463
+ BRDA:214,24,0,0
8464
+ BRDA:214,24,1,19
8465
+ BRDA:217,25,0,0
8466
+ BRDA:217,25,1,19
8467
+ BRDA:220,26,0,19
8468
+ BRDA:220,26,1,0
8469
+ BRDA:231,27,0,0
8470
+ BRDA:231,27,1,12
8471
+ BRDA:232,28,0,12
8472
+ BRDA:232,28,1,12
8473
+ BRDA:232,28,2,12
8474
+ BRDA:238,29,0,0
8475
+ BRDA:238,29,1,0
8476
+ BRDA:238,29,2,0
8477
+ BRF:62
8478
+ BRH:43
8456
8479
  end_of_record
8457
8480
  TN:
8458
8481
  SF:src/threads/utils.js
@@ -97,6 +97,9 @@ var GoogleSheetsModule;
97
97
  const spreadsheetId = this.cleanSpreadsheetUrl(this.config.spreadsheetId);
98
98
  this.client = new google_spreadsheet_1.GoogleSpreadsheet(spreadsheetId);
99
99
  }
100
+ getBindingIdentifier() {
101
+ return "";
102
+ }
100
103
  /**
101
104
  * Pull the spreadsheet ID out from a valid google sheets URL
102
105
  * @param spreadsheetId - the URL or standard spreadsheetId of the google sheet
@@ -63,32 +63,10 @@ var MSSQLModule;
63
63
  },
64
64
  },
65
65
  };
66
- function internalQuery(client, query, operation = undefined) {
67
- return __awaiter(this, void 0, void 0, function* () {
68
- const request = client.request();
69
- try {
70
- if (Array.isArray(query.bindings)) {
71
- let count = 0;
72
- for (let binding of query.bindings) {
73
- request.input(`p${count++}`, binding);
74
- }
75
- }
76
- // this is a hack to get the inserted ID back,
77
- // no way to do this with Knex nicely
78
- const sql = operation === datasource_1.Operation.CREATE
79
- ? `${query.sql}; SELECT SCOPE_IDENTITY() AS id;`
80
- : query.sql;
81
- return yield request.query(sql);
82
- }
83
- catch (err) {
84
- // @ts-ignore
85
- throw new Error(err);
86
- }
87
- });
88
- }
89
66
  class SqlServerIntegration extends Sql {
90
67
  constructor(config) {
91
68
  super(utils_1.SqlClients.MS_SQL);
69
+ this.index = 0;
92
70
  this.tables = {};
93
71
  this.schemaErrors = {};
94
72
  this.MASTER_TABLES = [
@@ -109,6 +87,31 @@ var MSSQLModule;
109
87
  this.pool = new sqlServer.ConnectionPool(clientCfg);
110
88
  }
111
89
  }
90
+ internalQuery(query, operation = undefined) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ const client = this.client;
93
+ const request = client.request();
94
+ this.index = 0;
95
+ try {
96
+ if (Array.isArray(query.bindings)) {
97
+ let count = 0;
98
+ for (let binding of query.bindings) {
99
+ request.input(`p${count++}`, binding);
100
+ }
101
+ }
102
+ // this is a hack to get the inserted ID back,
103
+ // no way to do this with Knex nicely
104
+ const sql = operation === datasource_1.Operation.CREATE
105
+ ? `${query.sql}; SELECT SCOPE_IDENTITY() AS id;`
106
+ : query.sql;
107
+ return yield request.query(sql);
108
+ }
109
+ catch (err) {
110
+ // @ts-ignore
111
+ throw new Error(err);
112
+ }
113
+ });
114
+ }
112
115
  getDefinitionSQL(tableName) {
113
116
  return `select *
114
117
  from INFORMATION_SCHEMA.COLUMNS
@@ -134,6 +137,9 @@ var MSSQLModule;
134
137
  FROM INFORMATION_SCHEMA.COLUMNS
135
138
  WHERE TABLE_NAME='${tableName}'`;
136
139
  }
140
+ getBindingIdentifier() {
141
+ return `(@p${this.index++})`;
142
+ }
137
143
  connect() {
138
144
  return __awaiter(this, void 0, void 0, function* () {
139
145
  try {
@@ -147,7 +153,7 @@ var MSSQLModule;
147
153
  }
148
154
  runSQL(sql) {
149
155
  return __awaiter(this, void 0, void 0, function* () {
150
- return (yield internalQuery(this.client, utils_1.getSqlQuery(sql))).recordset;
156
+ return (yield this.internalQuery(utils_1.getSqlQuery(sql))).recordset;
151
157
  });
152
158
  }
153
159
  /**
@@ -207,28 +213,28 @@ var MSSQLModule;
207
213
  read(query) {
208
214
  return __awaiter(this, void 0, void 0, function* () {
209
215
  yield this.connect();
210
- const response = yield internalQuery(this.client, utils_1.getSqlQuery(query));
216
+ const response = yield this.internalQuery(utils_1.getSqlQuery(query));
211
217
  return response.recordset;
212
218
  });
213
219
  }
214
220
  create(query) {
215
221
  return __awaiter(this, void 0, void 0, function* () {
216
222
  yield this.connect();
217
- const response = yield internalQuery(this.client, utils_1.getSqlQuery(query));
223
+ const response = yield this.internalQuery(utils_1.getSqlQuery(query));
218
224
  return response.recordset || [{ created: true }];
219
225
  });
220
226
  }
221
227
  update(query) {
222
228
  return __awaiter(this, void 0, void 0, function* () {
223
229
  yield this.connect();
224
- const response = yield internalQuery(this.client, utils_1.getSqlQuery(query));
230
+ const response = yield this.internalQuery(utils_1.getSqlQuery(query));
225
231
  return response.recordset || [{ updated: true }];
226
232
  });
227
233
  }
228
234
  delete(query) {
229
235
  return __awaiter(this, void 0, void 0, function* () {
230
236
  yield this.connect();
231
- const response = yield internalQuery(this.client, utils_1.getSqlQuery(query));
237
+ const response = yield this.internalQuery(utils_1.getSqlQuery(query));
232
238
  return response.recordset || [{ deleted: true }];
233
239
  });
234
240
  }
@@ -236,7 +242,7 @@ var MSSQLModule;
236
242
  return __awaiter(this, void 0, void 0, function* () {
237
243
  yield this.connect();
238
244
  const operation = this._operation(json);
239
- const queryFn = (query, op) => internalQuery(this.client, query, op);
245
+ const queryFn = (query, op) => this.internalQuery(query, op);
240
246
  const processFn = (result) => result.recordset ? result.recordset : [{ [operation]: true }];
241
247
  return this.queryWithReturning(json, queryFn, processFn);
242
248
  });
@@ -65,25 +65,6 @@ var MySQLModule;
65
65
  },
66
66
  },
67
67
  };
68
- function internalQuery(client, query, connect = true) {
69
- // Node MySQL is callback based, so we must wrap our call in a promise
70
- return new Promise((resolve, reject) => {
71
- if (connect) {
72
- client.connect();
73
- }
74
- return client.query(query.sql, query.bindings || {}, (error, results) => {
75
- if (error) {
76
- reject(error);
77
- }
78
- else {
79
- resolve(results);
80
- }
81
- if (connect) {
82
- client.end();
83
- }
84
- });
85
- });
86
- }
87
68
  class MySQLIntegration extends Sql {
88
69
  constructor(config) {
89
70
  super(utils_1.SqlClients.MY_SQL);
@@ -95,19 +76,42 @@ var MySQLModule;
95
76
  }
96
77
  this.client = mysql.createConnection(config);
97
78
  }
79
+ getBindingIdentifier() {
80
+ return "?";
81
+ }
82
+ internalQuery(query, connect = true) {
83
+ const client = this.client;
84
+ // Node MySQL is callback based, so we must wrap our call in a promise
85
+ return new Promise((resolve, reject) => {
86
+ if (connect) {
87
+ client.connect();
88
+ }
89
+ return client.query(query.sql, query.bindings || {}, (error, results) => {
90
+ if (error) {
91
+ reject(error);
92
+ }
93
+ else {
94
+ resolve(results);
95
+ }
96
+ if (connect) {
97
+ client.end();
98
+ }
99
+ });
100
+ });
101
+ }
98
102
  buildSchema(datasourceId, entities) {
99
103
  return __awaiter(this, void 0, void 0, function* () {
100
104
  const tables = {};
101
105
  const database = this.config.database;
102
106
  this.client.connect();
103
107
  // get the tables first
104
- const tablesResp = yield internalQuery(this.client, { sql: "SHOW TABLES;" }, false);
108
+ const tablesResp = yield this.internalQuery({ sql: "SHOW TABLES;" }, false);
105
109
  const tableNames = tablesResp.map((obj) => obj[`Tables_in_${database}`] ||
106
110
  obj[`Tables_in_${database.toLowerCase()}`]);
107
111
  for (let tableName of tableNames) {
108
112
  const primaryKeys = [];
109
113
  const schema = {};
110
- const descResp = yield internalQuery(this.client, { sql: `DESCRIBE \`${tableName}\`;` }, false);
114
+ const descResp = yield this.internalQuery({ sql: `DESCRIBE \`${tableName}\`;` }, false);
111
115
  for (let column of descResp) {
112
116
  const columnName = column.Field;
113
117
  if (column.Key === "PRI" && primaryKeys.indexOf(column.Key) === -1) {
@@ -143,31 +147,31 @@ var MySQLModule;
143
147
  }
144
148
  create(query) {
145
149
  return __awaiter(this, void 0, void 0, function* () {
146
- const results = yield internalQuery(this.client, utils_1.getSqlQuery(query));
150
+ const results = yield this.internalQuery(utils_1.getSqlQuery(query));
147
151
  return results.length ? results : [{ created: true }];
148
152
  });
149
153
  }
150
154
  read(query) {
151
155
  return __awaiter(this, void 0, void 0, function* () {
152
- return internalQuery(this.client, utils_1.getSqlQuery(query));
156
+ return this.internalQuery(utils_1.getSqlQuery(query));
153
157
  });
154
158
  }
155
159
  update(query) {
156
160
  return __awaiter(this, void 0, void 0, function* () {
157
- const results = yield internalQuery(this.client, utils_1.getSqlQuery(query));
161
+ const results = yield this.internalQuery(utils_1.getSqlQuery(query));
158
162
  return results.length ? results : [{ updated: true }];
159
163
  });
160
164
  }
161
165
  delete(query) {
162
166
  return __awaiter(this, void 0, void 0, function* () {
163
- const results = yield internalQuery(this.client, utils_1.getSqlQuery(query));
167
+ const results = yield this.internalQuery(utils_1.getSqlQuery(query));
164
168
  return results.length ? results : [{ deleted: true }];
165
169
  });
166
170
  }
167
171
  query(json) {
168
172
  return __awaiter(this, void 0, void 0, function* () {
169
173
  this.client.connect();
170
- const queryFn = (query) => internalQuery(this.client, query, false);
174
+ const queryFn = (query) => this.internalQuery(query, false);
171
175
  const output = yield this.queryWithReturning(json, queryFn);
172
176
  this.client.end();
173
177
  return output;