@budibase/server 1.0.206 → 1.0.207-alpha.2

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 (182) hide show
  1. package/builder/assets/index.c6df2367.css +6 -0
  2. package/builder/assets/index.ec376520.js +1313 -0
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +123 -121
  5. package/coverage/coverage-final.json +5 -5
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/backup.js.html +9 -6
  10. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/index.html +7 -7
  15. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/external.js.html +8 -23
  25. package/coverage/lcov-report/api/controllers/row/index.html +16 -16
  26. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/utils.js.html +17 -8
  30. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  44. package/coverage/lcov-report/api/index.html +1 -1
  45. package/coverage/lcov-report/api/index.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/index.html +1 -1
  57. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  71. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  74. package/coverage/lcov-report/automations/actions.js.html +1 -1
  75. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  76. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  77. package/coverage/lcov-report/automations/index.html +5 -5
  78. package/coverage/lcov-report/automations/index.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/index.html +1 -1
  86. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  96. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  97. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggers.js.html +4 -4
  105. package/coverage/lcov-report/constants/index.html +1 -1
  106. package/coverage/lcov-report/constants/index.js.html +1 -1
  107. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  108. package/coverage/lcov-report/constants/screens.js.html +1 -1
  109. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  110. package/coverage/lcov-report/db/index.html +10 -10
  111. package/coverage/lcov-report/db/index.js.html +1 -1
  112. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  113. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  114. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  115. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  116. package/coverage/lcov-report/db/newid.js.html +1 -1
  117. package/coverage/lcov-report/db/utils.js.html +9 -6
  118. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  119. package/coverage/lcov-report/events/index.html +1 -1
  120. package/coverage/lcov-report/events/index.js.html +1 -1
  121. package/coverage/lcov-report/events/utils.js.html +1 -1
  122. package/coverage/lcov-report/index.html +22 -22
  123. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  124. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  125. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  126. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  127. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  128. package/coverage/lcov-report/middleware/index.html +1 -1
  129. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  130. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  131. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  132. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  133. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  134. package/coverage/lcov-report/threads/automation.js.html +1 -1
  135. package/coverage/lcov-report/threads/index.html +1 -1
  136. package/coverage/lcov-report/threads/query.js.html +1 -1
  137. package/coverage/lcov-report/threads/utils.js.html +1 -1
  138. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  139. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  140. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  141. package/coverage/lcov-report/utilities/global.js.html +1 -1
  142. package/coverage/lcov-report/utilities/index.html +1 -1
  143. package/coverage/lcov-report/utilities/index.js.html +1 -1
  144. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  145. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  146. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  147. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  148. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  149. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  150. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  151. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  152. package/coverage/lcov-report/utilities/security.js.html +1 -1
  153. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  154. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  155. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  156. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  157. package/coverage/lcov-report/utilities/users.js.html +1 -1
  158. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  159. package/coverage/lcov.info +221 -215
  160. package/dist/api/controllers/backup.js +3 -2
  161. package/dist/api/controllers/row/external.js +2 -4
  162. package/dist/api/controllers/row/utils.js +3 -0
  163. package/dist/automations/triggers.js +1 -1
  164. package/dist/db/utils.js +1 -0
  165. package/dist/definitions/datasource.js +1 -0
  166. package/dist/integrations/index.js +4 -0
  167. package/dist/integrations/snowflake.js +101 -0
  168. package/dist/package.json +7 -6
  169. package/dist/tsconfig.build.tsbuildinfo +1 -1
  170. package/dist/utilities/fileSystem/index.js +16 -6
  171. package/package.json +8 -7
  172. package/src/api/controllers/backup.js +3 -2
  173. package/src/api/controllers/row/external.js +2 -7
  174. package/src/api/controllers/row/utils.js +3 -0
  175. package/src/automations/triggers.js +1 -1
  176. package/src/db/utils.js +1 -0
  177. package/src/definitions/datasource.ts +1 -0
  178. package/src/integrations/index.ts +4 -0
  179. package/src/integrations/snowflake.ts +98 -0
  180. package/src/utilities/fileSystem/index.js +22 -8
  181. package/builder/assets/index.24307ca0.css +0 -6
  182. package/builder/assets/index.9dd8f7d4.js +0 -1315
@@ -10,10 +10,10 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/builder/assets/index.9dd8f7d4.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.ec376520.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.9bf2fcb4.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
- <link rel="stylesheet" href="/builder/assets/index.24307ca0.css">
16
+ <link rel="stylesheet" href="/builder/assets/index.c6df2367.css">
17
17
  </head>
18
18
  <body id="app">
19
19
 
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1655388171002" clover="3.2.0">
3
- <project timestamp="1655388171002" name="All files">
4
- <metrics statements="4281" coveredstatements="3126" conditionals="1775" coveredconditionals="950" methods="623" coveredmethods="446" elements="6679" coveredelements="4522" complexity="0" loc="4281" ncloc="4281" packages="23" files="129" classes="129"/>
2
+ <coverage generated="1655726938255" clover="3.2.0">
3
+ <project timestamp="1655726938255" name="All files">
4
+ <metrics statements="4283" coveredstatements="3128" conditionals="1779" coveredconditionals="951" methods="623" coveredmethods="446" elements="6685" coveredelements="4525" complexity="0" loc="4283" ncloc="4283" packages="23" files="129" classes="129"/>
5
5
  <package name="api">
6
6
  <metrics statements="34" coveredstatements="34" conditionals="3" coveredconditionals="1" methods="4" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -43,7 +43,7 @@
43
43
  </file>
44
44
  </package>
45
45
  <package name="api.controllers">
46
- <metrics statements="949" coveredstatements="693" conditionals="282" coveredconditionals="136" methods="136" coveredmethods="94"/>
46
+ <metrics statements="950" coveredstatements="694" conditionals="282" coveredconditionals="136" methods="136" coveredmethods="94"/>
47
47
  <file name="apikeys.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/apikeys.js">
48
48
  <metrics statements="24" coveredstatements="24" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="4"/>
49
49
  <line num="1" count="27" type="stmt"/>
@@ -221,7 +221,7 @@
221
221
  <line num="251" count="2" type="stmt"/>
222
222
  </file>
223
223
  <file name="backup.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/backup.js">
224
- <metrics statements="13" coveredstatements="13" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
224
+ <metrics statements="14" coveredstatements="14" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
225
225
  <line num="1" count="27" type="stmt"/>
226
226
  <line num="2" count="27" type="stmt"/>
227
227
  <line num="3" count="27" type="stmt"/>
@@ -231,10 +231,11 @@
231
231
  <line num="8" count="1" type="stmt"/>
232
232
  <line num="9" count="1" type="stmt"/>
233
233
  <line num="10" count="1" type="stmt"/>
234
- <line num="12" count="1" type="stmt"/>
234
+ <line num="11" count="1" type="stmt"/>
235
235
  <line num="13" count="1" type="stmt"/>
236
236
  <line num="14" count="1" type="stmt"/>
237
237
  <line num="15" count="1" type="stmt"/>
238
+ <line num="16" count="1" type="stmt"/>
238
239
  </file>
239
240
  <file name="cloud.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/cloud.js">
240
241
  <metrics statements="54" coveredstatements="10" conditionals="23" coveredconditionals="0" methods="8" coveredmethods="0"/>
@@ -1070,9 +1071,9 @@
1070
1071
  </file>
1071
1072
  </package>
1072
1073
  <package name="api.controllers.row">
1073
- <metrics statements="590" coveredstatements="342" conditionals="268" coveredconditionals="96" methods="86" coveredmethods="46"/>
1074
+ <metrics statements="590" coveredstatements="342" conditionals="270" coveredconditionals="96" methods="86" coveredmethods="46"/>
1074
1075
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1075
- <metrics statements="110" coveredstatements="18" conditionals="46" coveredconditionals="0" methods="15" coveredmethods="0"/>
1076
+ <metrics statements="108" coveredstatements="18" conditionals="46" coveredconditionals="0" methods="15" coveredmethods="0"/>
1076
1077
  <line num="6" count="44" type="stmt"/>
1077
1078
  <line num="10" count="44" type="stmt"/>
1078
1079
  <line num="11" count="44" type="stmt"/>
@@ -1153,36 +1154,34 @@
1153
1154
  <line num="162" count="0" type="cond" truecount="0" falsecount="4"/>
1154
1155
  <line num="163" count="0" type="stmt"/>
1155
1156
  <line num="165" count="0" type="stmt"/>
1156
- <line num="166" count="0" type="stmt"/>
1157
- <line num="167" count="0" type="stmt"/>
1158
- <line num="171" count="0" type="stmt"/>
1159
- <line num="177" count="0" type="stmt"/>
1157
+ <line num="168" count="0" type="stmt"/>
1158
+ <line num="173" count="0" type="stmt"/>
1159
+ <line num="174" count="0" type="stmt"/>
1160
+ <line num="175" count="0" type="stmt"/>
1161
+ <line num="176" count="0" type="stmt"/>
1160
1162
  <line num="179" count="0" type="stmt"/>
1161
1163
  <line num="180" count="0" type="stmt"/>
1162
- <line num="181" count="0" type="stmt"/>
1164
+ <line num="183" count="44" type="stmt"/>
1163
1165
  <line num="184" count="0" type="stmt"/>
1164
1166
  <line num="185" count="0" type="stmt"/>
1165
- <line num="188" count="44" type="stmt"/>
1166
- <line num="189" count="0" type="stmt"/>
1167
+ <line num="186" count="0" type="stmt"/>
1168
+ <line num="187" count="0" type="stmt"/>
1169
+ <line num="188" count="0" type="stmt"/>
1170
+ <line num="189" count="0" type="cond" truecount="0" falsecount="4"/>
1167
1171
  <line num="190" count="0" type="stmt"/>
1168
- <line num="191" count="0" type="stmt"/>
1169
1172
  <line num="192" count="0" type="stmt"/>
1170
1173
  <line num="193" count="0" type="stmt"/>
1171
- <line num="194" count="0" type="cond" truecount="0" falsecount="4"/>
1172
- <line num="195" count="0" type="stmt"/>
1173
1174
  <line num="197" count="0" type="stmt"/>
1174
1175
  <line num="198" count="0" type="stmt"/>
1175
- <line num="202" count="0" type="stmt"/>
1176
- <line num="203" count="0" type="stmt"/>
1177
- <line num="206" count="0" type="stmt"/>
1178
- <line num="207" count="0" type="cond" truecount="0" falsecount="2"/>
1179
- <line num="212" count="0" type="stmt"/>
1176
+ <line num="201" count="0" type="stmt"/>
1177
+ <line num="202" count="0" type="cond" truecount="0" falsecount="2"/>
1178
+ <line num="207" count="0" type="stmt"/>
1179
+ <line num="209" count="0" type="stmt"/>
1180
+ <line num="210" count="0" type="stmt"/>
1181
+ <line num="211" count="0" type="stmt"/>
1182
+ <line num="213" count="0" type="stmt"/>
1180
1183
  <line num="214" count="0" type="stmt"/>
1181
- <line num="215" count="0" type="stmt"/>
1182
- <line num="216" count="0" type="stmt"/>
1183
- <line num="218" count="0" type="stmt"/>
1184
- <line num="219" count="0" type="stmt"/>
1185
- <line num="232" count="0" type="stmt"/>
1184
+ <line num="227" count="0" type="stmt"/>
1186
1185
  </file>
1187
1186
  <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internal.js">
1188
1187
  <metrics statements="213" coveredstatements="172" conditionals="64" coveredconditionals="40" methods="26" coveredmethods="22"/>
@@ -1623,7 +1622,7 @@
1623
1622
  <line num="155" count="79" type="stmt"/>
1624
1623
  </file>
1625
1624
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/utils.js">
1626
- <metrics statements="51" coveredstatements="35" conditionals="32" coveredconditionals="13" methods="6" coveredmethods="4"/>
1625
+ <metrics statements="53" coveredstatements="35" conditionals="34" coveredconditionals="13" methods="6" coveredmethods="4"/>
1627
1626
  <line num="1" count="44" type="stmt"/>
1628
1627
  <line num="2" count="44" type="stmt"/>
1629
1628
  <line num="3" count="44" type="stmt"/>
@@ -1663,18 +1662,20 @@
1663
1662
  <line num="60" count="0" type="stmt"/>
1664
1663
  <line num="65" count="224" type="cond" truecount="2" falsecount="2"/>
1665
1664
  <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
1666
- <line num="67" count="0" type="stmt"/>
1667
- <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
1668
- <line num="72" count="0" type="stmt"/>
1669
- <line num="75" count="0" type="cond" truecount="0" falsecount="4"/>
1670
- <line num="77" count="0" type="stmt"/>
1671
- <line num="79" count="224" type="cond" truecount="2" falsecount="2"/>
1672
- <line num="81" count="0" type="stmt"/>
1673
- <line num="82" count="0" type="stmt"/>
1665
+ <line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
1666
+ <line num="68" count="0" type="stmt"/>
1667
+ <line num="70" count="0" type="stmt"/>
1668
+ <line num="71" count="0" type="cond" truecount="0" falsecount="2"/>
1669
+ <line num="75" count="0" type="stmt"/>
1670
+ <line num="78" count="0" type="cond" truecount="0" falsecount="4"/>
1671
+ <line num="80" count="0" type="stmt"/>
1672
+ <line num="82" count="224" type="cond" truecount="2" falsecount="2"/>
1674
1673
  <line num="84" count="0" type="stmt"/>
1675
- <line num="87" count="224" type="stmt"/>
1676
- <line num="89" count="224" type="cond" truecount="2" falsecount="0"/>
1677
- <line num="91" count="83" type="stmt"/>
1674
+ <line num="85" count="0" type="stmt"/>
1675
+ <line num="87" count="0" type="stmt"/>
1676
+ <line num="90" count="224" type="stmt"/>
1677
+ <line num="92" count="224" type="cond" truecount="2" falsecount="0"/>
1678
+ <line num="94" count="83" type="stmt"/>
1678
1679
  </file>
1679
1680
  </package>
1680
1681
  <package name="api.controllers.table">
@@ -2529,7 +2530,7 @@
2529
2530
  </file>
2530
2531
  </package>
2531
2532
  <package name="automations">
2532
- <metrics statements="163" coveredstatements="128" conditionals="64" coveredconditionals="46" methods="21" coveredmethods="13"/>
2533
+ <metrics statements="163" coveredstatements="128" conditionals="66" coveredconditionals="47" methods="21" coveredmethods="13"/>
2533
2534
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
2534
2535
  <metrics statements="24" coveredstatements="24" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
2535
2536
  <line num="1" count="44" type="stmt"/>
@@ -2660,7 +2661,7 @@
2660
2661
  <line num="26" count="43" type="stmt"/>
2661
2662
  </file>
2662
2663
  <file name="triggers.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggers.js">
2663
- <metrics statements="46" coveredstatements="44" conditionals="25" coveredconditionals="21" methods="8" coveredmethods="8"/>
2664
+ <metrics statements="46" coveredstatements="44" conditionals="27" coveredconditionals="22" methods="8" coveredmethods="8"/>
2664
2665
  <line num="1" count="43" type="stmt"/>
2665
2666
  <line num="2" count="43" type="stmt"/>
2666
2667
  <line num="3" count="43" type="stmt"/>
@@ -2699,7 +2700,7 @@
2699
2700
  <line num="90" count="6" type="cond" truecount="2" falsecount="0"/>
2700
2701
  <line num="98" count="1" type="stmt"/>
2701
2702
  <line num="99" count="1" type="stmt"/>
2702
- <line num="100" count="1" type="stmt"/>
2703
+ <line num="100" count="1" type="cond" truecount="1" falsecount="1"/>
2703
2704
  <line num="101" count="1" type="stmt"/>
2704
2705
  <line num="103" count="1" type="stmt"/>
2705
2706
  <line num="105" count="6" type="stmt"/>
@@ -3058,7 +3059,7 @@
3058
3059
  </file>
3059
3060
  </package>
3060
3061
  <package name="db">
3061
- <metrics statements="140" coveredstatements="112" conditionals="58" coveredconditionals="19" methods="36" coveredmethods="27"/>
3062
+ <metrics statements="141" coveredstatements="113" conditionals="58" coveredconditionals="19" methods="36" coveredmethods="27"/>
3062
3063
  <file name="inMemoryView.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/inMemoryView.js">
3063
3064
  <metrics statements="23" coveredstatements="4" conditionals="8" coveredconditionals="0" methods="4" coveredmethods="0"/>
3064
3065
  <line num="1" count="44" type="stmt"/>
@@ -3103,7 +3104,7 @@
3103
3104
  <line num="4" count="923" type="stmt"/>
3104
3105
  </file>
3105
3106
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3106
- <metrics statements="106" coveredstatements="97" conditionals="48" coveredconditionals="18" methods="30" coveredmethods="25"/>
3107
+ <metrics statements="107" coveredstatements="98" conditionals="48" coveredconditionals="18" methods="30" coveredmethods="25"/>
3107
3108
  <line num="1" count="57" type="stmt"/>
3108
3109
  <line num="14" count="57" type="stmt"/>
3109
3110
  <line num="16" count="57" type="stmt"/>
@@ -3130,86 +3131,87 @@
3130
3131
  <line num="84" count="57" type="stmt"/>
3131
3132
  <line num="85" count="57" type="stmt"/>
3132
3133
  <line num="86" count="57" type="stmt"/>
3133
- <line num="88" count="57" type="stmt"/>
3134
+ <line num="87" count="57" type="stmt"/>
3134
3135
  <line num="89" count="57" type="stmt"/>
3135
- <line num="91" count="57" type="stmt"/>
3136
- <line num="92" count="74" type="stmt"/>
3137
- <line num="108" count="1077" type="cond" truecount="2" falsecount="0"/>
3138
- <line num="109" count="1060" type="stmt"/>
3139
- <line num="111" count="1077" type="stmt"/>
3140
- <line num="118" count="57" type="stmt"/>
3141
- <line num="123" count="57" type="cond" truecount="0" falsecount="2"/>
3142
- <line num="124" count="267" type="stmt"/>
3143
- <line num="131" count="57" type="stmt"/>
3144
- <line num="132" count="128" type="stmt"/>
3145
- <line num="143" count="57" type="cond" truecount="0" falsecount="3"/>
3146
- <line num="144" count="41" type="cond" truecount="2" falsecount="0"/>
3147
- <line num="145" count="27" type="stmt"/>
3148
- <line num="148" count="14" type="cond" truecount="1" falsecount="1"/>
3149
- <line num="150" count="14" type="stmt"/>
3150
- <line num="158" count="57" type="stmt"/>
3151
- <line num="159" count="0" type="stmt"/>
3152
- <line num="162" count="0" type="stmt"/>
3153
- <line num="171" count="57" type="cond" truecount="1" falsecount="0"/>
3154
- <line num="172" count="309" type="cond" truecount="2" falsecount="0"/>
3155
- <line num="173" count="309" type="stmt"/>
3156
- <line num="179" count="57" type="cond" truecount="0" falsecount="2"/>
3157
- <line num="180" count="3" type="stmt"/>
3158
- <line num="188" count="57" type="stmt"/>
3159
- <line num="189" count="231" type="stmt"/>
3160
- <line num="195" count="57" type="stmt"/>
3161
- <line num="196" count="3" type="stmt"/>
3162
- <line num="197" count="3" type="cond" truecount="4" falsecount="0"/>
3163
- <line num="198" count="1" type="stmt"/>
3164
- <line num="200" count="2" type="stmt"/>
3165
- <line num="206" count="57" type="cond" truecount="0" falsecount="2"/>
3166
- <line num="207" count="261" type="stmt"/>
3167
- <line num="214" count="57" type="stmt"/>
3168
- <line num="215" count="27" type="stmt"/>
3169
- <line num="229" count="57" type="stmt"/>
3170
- <line num="237" count="9" type="stmt"/>
3136
+ <line num="90" count="57" type="stmt"/>
3137
+ <line num="92" count="57" type="stmt"/>
3138
+ <line num="93" count="74" type="stmt"/>
3139
+ <line num="109" count="1077" type="cond" truecount="2" falsecount="0"/>
3140
+ <line num="110" count="1060" type="stmt"/>
3141
+ <line num="112" count="1077" type="stmt"/>
3142
+ <line num="119" count="57" type="stmt"/>
3143
+ <line num="124" count="57" type="cond" truecount="0" falsecount="2"/>
3144
+ <line num="125" count="267" type="stmt"/>
3145
+ <line num="132" count="57" type="stmt"/>
3146
+ <line num="133" count="128" type="stmt"/>
3147
+ <line num="144" count="57" type="cond" truecount="0" falsecount="3"/>
3148
+ <line num="145" count="41" type="cond" truecount="2" falsecount="0"/>
3149
+ <line num="146" count="27" type="stmt"/>
3150
+ <line num="149" count="14" type="cond" truecount="1" falsecount="1"/>
3151
+ <line num="151" count="14" type="stmt"/>
3152
+ <line num="159" count="57" type="stmt"/>
3153
+ <line num="160" count="0" type="stmt"/>
3154
+ <line num="163" count="0" type="stmt"/>
3155
+ <line num="172" count="57" type="cond" truecount="1" falsecount="0"/>
3156
+ <line num="173" count="309" type="cond" truecount="2" falsecount="0"/>
3157
+ <line num="174" count="309" type="stmt"/>
3158
+ <line num="180" count="57" type="cond" truecount="0" falsecount="2"/>
3159
+ <line num="181" count="3" type="stmt"/>
3160
+ <line num="189" count="57" type="stmt"/>
3161
+ <line num="190" count="231" type="stmt"/>
3162
+ <line num="196" count="57" type="stmt"/>
3163
+ <line num="197" count="3" type="stmt"/>
3164
+ <line num="198" count="3" type="cond" truecount="4" falsecount="0"/>
3165
+ <line num="199" count="1" type="stmt"/>
3166
+ <line num="201" count="2" type="stmt"/>
3167
+ <line num="207" count="57" type="cond" truecount="0" falsecount="2"/>
3168
+ <line num="208" count="261" type="stmt"/>
3169
+ <line num="215" count="57" type="stmt"/>
3170
+ <line num="216" count="27" type="stmt"/>
3171
+ <line num="230" count="57" type="stmt"/>
3171
3172
  <line num="238" count="9" type="stmt"/>
3172
3173
  <line num="239" count="9" type="stmt"/>
3173
3174
  <line num="240" count="9" type="stmt"/>
3174
- <line num="246" count="57" type="cond" truecount="0" falsecount="1"/>
3175
- <line num="247" count="0" type="stmt"/>
3176
- <line num="254" count="57" type="stmt"/>
3177
- <line num="255" count="6" type="cond" truecount="2" falsecount="0"/>
3178
- <line num="261" count="57" type="cond" truecount="0" falsecount="2"/>
3179
- <line num="262" count="247" type="stmt"/>
3180
- <line num="269" count="57" type="stmt"/>
3181
- <line num="270" count="23" type="stmt"/>
3182
- <line num="276" count="57" type="cond" truecount="0" falsecount="2"/>
3183
- <line num="277" count="249" type="stmt"/>
3184
- <line num="284" count="57" type="stmt"/>
3185
- <line num="285" count="10" type="stmt"/>
3186
- <line num="291" count="57" type="cond" truecount="0" falsecount="2"/>
3187
- <line num="292" count="2" type="stmt"/>
3188
- <line num="299" count="57" type="cond" truecount="1" falsecount="1"/>
3189
- <line num="300" count="52" type="stmt"/>
3190
- <line num="308" count="57" type="cond" truecount="0" falsecount="2"/>
3191
- <line num="309" count="5" type="stmt"/>
3192
- <line num="316" count="57" type="stmt"/>
3193
- <line num="317" count="135" type="stmt"/>
3194
- <line num="325" count="57" type="cond" truecount="0" falsecount="2"/>
3195
- <line num="326" count="5" type="cond" truecount="2" falsecount="0"/>
3196
- <line num="327" count="4" type="stmt"/>
3197
- <line num="330" count="1" type="stmt"/>
3198
- <line num="341" count="57" type="stmt"/>
3199
- <line num="342" count="0" type="stmt"/>
3200
- <line num="345" count="57" type="stmt"/>
3201
- <line num="346" count="10" type="stmt"/>
3202
- <line num="349" count="57" type="cond" truecount="0" falsecount="2"/>
3203
- <line num="350" count="0" type="stmt"/>
3204
- <line num="351" count="0" type="cond" truecount="0" falsecount="2"/>
3205
- <line num="352" count="0" type="stmt"/>
3206
- <line num="354" count="0" type="stmt"/>
3207
- <line num="357" count="57" type="stmt"/>
3208
- <line num="358" count="1" type="stmt"/>
3209
- <line num="361" count="57" type="cond" truecount="0" falsecount="1"/>
3210
- <line num="362" count="0" type="stmt"/>
3211
- <line num="368" count="57" type="stmt"/>
3212
- <line num="369" count="60" type="stmt"/>
3175
+ <line num="241" count="9" type="stmt"/>
3176
+ <line num="247" count="57" type="cond" truecount="0" falsecount="1"/>
3177
+ <line num="248" count="0" type="stmt"/>
3178
+ <line num="255" count="57" type="stmt"/>
3179
+ <line num="256" count="6" type="cond" truecount="2" falsecount="0"/>
3180
+ <line num="262" count="57" type="cond" truecount="0" falsecount="2"/>
3181
+ <line num="263" count="247" type="stmt"/>
3182
+ <line num="270" count="57" type="stmt"/>
3183
+ <line num="271" count="23" type="stmt"/>
3184
+ <line num="277" count="57" type="cond" truecount="0" falsecount="2"/>
3185
+ <line num="278" count="249" type="stmt"/>
3186
+ <line num="285" count="57" type="stmt"/>
3187
+ <line num="286" count="10" type="stmt"/>
3188
+ <line num="292" count="57" type="cond" truecount="0" falsecount="2"/>
3189
+ <line num="293" count="2" type="stmt"/>
3190
+ <line num="300" count="57" type="cond" truecount="1" falsecount="1"/>
3191
+ <line num="301" count="52" type="stmt"/>
3192
+ <line num="309" count="57" type="cond" truecount="0" falsecount="2"/>
3193
+ <line num="310" count="5" type="stmt"/>
3194
+ <line num="317" count="57" type="stmt"/>
3195
+ <line num="318" count="135" type="stmt"/>
3196
+ <line num="326" count="57" type="cond" truecount="0" falsecount="2"/>
3197
+ <line num="327" count="5" type="cond" truecount="2" falsecount="0"/>
3198
+ <line num="328" count="4" type="stmt"/>
3199
+ <line num="331" count="1" type="stmt"/>
3200
+ <line num="342" count="57" type="stmt"/>
3201
+ <line num="343" count="0" type="stmt"/>
3202
+ <line num="346" count="57" type="stmt"/>
3203
+ <line num="347" count="10" type="stmt"/>
3204
+ <line num="350" count="57" type="cond" truecount="0" falsecount="2"/>
3205
+ <line num="351" count="0" type="stmt"/>
3206
+ <line num="352" count="0" type="cond" truecount="0" falsecount="2"/>
3207
+ <line num="353" count="0" type="stmt"/>
3208
+ <line num="355" count="0" type="stmt"/>
3209
+ <line num="358" count="57" type="stmt"/>
3210
+ <line num="359" count="1" type="stmt"/>
3211
+ <line num="362" count="57" type="cond" truecount="0" falsecount="1"/>
3212
+ <line num="363" count="0" type="stmt"/>
3213
+ <line num="369" count="57" type="stmt"/>
3214
+ <line num="370" count="60" type="stmt"/>
3213
3215
  </file>
3214
3216
  </package>
3215
3217
  <package name="db.linkedRows">