@budibase/server 1.0.27-alpha.10 → 1.0.27-alpha.11

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 (176) hide show
  1. package/builder/assets/{index.39751e34.js → index.b98dd7ca.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +440 -424
  4. package/coverage/coverage-final.json +20 -20
  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 +57 -57
  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 +138 -36
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +19 -19
  17. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/metadata.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 +21 -21
  22. package/coverage/lcov-report/api/controllers/query/index.js.html +45 -45
  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/utils.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  47. package/coverage/lcov-report/api/index.html +1 -1
  48. package/coverage/lcov-report/api/index.js.html +5 -5
  49. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/index.html +1 -1
  62. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  79. package/coverage/lcov-report/automations/actions.js.html +1 -1
  80. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  81. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  82. package/coverage/lcov-report/automations/index.html +1 -1
  83. package/coverage/lcov-report/automations/index.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/index.html +1 -1
  93. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  111. package/coverage/lcov-report/automations/utils.js.html +5 -5
  112. package/coverage/lcov-report/constants/index.html +1 -1
  113. package/coverage/lcov-report/constants/index.js.html +1 -1
  114. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  115. package/coverage/lcov-report/constants/screens.js.html +1 -1
  116. package/coverage/lcov-report/db/client.js.html +1 -1
  117. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  118. package/coverage/lcov-report/db/index.html +1 -1
  119. package/coverage/lcov-report/db/index.js.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  124. package/coverage/lcov-report/db/newid.js.html +2 -2
  125. package/coverage/lcov-report/db/utils.js.html +18 -18
  126. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  127. package/coverage/lcov-report/events/index.html +1 -1
  128. package/coverage/lcov-report/events/index.js.html +1 -1
  129. package/coverage/lcov-report/events/utils.js.html +1 -1
  130. package/coverage/lcov-report/index.html +28 -28
  131. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  132. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  133. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  134. package/coverage/lcov-report/middleware/authorized.js.html +9 -9
  135. package/coverage/lcov-report/middleware/builder.js.html +8 -8
  136. package/coverage/lcov-report/middleware/currentapp.js.html +28 -28
  137. package/coverage/lcov-report/middleware/index.html +1 -1
  138. package/coverage/lcov-report/middleware/joi-validator.js.html +9 -9
  139. package/coverage/lcov-report/middleware/resourceId.js.html +7 -7
  140. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  141. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  142. package/coverage/lcov-report/middleware/utils.js.html +2 -2
  143. package/coverage/lcov-report/threads/automation.js.html +1 -1
  144. package/coverage/lcov-report/threads/index.html +1 -1
  145. package/coverage/lcov-report/threads/index.js.html +12 -12
  146. package/coverage/lcov-report/threads/query.js.html +75 -75
  147. package/coverage/lcov-report/threads/utils.js.html +29 -29
  148. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  149. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  150. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  151. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  152. package/coverage/lcov-report/utilities/global.js.html +12 -12
  153. package/coverage/lcov-report/utilities/index.html +1 -1
  154. package/coverage/lcov-report/utilities/index.js.html +10 -10
  155. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  156. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  157. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  158. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  159. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  160. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  161. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  162. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  163. package/coverage/lcov-report/utilities/security.js.html +1 -1
  164. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  165. package/coverage/lcov-report/utilities/users.js.html +1 -1
  166. package/coverage/lcov-report/utilities/workerRequests.js.html +19 -19
  167. package/coverage/lcov.info +724 -693
  168. package/dist/api/controllers/datasource.js +29 -0
  169. package/dist/package.json +4 -4
  170. package/dist/tests/utilities/TestConfiguration.js +40 -0
  171. package/dist/tsconfig.tsbuildinfo +1 -1
  172. package/package.json +5 -5
  173. package/src/api/controllers/datasource.js +34 -0
  174. package/src/api/routes/tests/datasource.spec.js +45 -0
  175. package/src/api/routes/tests/query.spec.js +24 -43
  176. package/src/tests/utilities/TestConfiguration.js +47 -0
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1641908976909" clover="3.2.0">
3
- <project timestamp="1641908976909" name="All files">
4
- <metrics statements="4614" coveredstatements="3405" conditionals="1843" coveredconditionals="1006" methods="658" coveredmethods="461" elements="7115" coveredelements="4872" complexity="0" loc="4614" ncloc="4614" packages="21" files="140" classes="140"/>
2
+ <coverage generated="1641911475198" clover="3.2.0">
3
+ <project timestamp="1641911475198" name="All files">
4
+ <metrics statements="4630" coveredstatements="3425" conditionals="1852" coveredconditionals="1011" methods="661" coveredmethods="465" elements="7143" coveredelements="4901" complexity="0" loc="4630" ncloc="4630" packages="21" files="140" classes="140"/>
5
5
  <package name="api">
6
6
  <metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -16,13 +16,13 @@
16
16
  <line num="13" count="23" type="stmt"/>
17
17
  <line num="15" count="23" type="stmt"/>
18
18
  <line num="17" count="23" type="stmt"/>
19
- <line num="31" count="162" type="stmt"/>
20
- <line num="35" count="162" type="stmt"/>
19
+ <line num="31" count="167" type="stmt"/>
20
+ <line num="35" count="167" type="stmt"/>
21
21
  <line num="37" count="1" type="stmt"/>
22
22
  <line num="38" count="1" type="stmt"/>
23
23
  <line num="60" count="23" type="stmt"/>
24
- <line num="61" count="158" type="stmt"/>
25
- <line num="62" count="158" type="stmt"/>
24
+ <line num="61" count="163" type="stmt"/>
25
+ <line num="62" count="163" type="stmt"/>
26
26
  <line num="64" count="37" type="cond" truecount="1" falsecount="2"/>
27
27
  <line num="65" count="37" type="stmt"/>
28
28
  <line num="70" count="37" type="cond" truecount="1" falsecount="1"/>
@@ -38,7 +38,7 @@
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1064" coveredstatements="755" conditionals="348" coveredconditionals="161" methods="146" coveredmethods="101"/>
41
+ <metrics statements="1080" coveredstatements="769" conditionals="357" coveredconditionals="165" methods="149" coveredmethods="103"/>
42
42
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
43
43
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
44
44
  <line num="1" count="23" type="stmt"/>
@@ -105,40 +105,40 @@
105
105
  <line num="46" count="33" type="stmt"/>
106
106
  <line num="47" count="33" type="stmt"/>
107
107
  <line num="49" count="33" type="stmt"/>
108
- <line num="53" count="192" type="stmt"/>
109
- <line num="59" count="384" type="stmt"/>
110
- <line num="63" count="192" type="stmt"/>
108
+ <line num="53" count="195" type="stmt"/>
109
+ <line num="59" count="390" type="stmt"/>
110
+ <line num="63" count="195" type="stmt"/>
111
111
  <line num="69" count="12" type="stmt"/>
112
- <line num="73" count="190" type="cond" truecount="4" falsecount="0"/>
113
- <line num="80" count="187" type="cond" truecount="1" falsecount="1"/>
112
+ <line num="73" count="193" type="cond" truecount="4" falsecount="0"/>
113
+ <line num="80" count="190" type="cond" truecount="1" falsecount="1"/>
114
114
  <line num="81" count="0" type="stmt"/>
115
- <line num="82" count="187" type="cond" truecount="2" falsecount="0"/>
116
- <line num="83" count="184" type="stmt"/>
117
- <line num="85" count="187" type="cond" truecount="2" falsecount="0"/>
118
- <line num="86" count="184" type="stmt"/>
119
- <line num="88" count="187" type="cond" truecount="2" falsecount="0"/>
120
- <line num="89" count="14" type="stmt"/>
121
- <line num="91" count="173" type="stmt"/>
122
- <line num="92" count="173" type="cond" truecount="1" falsecount="1"/>
115
+ <line num="82" count="190" type="cond" truecount="2" falsecount="0"/>
116
+ <line num="83" count="187" type="stmt"/>
117
+ <line num="85" count="190" type="cond" truecount="2" falsecount="0"/>
118
+ <line num="86" count="187" type="stmt"/>
119
+ <line num="88" count="190" type="cond" truecount="2" falsecount="0"/>
120
+ <line num="89" count="15" type="stmt"/>
121
+ <line num="91" count="175" type="stmt"/>
122
+ <line num="92" count="175" type="cond" truecount="1" falsecount="1"/>
123
123
  <line num="98" count="0" type="stmt"/>
124
- <line num="100" count="173" type="stmt"/>
125
- <line num="104" count="182" type="cond" truecount="1" falsecount="1"/>
126
- <line num="105" count="182" type="stmt"/>
127
- <line num="106" count="182" type="stmt"/>
128
- <line num="108" count="182" type="stmt"/>
129
- <line num="109" count="182" type="stmt"/>
130
- <line num="118" count="182" type="stmt"/>
131
- <line num="119" count="182" type="stmt"/>
132
- <line num="120" count="182" type="stmt"/>
133
- <line num="124" count="182" type="cond" truecount="3" falsecount="1"/>
124
+ <line num="100" count="175" type="stmt"/>
125
+ <line num="104" count="185" type="cond" truecount="1" falsecount="1"/>
126
+ <line num="105" count="185" type="stmt"/>
127
+ <line num="106" count="185" type="stmt"/>
128
+ <line num="108" count="185" type="stmt"/>
129
+ <line num="109" count="185" type="stmt"/>
130
+ <line num="118" count="185" type="stmt"/>
131
+ <line num="119" count="185" type="stmt"/>
132
+ <line num="120" count="185" type="stmt"/>
133
+ <line num="124" count="185" type="cond" truecount="3" falsecount="1"/>
134
134
  <line num="125" count="0" type="stmt"/>
135
135
  <line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
136
136
  <line num="127" count="0" type="stmt"/>
137
- <line num="129" count="182" type="cond" truecount="3" falsecount="1"/>
137
+ <line num="129" count="185" type="cond" truecount="3" falsecount="1"/>
138
138
  <line num="132" count="0" type="cond" truecount="0" falsecount="2"/>
139
139
  <line num="133" count="0" type="stmt"/>
140
- <line num="137" count="182" type="stmt"/>
141
- <line num="140" count="182" type="stmt"/>
140
+ <line num="137" count="185" type="stmt"/>
141
+ <line num="140" count="185" type="stmt"/>
142
142
  <line num="143" count="33" type="stmt"/>
143
143
  <line num="144" count="10" type="cond" truecount="2" falsecount="0"/>
144
144
  <line num="145" count="10" type="cond" truecount="2" falsecount="0"/>
@@ -161,35 +161,35 @@
161
161
  <line num="173" count="1" type="stmt"/>
162
162
  <line num="177" count="1" type="stmt"/>
163
163
  <line num="184" count="33" type="stmt"/>
164
- <line num="185" count="191" type="stmt"/>
165
- <line num="186" count="191" type="stmt"/>
166
- <line num="187" count="191" type="stmt"/>
167
- <line num="188" count="191" type="stmt"/>
168
- <line num="191" count="191" type="cond" truecount="4" falsecount="0"/>
169
- <line num="192" count="189" type="stmt"/>
170
- <line num="193" count="189" type="stmt"/>
171
- <line num="194" count="189" type="stmt"/>
172
- <line num="197" count="191" type="stmt"/>
164
+ <line num="185" count="194" type="stmt"/>
165
+ <line num="186" count="194" type="stmt"/>
166
+ <line num="187" count="194" type="stmt"/>
167
+ <line num="188" count="194" type="stmt"/>
168
+ <line num="191" count="194" type="cond" truecount="4" falsecount="0"/>
169
+ <line num="192" count="192" type="stmt"/>
170
+ <line num="193" count="192" type="stmt"/>
171
+ <line num="194" count="192" type="stmt"/>
172
+ <line num="197" count="194" type="stmt"/>
173
173
  <line num="205" count="33" type="stmt"/>
174
- <line num="206" count="182" type="stmt"/>
175
- <line num="207" count="182" type="stmt"/>
176
- <line num="212" count="182" type="cond" truecount="2" falsecount="2"/>
174
+ <line num="206" count="185" type="stmt"/>
175
+ <line num="207" count="185" type="stmt"/>
176
+ <line num="212" count="185" type="cond" truecount="2" falsecount="2"/>
177
177
  <line num="213" count="0" type="stmt"/>
178
- <line num="215" count="182" type="stmt"/>
179
- <line num="216" count="182" type="stmt"/>
180
- <line num="218" count="182" type="stmt"/>
181
- <line num="219" count="182" type="stmt"/>
182
- <line num="221" count="182" type="stmt"/>
183
- <line num="223" count="182" type="stmt"/>
178
+ <line num="215" count="185" type="stmt"/>
179
+ <line num="216" count="185" type="stmt"/>
180
+ <line num="218" count="185" type="stmt"/>
181
+ <line num="219" count="185" type="stmt"/>
182
+ <line num="221" count="185" type="stmt"/>
183
+ <line num="223" count="185" type="stmt"/>
184
184
  <line num="224" count="0" type="stmt"/>
185
- <line num="228" count="182" type="stmt"/>
186
- <line num="243" count="182" type="stmt"/>
187
- <line num="244" count="182" type="stmt"/>
188
- <line num="248" count="182" type="cond" truecount="1" falsecount="1"/>
189
- <line num="249" count="182" type="stmt"/>
190
- <line num="257" count="182" type="stmt"/>
191
- <line num="258" count="182" type="stmt"/>
192
- <line num="259" count="182" type="stmt"/>
185
+ <line num="228" count="185" type="stmt"/>
186
+ <line num="243" count="185" type="stmt"/>
187
+ <line num="244" count="185" type="stmt"/>
188
+ <line num="248" count="185" type="cond" truecount="1" falsecount="1"/>
189
+ <line num="249" count="185" type="stmt"/>
190
+ <line num="257" count="185" type="stmt"/>
191
+ <line num="258" count="185" type="stmt"/>
192
+ <line num="259" count="185" type="stmt"/>
193
193
  <line num="262" count="33" type="stmt"/>
194
194
  <line num="263" count="2" type="stmt"/>
195
195
  <line num="264" count="2" type="stmt"/>
@@ -258,12 +258,12 @@
258
258
  <line num="397" count="5" type="stmt"/>
259
259
  <line num="398" count="5" type="stmt"/>
260
260
  <line num="401" count="33" type="stmt"/>
261
- <line num="402" count="182" type="stmt"/>
262
- <line num="404" count="182" type="stmt"/>
263
- <line num="405" count="182" type="stmt"/>
264
- <line num="406" count="364" type="stmt"/>
265
- <line num="407" count="364" type="stmt"/>
266
- <line num="410" count="182" type="stmt"/>
261
+ <line num="402" count="185" type="stmt"/>
262
+ <line num="404" count="185" type="stmt"/>
263
+ <line num="405" count="185" type="stmt"/>
264
+ <line num="406" count="370" type="stmt"/>
265
+ <line num="407" count="370" type="stmt"/>
266
+ <line num="410" count="185" type="stmt"/>
267
267
  </file>
268
268
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
269
269
  <metrics statements="27" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
@@ -484,114 +484,130 @@
484
484
  <line num="34" count="1" type="stmt"/>
485
485
  </file>
486
486
  <file name="datasource.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/datasource.js">
487
- <metrics statements="107" coveredstatements="59" conditionals="36" coveredconditionals="11" methods="16" coveredmethods="9"/>
487
+ <metrics statements="123" coveredstatements="73" conditionals="45" coveredconditionals="15" methods="19" coveredmethods="11"/>
488
488
  <line num="1" count="34" type="stmt"/>
489
489
  <line num="9" count="34" type="stmt"/>
490
490
  <line num="10" count="34" type="stmt"/>
491
491
  <line num="11" count="34" type="stmt"/>
492
492
  <line num="12" count="34" type="stmt"/>
493
- <line num="14" count="34" type="stmt"/>
494
- <line num="15" count="2" type="stmt"/>
495
- <line num="18" count="2" type="stmt"/>
493
+ <line num="13" count="34" type="stmt"/>
494
+ <line num="15" count="34" type="stmt"/>
495
+ <line num="16" count="2" type="stmt"/>
496
496
  <line num="19" count="2" type="stmt"/>
497
- <line num="24" count="2" type="stmt"/>
498
- <line num="26" count="2" type="stmt"/>
499
- <line num="32" count="2" type="stmt"/>
500
- <line num="38" count="1" type="stmt"/>
501
- <line num="40" count="2" type="stmt"/>
502
- <line num="43" count="34" type="stmt"/>
503
- <line num="44" count="0" type="stmt"/>
497
+ <line num="20" count="2" type="stmt"/>
498
+ <line num="25" count="2" type="stmt"/>
499
+ <line num="27" count="2" type="stmt"/>
500
+ <line num="33" count="2" type="stmt"/>
501
+ <line num="39" count="1" type="stmt"/>
502
+ <line num="41" count="2" type="stmt"/>
503
+ <line num="44" count="34" type="stmt"/>
504
504
  <line num="45" count="0" type="stmt"/>
505
- <line num="47" count="0" type="stmt"/>
505
+ <line num="46" count="0" type="stmt"/>
506
506
  <line num="48" count="0" type="stmt"/>
507
- <line num="50" count="0" type="stmt"/>
507
+ <line num="49" count="0" type="stmt"/>
508
508
  <line num="51" count="0" type="stmt"/>
509
- <line num="53" count="0" type="stmt"/>
510
- <line num="54" count="0" type="cond" truecount="0" falsecount="2"/>
511
- <line num="55" count="0" type="stmt"/>
512
- <line num="57" count="0" type="stmt"/>
513
- <line num="60" count="34" type="stmt"/>
514
- <line num="61" count="2" type="stmt"/>
515
- <line num="62" count="2" type="stmt"/>
516
- <line num="63" count="2" type="stmt"/>
517
- <line num="64" count="2" type="stmt"/>
518
- <line num="66" count="2" type="stmt"/>
519
- <line num="67" count="2" type="stmt"/>
520
- <line num="70" count="2" type="cond" truecount="1" falsecount="1"/>
521
- <line num="71" count="2" type="stmt"/>
522
- <line num="72" count="2" type="cond" truecount="3" falsecount="1"/>
523
- <line num="73" count="0" type="stmt"/>
524
- <line num="77" count="2" type="stmt"/>
525
- <line num="78" count="2" type="stmt"/>
526
- <line num="79" count="2" type="stmt"/>
527
- <line num="82" count="34" type="stmt"/>
528
- <line num="83" count="30" type="stmt"/>
529
- <line num="84" count="30" type="stmt"/>
530
- <line num="85" count="30" type="stmt"/>
531
- <line num="87" count="30" type="stmt"/>
532
- <line num="93" count="30" type="stmt"/>
533
- <line num="94" count="30" type="cond" truecount="1" falsecount="1"/>
534
- <line num="95" count="0" type="stmt"/>
535
- <line num="96" count="0" type="stmt"/>
536
- <line num="97" count="0" type="stmt"/>
537
- <line num="100" count="30" type="stmt"/>
538
- <line num="101" count="30" type="stmt"/>
539
- <line num="104" count="30" type="cond" truecount="1" falsecount="1"/>
540
- <line num="105" count="30" type="stmt"/>
541
- <line num="106" count="30" type="cond" truecount="3" falsecount="1"/>
509
+ <line num="52" count="0" type="stmt"/>
510
+ <line num="54" count="0" type="stmt"/>
511
+ <line num="55" count="0" type="cond" truecount="0" falsecount="2"/>
512
+ <line num="56" count="0" type="stmt"/>
513
+ <line num="58" count="0" type="stmt"/>
514
+ <line num="64" count="34" type="stmt"/>
515
+ <line num="65" count="6" type="stmt"/>
516
+ <line num="66" count="6" type="stmt"/>
517
+ <line num="67" count="6" type="stmt"/>
518
+ <line num="69" count="6" type="cond" truecount="2" falsecount="0"/>
519
+ <line num="70" count="5" type="stmt"/>
520
+ <line num="73" count="1" type="cond" truecount="1" falsecount="1"/>
521
+ <line num="75" count="0" type="stmt"/>
522
+ <line num="78" count="1" type="stmt"/>
523
+ <line num="79" count="1" type="stmt"/>
524
+ <line num="81" count="0" type="cond" truecount="0" falsecount="3"/>
525
+ <line num="85" count="1" type="cond" truecount="1" falsecount="1"/>
526
+ <line num="86" count="1" type="stmt"/>
527
+ <line num="90" count="1" type="stmt"/>
528
+ <line num="93" count="34" type="stmt"/>
529
+ <line num="94" count="6" type="stmt"/>
530
+ <line num="95" count="6" type="stmt"/>
531
+ <line num="96" count="6" type="stmt"/>
532
+ <line num="97" count="6" type="stmt"/>
533
+ <line num="98" count="6" type="stmt"/>
534
+ <line num="100" count="6" type="stmt"/>
535
+ <line num="101" count="6" type="stmt"/>
536
+ <line num="104" count="6" type="cond" truecount="1" falsecount="1"/>
537
+ <line num="105" count="6" type="stmt"/>
538
+ <line num="106" count="6" type="cond" truecount="3" falsecount="1"/>
542
539
  <line num="107" count="0" type="stmt"/>
543
- <line num="111" count="30" type="stmt"/>
544
- <line num="112" count="30" type="cond" truecount="1" falsecount="1"/>
545
- <line num="113" count="0" type="stmt"/>
546
- <line num="115" count="30" type="stmt"/>
547
- <line num="118" count="34" type="stmt"/>
548
- <line num="119" count="1" type="stmt"/>
549
- <line num="122" count="1" type="stmt"/>
550
- <line num="125" count="1" type="stmt"/>
551
- <line num="126" count="1" type="stmt"/>
552
- <line num="134" count="1" type="stmt"/>
553
- <line num="136" count="1" type="stmt"/>
554
- <line num="137" count="1" type="stmt"/>
555
- <line num="140" count="34" type="stmt"/>
556
- <line num="141" count="1" type="stmt"/>
557
- <line num="142" count="1" type="stmt"/>
558
- <line num="146" count="34" type="stmt"/>
559
- <line num="147" count="1" type="stmt"/>
560
- <line num="148" count="1" type="stmt"/>
561
- <line num="149" count="1" type="stmt"/>
562
- <line num="151" count="0" type="stmt"/>
563
- <line num="156" count="0" type="stmt"/>
564
- <line num="157" count="0" type="stmt"/>
565
- <line num="158" count="0" type="stmt"/>
566
- <line num="162" count="0" type="cond" truecount="0" falsecount="2"/>
567
- <line num="163" count="0" type="stmt"/>
568
- <line num="165" count="0" type="cond" truecount="0" falsecount="2"/>
569
- <line num="166" count="0" type="stmt"/>
570
- <line num="168" count="0" type="stmt"/>
571
- <line num="169" count="0" type="stmt"/>
572
- <line num="172" count="34" type="stmt"/>
573
- <line num="173" count="0" type="stmt"/>
574
- <line num="176" count="0" type="stmt"/>
575
- <line num="177" count="0" type="stmt"/>
576
- <line num="178" count="0" type="stmt"/>
577
- <line num="181" count="0" type="stmt"/>
578
- <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
579
- <line num="183" count="0" type="stmt"/>
540
+ <line num="111" count="6" type="stmt"/>
541
+ <line num="112" count="6" type="stmt"/>
542
+ <line num="113" count="6" type="stmt"/>
543
+ <line num="116" count="34" type="stmt"/>
544
+ <line num="117" count="35" type="stmt"/>
545
+ <line num="118" count="35" type="stmt"/>
546
+ <line num="119" count="35" type="stmt"/>
547
+ <line num="121" count="35" type="stmt"/>
548
+ <line num="127" count="35" type="stmt"/>
549
+ <line num="128" count="35" type="cond" truecount="1" falsecount="1"/>
550
+ <line num="129" count="0" type="stmt"/>
551
+ <line num="130" count="0" type="stmt"/>
552
+ <line num="131" count="0" type="stmt"/>
553
+ <line num="134" count="35" type="stmt"/>
554
+ <line num="135" count="35" type="stmt"/>
555
+ <line num="138" count="35" type="cond" truecount="1" falsecount="1"/>
556
+ <line num="139" count="35" type="stmt"/>
557
+ <line num="140" count="35" type="cond" truecount="3" falsecount="1"/>
558
+ <line num="141" count="0" type="stmt"/>
559
+ <line num="145" count="35" type="stmt"/>
560
+ <line num="146" count="35" type="cond" truecount="1" falsecount="1"/>
561
+ <line num="147" count="0" type="stmt"/>
562
+ <line num="149" count="35" type="stmt"/>
563
+ <line num="152" count="34" type="stmt"/>
564
+ <line num="153" count="1" type="stmt"/>
565
+ <line num="156" count="1" type="stmt"/>
566
+ <line num="159" count="1" type="stmt"/>
567
+ <line num="160" count="1" type="stmt"/>
568
+ <line num="168" count="1" type="stmt"/>
569
+ <line num="170" count="1" type="stmt"/>
570
+ <line num="171" count="1" type="stmt"/>
571
+ <line num="174" count="34" type="stmt"/>
572
+ <line num="175" count="1" type="stmt"/>
573
+ <line num="176" count="1" type="stmt"/>
574
+ <line num="180" count="34" type="stmt"/>
575
+ <line num="181" count="1" type="stmt"/>
576
+ <line num="182" count="1" type="stmt"/>
577
+ <line num="183" count="1" type="stmt"/>
580
578
  <line num="185" count="0" type="stmt"/>
581
- <line num="186" count="0" type="stmt"/>
582
- <line num="188" count="0" type="cond" truecount="0" falsecount="2"/>
583
- <line num="189" count="0" type="stmt"/>
584
- <line num="193" count="0" type="stmt"/>
585
- <line num="194" count="0" type="stmt"/>
586
- <line num="195" count="0" type="cond" truecount="0" falsecount="4"/>
587
- <line num="196" count="0" type="stmt"/>
579
+ <line num="190" count="0" type="stmt"/>
580
+ <line num="191" count="0" type="stmt"/>
581
+ <line num="192" count="0" type="stmt"/>
582
+ <line num="196" count="0" type="cond" truecount="0" falsecount="2"/>
588
583
  <line num="197" count="0" type="stmt"/>
589
- <line num="198" count="0" type="cond" truecount="0" falsecount="2"/>
590
- <line num="199" count="0" type="stmt"/>
591
- <line num="205" count="0" type="cond" truecount="0" falsecount="2"/>
592
- <line num="206" count="0" type="stmt"/>
584
+ <line num="199" count="0" type="cond" truecount="0" falsecount="2"/>
585
+ <line num="200" count="0" type="stmt"/>
586
+ <line num="202" count="0" type="stmt"/>
587
+ <line num="203" count="0" type="stmt"/>
588
+ <line num="206" count="34" type="stmt"/>
593
589
  <line num="207" count="0" type="stmt"/>
594
- <line num="214" count="0" type="stmt"/>
590
+ <line num="210" count="0" type="stmt"/>
591
+ <line num="211" count="0" type="stmt"/>
592
+ <line num="212" count="0" type="stmt"/>
593
+ <line num="215" count="0" type="stmt"/>
594
+ <line num="216" count="0" type="cond" truecount="0" falsecount="2"/>
595
+ <line num="217" count="0" type="stmt"/>
596
+ <line num="219" count="0" type="stmt"/>
597
+ <line num="220" count="0" type="stmt"/>
598
+ <line num="222" count="0" type="cond" truecount="0" falsecount="2"/>
599
+ <line num="223" count="0" type="stmt"/>
600
+ <line num="227" count="0" type="stmt"/>
601
+ <line num="228" count="0" type="stmt"/>
602
+ <line num="229" count="0" type="cond" truecount="0" falsecount="4"/>
603
+ <line num="230" count="0" type="stmt"/>
604
+ <line num="231" count="0" type="stmt"/>
605
+ <line num="232" count="0" type="cond" truecount="0" falsecount="2"/>
606
+ <line num="233" count="0" type="stmt"/>
607
+ <line num="239" count="0" type="cond" truecount="0" falsecount="2"/>
608
+ <line num="240" count="0" type="stmt"/>
609
+ <line num="241" count="0" type="stmt"/>
610
+ <line num="248" count="0" type="stmt"/>
595
611
  </file>
596
612
  <file name="dev.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/dev.js">
597
613
  <metrics statements="63" coveredstatements="18" conditionals="15" coveredconditionals="0" methods="10" coveredmethods="3"/>
@@ -1171,9 +1187,9 @@
1171
1187
  </file>
1172
1188
  </package>
1173
1189
  <package name="api.controllers.query">
1174
- <metrics statements="96" coveredstatements="73" conditionals="19" coveredconditionals="12" methods="17" coveredmethods="13"/>
1190
+ <metrics statements="96" coveredstatements="79" conditionals="19" coveredconditionals="13" methods="17" coveredmethods="15"/>
1175
1191
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
1176
- <metrics statements="88" coveredstatements="65" conditionals="19" coveredconditionals="12" methods="14" coveredmethods="10"/>
1192
+ <metrics statements="88" coveredstatements="71" conditionals="19" coveredconditionals="13" methods="14" coveredmethods="12"/>
1177
1193
  <line num="1" count="34" type="stmt"/>
1178
1194
  <line num="6" count="34" type="stmt"/>
1179
1195
  <line num="7" count="34" type="stmt"/>
@@ -1209,14 +1225,14 @@
1209
1225
  <line num="71" count="0" type="stmt"/>
1210
1226
  <line num="75" count="0" type="stmt"/>
1211
1227
  <line num="78" count="34" type="stmt"/>
1212
- <line num="79" count="25" type="stmt"/>
1213
- <line num="80" count="25" type="stmt"/>
1214
- <line num="82" count="25" type="cond" truecount="1" falsecount="1"/>
1215
- <line num="83" count="25" type="stmt"/>
1216
- <line num="86" count="25" type="stmt"/>
1217
- <line num="87" count="25" type="stmt"/>
1218
- <line num="89" count="25" type="stmt"/>
1219
- <line num="90" count="25" type="stmt"/>
1228
+ <line num="79" count="28" type="stmt"/>
1229
+ <line num="80" count="28" type="stmt"/>
1230
+ <line num="82" count="28" type="cond" truecount="1" falsecount="1"/>
1231
+ <line num="83" count="28" type="stmt"/>
1232
+ <line num="86" count="28" type="stmt"/>
1233
+ <line num="87" count="28" type="stmt"/>
1234
+ <line num="89" count="28" type="stmt"/>
1235
+ <line num="90" count="28" type="stmt"/>
1220
1236
  <line num="93" count="34" type="stmt"/>
1221
1237
  <line num="94" count="3" type="stmt"/>
1222
1238
  <line num="95" count="3" type="stmt"/>
@@ -1225,12 +1241,12 @@
1225
1241
  <line num="99" count="1" type="stmt"/>
1226
1242
  <line num="101" count="3" type="stmt"/>
1227
1243
  <line num="104" count="34" type="stmt"/>
1228
- <line num="105" count="6" type="stmt"/>
1229
- <line num="107" count="6" type="stmt"/>
1230
- <line num="111" count="6" type="stmt"/>
1231
- <line num="113" count="6" type="stmt"/>
1232
- <line num="114" count="6" type="stmt"/>
1233
- <line num="124" count="5" type="stmt"/>
1244
+ <line num="105" count="8" type="stmt"/>
1245
+ <line num="107" count="8" type="stmt"/>
1246
+ <line num="111" count="8" type="stmt"/>
1247
+ <line num="113" count="8" type="stmt"/>
1248
+ <line num="114" count="8" type="stmt"/>
1249
+ <line num="124" count="7" type="stmt"/>
1234
1250
  <line num="131" count="1" type="stmt"/>
1235
1251
  <line num="136" count="2" type="stmt"/>
1236
1252
  <line num="138" count="2" type="stmt"/>
@@ -1246,22 +1262,22 @@
1246
1262
  <line num="166" count="34" type="stmt"/>
1247
1263
  <line num="167" count="0" type="stmt"/>
1248
1264
  <line num="170" count="34" type="stmt"/>
1249
- <line num="171" count="1" type="stmt"/>
1250
- <line num="172" count="1" type="stmt"/>
1251
- <line num="173" count="1" type="stmt"/>
1252
- <line num="175" count="1" type="cond" truecount="1" falsecount="1"/>
1253
- <line num="177" count="0" type="stmt"/>
1254
- <line num="178" count="0" type="stmt"/>
1255
- <line num="179" count="0" type="stmt"/>
1256
- <line num="182" count="0" type="stmt"/>
1257
- <line num="183" count="0" type="stmt"/>
1258
- <line num="185" count="0" type="stmt"/>
1265
+ <line num="171" count="2" type="stmt"/>
1266
+ <line num="172" count="2" type="stmt"/>
1267
+ <line num="173" count="2" type="stmt"/>
1268
+ <line num="175" count="2" type="cond" truecount="2" falsecount="0"/>
1269
+ <line num="177" count="1" type="stmt"/>
1270
+ <line num="178" count="1" type="stmt"/>
1271
+ <line num="179" count="1" type="stmt"/>
1272
+ <line num="182" count="1" type="stmt"/>
1273
+ <line num="183" count="1" type="stmt"/>
1274
+ <line num="185" count="1" type="stmt"/>
1259
1275
  <line num="189" count="34" type="stmt"/>
1260
- <line num="190" count="1" type="stmt"/>
1261
- <line num="191" count="1" type="stmt"/>
1262
- <line num="192" count="1" type="stmt"/>
1263
- <line num="193" count="1" type="stmt"/>
1264
- <line num="194" count="1" type="stmt"/>
1276
+ <line num="190" count="2" type="stmt"/>
1277
+ <line num="191" count="2" type="stmt"/>
1278
+ <line num="192" count="2" type="stmt"/>
1279
+ <line num="193" count="2" type="stmt"/>
1280
+ <line num="194" count="2" type="stmt"/>
1265
1281
  </file>
1266
1282
  <file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
1267
1283
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
@@ -3071,13 +3087,13 @@
3071
3087
  <line num="50" count="33" type="stmt"/>
3072
3088
  <line num="53" count="66" type="stmt"/>
3073
3089
  <line num="57" count="33" type="stmt"/>
3074
- <line num="58" count="189" type="stmt"/>
3075
- <line num="59" count="189" type="stmt"/>
3076
- <line num="60" count="189" type="stmt"/>
3090
+ <line num="58" count="192" type="stmt"/>
3091
+ <line num="59" count="192" type="stmt"/>
3092
+ <line num="60" count="192" type="stmt"/>
3077
3093
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
3078
3094
  <line num="62" count="0" type="stmt"/>
3079
3095
  <line num="63" count="0" type="stmt"/>
3080
- <line num="66" count="189" type="stmt"/>
3096
+ <line num="66" count="192" type="stmt"/>
3081
3097
  <line num="74" count="33" type="stmt"/>
3082
3098
  <line num="75" count="1" type="cond" truecount="1" falsecount="1"/>
3083
3099
  <line num="77" count="1" type="stmt"/>
@@ -3546,7 +3562,7 @@
3546
3562
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3547
3563
  <line num="1" count="49" type="stmt"/>
3548
3564
  <line num="3" count="49" type="stmt"/>
3549
- <line num="4" count="700" type="stmt"/>
3565
+ <line num="4" count="714" type="stmt"/>
3550
3566
  </file>
3551
3567
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3552
3568
  <metrics statements="110" coveredstatements="101" conditionals="51" coveredconditionals="18" methods="31" coveredmethods="27"/>
@@ -3578,9 +3594,9 @@
3578
3594
  <line num="85" count="49" type="stmt"/>
3579
3595
  <line num="87" count="49" type="stmt"/>
3580
3596
  <line num="88" count="74" type="stmt"/>
3581
- <line num="104" count="615" type="cond" truecount="2" falsecount="0"/>
3582
- <line num="105" count="602" type="stmt"/>
3583
- <line num="107" count="615" type="stmt"/>
3597
+ <line num="104" count="624" type="cond" truecount="2" falsecount="0"/>
3598
+ <line num="105" count="611" type="stmt"/>
3599
+ <line num="107" count="624" type="stmt"/>
3584
3600
  <line num="114" count="49" type="stmt"/>
3585
3601
  <line num="119" count="49" type="cond" truecount="0" falsecount="2"/>
3586
3602
  <line num="120" count="3" type="stmt"/>
@@ -3592,19 +3608,19 @@
3592
3608
  <line num="144" count="11" type="cond" truecount="1" falsecount="1"/>
3593
3609
  <line num="146" count="11" type="stmt"/>
3594
3610
  <line num="155" count="49" type="cond" truecount="1" falsecount="0"/>
3595
- <line num="156" count="205" type="cond" truecount="2" falsecount="0"/>
3596
- <line num="157" count="205" type="stmt"/>
3611
+ <line num="156" count="210" type="cond" truecount="2" falsecount="0"/>
3612
+ <line num="157" count="210" type="stmt"/>
3597
3613
  <line num="163" count="49" type="cond" truecount="0" falsecount="2"/>
3598
3614
  <line num="164" count="3" type="stmt"/>
3599
3615
  <line num="172" count="49" type="stmt"/>
3600
- <line num="173" count="137" type="stmt"/>
3616
+ <line num="173" count="142" type="stmt"/>
3601
3617
  <line num="179" count="49" type="stmt"/>
3602
3618
  <line num="180" count="2" type="stmt"/>
3603
3619
  <line num="181" count="2" type="cond" truecount="4" falsecount="0"/>
3604
3620
  <line num="182" count="1" type="stmt"/>
3605
3621
  <line num="184" count="1" type="stmt"/>
3606
3622
  <line num="190" count="49" type="cond" truecount="0" falsecount="2"/>
3607
- <line num="191" count="207" type="stmt"/>
3623
+ <line num="191" count="210" type="stmt"/>
3608
3624
  <line num="198" count="49" type="stmt"/>
3609
3625
  <line num="199" count="20" type="stmt"/>
3610
3626
  <line num="213" count="49" type="stmt"/>
@@ -3615,32 +3631,32 @@
3615
3631
  <line num="230" count="49" type="cond" truecount="0" falsecount="1"/>
3616
3632
  <line num="231" count="0" type="stmt"/>
3617
3633
  <line num="238" count="49" type="cond" truecount="0" falsecount="1"/>
3618
- <line num="239" count="182" type="stmt"/>
3619
- <line num="240" count="182" type="cond" truecount="1" falsecount="1"/>
3634
+ <line num="239" count="185" type="stmt"/>
3635
+ <line num="240" count="185" type="cond" truecount="1" falsecount="1"/>
3620
3636
  <line num="241" count="0" type="stmt"/>
3621
- <line num="243" count="182" type="stmt"/>
3637
+ <line num="243" count="185" type="stmt"/>
3622
3638
  <line num="250" count="49" type="stmt"/>
3623
- <line num="251" count="182" type="stmt"/>
3624
- <line num="252" count="182" type="stmt"/>
3625
- <line num="253" count="182" type="stmt"/>
3639
+ <line num="251" count="185" type="stmt"/>
3640
+ <line num="252" count="185" type="stmt"/>
3641
+ <line num="253" count="185" type="stmt"/>
3626
3642
  <line num="260" count="49" type="stmt"/>
3627
3643
  <line num="261" count="5" type="cond" truecount="2" falsecount="0"/>
3628
3644
  <line num="267" count="49" type="cond" truecount="0" falsecount="2"/>
3629
- <line num="268" count="192" type="stmt"/>
3645
+ <line num="268" count="195" type="stmt"/>
3630
3646
  <line num="275" count="49" type="stmt"/>
3631
3647
  <line num="276" count="19" type="stmt"/>
3632
3648
  <line num="282" count="49" type="cond" truecount="0" falsecount="2"/>
3633
- <line num="283" count="194" type="stmt"/>
3649
+ <line num="283" count="197" type="stmt"/>
3634
3650
  <line num="290" count="49" type="stmt"/>
3635
3651
  <line num="291" count="10" type="stmt"/>
3636
3652
  <line num="297" count="49" type="cond" truecount="0" falsecount="2"/>
3637
3653
  <line num="298" count="2" type="stmt"/>
3638
3654
  <line num="305" count="49" type="cond" truecount="1" falsecount="1"/>
3639
- <line num="306" count="30" type="stmt"/>
3655
+ <line num="306" count="35" type="stmt"/>
3640
3656
  <line num="314" count="49" type="cond" truecount="0" falsecount="2"/>
3641
3657
  <line num="315" count="3" type="stmt"/>
3642
3658
  <line num="322" count="49" type="stmt"/>
3643
- <line num="323" count="78" type="stmt"/>
3659
+ <line num="323" count="81" type="stmt"/>
3644
3660
  <line num="331" count="49" type="cond" truecount="0" falsecount="2"/>
3645
3661
  <line num="332" count="3" type="cond" truecount="2" falsecount="0"/>
3646
3662
  <line num="333" count="2" type="stmt"/>
@@ -4054,16 +4070,16 @@
4054
4070
  <line num="14" count="7" type="stmt"/>
4055
4071
  <line num="17" count="24" type="stmt"/>
4056
4072
  <line num="19" count="2338" type="stmt"/>
4057
- <line num="22" count="155" type="cond" truecount="4" falsecount="0"/>
4073
+ <line num="22" count="160" type="cond" truecount="4" falsecount="0"/>
4058
4074
  <line num="23" count="1" type="stmt"/>
4059
- <line num="26" count="154" type="cond" truecount="2" falsecount="0"/>
4075
+ <line num="26" count="159" type="cond" truecount="2" falsecount="0"/>
4060
4076
  <line num="27" count="1" type="stmt"/>
4061
- <line num="32" count="153" type="stmt"/>
4062
- <line num="34" count="153" type="stmt"/>
4063
- <line num="36" count="153" type="cond" truecount="3" falsecount="0"/>
4064
- <line num="37" count="153" type="stmt"/>
4065
- <line num="38" count="153" type="cond" truecount="2" falsecount="0"/>
4066
- <line num="39" count="117" type="stmt"/>
4077
+ <line num="32" count="158" type="stmt"/>
4078
+ <line num="34" count="158" type="stmt"/>
4079
+ <line num="36" count="158" type="cond" truecount="3" falsecount="0"/>
4080
+ <line num="37" count="158" type="stmt"/>
4081
+ <line num="38" count="158" type="cond" truecount="2" falsecount="0"/>
4082
+ <line num="39" count="122" type="stmt"/>
4067
4083
  <line num="40" count="36" type="cond" truecount="4" falsecount="0"/>
4068
4084
  <line num="41" count="29" type="stmt"/>
4069
4085
  <line num="45" count="7" type="cond" truecount="2" falsecount="0"/>
@@ -4110,14 +4126,14 @@
4110
4126
  <line num="56" count="1" type="stmt"/>
4111
4127
  <line num="58" count="1" type="stmt"/>
4112
4128
  <line num="61" count="24" type="stmt"/>
4113
- <line num="62" count="153" type="stmt"/>
4114
- <line num="64" count="153" type="cond" truecount="2" falsecount="0"/>
4129
+ <line num="62" count="158" type="stmt"/>
4130
+ <line num="64" count="158" type="cond" truecount="2" falsecount="0"/>
4115
4131
  <line num="65" count="5" type="stmt"/>
4116
- <line num="67" count="148" type="stmt"/>
4117
- <line num="68" count="148" type="stmt"/>
4118
- <line num="69" count="148" type="cond" truecount="2" falsecount="0"/>
4119
- <line num="71" count="148" type="cond" truecount="4" falsecount="0"/>
4120
- <line num="72" count="147" type="stmt"/>
4132
+ <line num="67" count="153" type="stmt"/>
4133
+ <line num="68" count="153" type="stmt"/>
4134
+ <line num="69" count="153" type="cond" truecount="2" falsecount="0"/>
4135
+ <line num="71" count="153" type="cond" truecount="4" falsecount="0"/>
4136
+ <line num="72" count="152" type="stmt"/>
4121
4137
  <line num="75" count="1" type="stmt"/>
4122
4138
  <line num="77" count="1" type="stmt"/>
4123
4139
  </file>
@@ -4135,63 +4151,63 @@
4135
4151
  <line num="11" count="28" type="stmt"/>
4136
4152
  <line num="12" count="28" type="stmt"/>
4137
4153
  <line num="14" count="28" type="stmt"/>
4138
- <line num="16" count="165" type="stmt"/>
4139
- <line num="18" count="165" type="stmt"/>
4140
- <line num="19" count="165" type="stmt"/>
4141
- <line num="20" count="165" type="stmt"/>
4154
+ <line num="16" count="170" type="stmt"/>
4155
+ <line num="18" count="170" type="stmt"/>
4156
+ <line num="19" count="170" type="stmt"/>
4157
+ <line num="20" count="170" type="stmt"/>
4142
4158
  <line num="22" count="0" type="stmt"/>
4143
- <line num="24" count="165" type="cond" truecount="4" falsecount="0"/>
4159
+ <line num="24" count="170" type="cond" truecount="4" falsecount="0"/>
4144
4160
  <line num="25" count="1" type="stmt"/>
4145
- <line num="28" count="164" type="cond" truecount="2" falsecount="0"/>
4146
- <line num="29" count="158" type="stmt"/>
4147
- <line num="30" count="158" type="stmt"/>
4148
- <line num="31" count="158" type="cond" truecount="1" falsecount="1"/>
4161
+ <line num="28" count="169" type="cond" truecount="2" falsecount="0"/>
4162
+ <line num="29" count="163" type="stmt"/>
4163
+ <line num="30" count="163" type="stmt"/>
4164
+ <line num="31" count="163" type="cond" truecount="1" falsecount="1"/>
4149
4165
  <line num="32" count="0" type="stmt"/>
4150
4166
  <line num="33" count="0" type="stmt"/>
4151
- <line num="36" count="158" type="cond" truecount="1" falsecount="1"/>
4152
- <line num="40" count="164" type="cond" truecount="2" falsecount="0"/>
4167
+ <line num="36" count="163" type="cond" truecount="1" falsecount="1"/>
4168
+ <line num="40" count="169" type="cond" truecount="2" falsecount="0"/>
4153
4169
  <line num="45" count="2" type="stmt"/>
4154
4170
  <line num="46" count="2" type="stmt"/>
4155
- <line num="50" count="162" type="stmt"/>
4156
- <line num="51" count="162" type="cond" truecount="2" falsecount="0"/>
4171
+ <line num="50" count="167" type="stmt"/>
4172
+ <line num="51" count="167" type="cond" truecount="2" falsecount="0"/>
4157
4173
  <line num="53" count="33" type="stmt"/>
4158
- <line num="54" count="129" type="cond" truecount="1" falsecount="1"/>
4159
- <line num="56" count="129" type="stmt"/>
4160
- <line num="57" count="129" type="stmt"/>
4161
- <line num="59" count="129" type="cond" truecount="2" falsecount="0"/>
4162
- <line num="63" count="162" type="cond" truecount="1" falsecount="1"/>
4174
+ <line num="54" count="134" type="cond" truecount="1" falsecount="1"/>
4175
+ <line num="56" count="134" type="stmt"/>
4176
+ <line num="57" count="134" type="stmt"/>
4177
+ <line num="59" count="134" type="cond" truecount="2" falsecount="0"/>
4178
+ <line num="63" count="167" type="cond" truecount="1" falsecount="1"/>
4163
4179
  <line num="64" count="0" type="stmt"/>
4164
- <line num="67" count="162" type="stmt"/>
4165
- <line num="70" count="162" type="cond" truecount="1" falsecount="1"/>
4180
+ <line num="67" count="167" type="stmt"/>
4181
+ <line num="70" count="167" type="cond" truecount="1" falsecount="1"/>
4166
4182
  <line num="77" count="0" type="stmt"/>
4167
4183
  <line num="78" count="0" type="stmt"/>
4168
4184
  <line num="79" count="0" type="stmt"/>
4169
4185
  <line num="80" count="0" type="stmt"/>
4170
4186
  <line num="81" count="0" type="stmt"/>
4171
- <line num="84" count="162" type="stmt"/>
4172
- <line num="85" count="162" type="cond" truecount="1" falsecount="1"/>
4173
- <line num="86" count="162" type="stmt"/>
4174
- <line num="87" count="162" type="cond" truecount="2" falsecount="0"/>
4175
- <line num="88" count="162" type="stmt"/>
4176
- <line num="97" count="162" type="cond" truecount="2" falsecount="0"/>
4187
+ <line num="84" count="167" type="stmt"/>
4188
+ <line num="85" count="167" type="cond" truecount="1" falsecount="1"/>
4189
+ <line num="86" count="167" type="stmt"/>
4190
+ <line num="87" count="167" type="cond" truecount="2" falsecount="0"/>
4191
+ <line num="88" count="167" type="stmt"/>
4192
+ <line num="97" count="167" type="cond" truecount="2" falsecount="0"/>
4177
4193
  <line num="103" count="7" type="stmt"/>
4178
- <line num="106" count="162" type="stmt"/>
4194
+ <line num="106" count="167" type="stmt"/>
4179
4195
  </file>
4180
4196
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
4181
4197
  <metrics statements="17" coveredstatements="14" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
4182
4198
  <line num="3" count="276" type="stmt"/>
4183
- <line num="4" count="22" type="cond" truecount="1" falsecount="1"/>
4199
+ <line num="4" count="24" type="cond" truecount="1" falsecount="1"/>
4184
4200
  <line num="5" count="0" type="stmt"/>
4185
- <line num="7" count="22" type="stmt"/>
4186
- <line num="8" count="22" type="cond" truecount="2" falsecount="0"/>
4201
+ <line num="7" count="24" type="stmt"/>
4202
+ <line num="8" count="24" type="cond" truecount="2" falsecount="0"/>
4187
4203
  <line num="9" count="1" type="stmt"/>
4188
- <line num="10" count="21" type="cond" truecount="1" falsecount="1"/>
4189
- <line num="11" count="21" type="stmt"/>
4190
- <line num="13" count="22" type="stmt"/>
4191
- <line num="14" count="22" type="cond" truecount="1" falsecount="1"/>
4204
+ <line num="10" count="23" type="cond" truecount="1" falsecount="1"/>
4205
+ <line num="11" count="23" type="stmt"/>
4206
+ <line num="13" count="24" type="stmt"/>
4207
+ <line num="14" count="24" type="cond" truecount="1" falsecount="1"/>
4192
4208
  <line num="15" count="0" type="stmt"/>
4193
4209
  <line num="16" count="0" type="stmt"/>
4194
- <line num="18" count="22" type="stmt"/>
4210
+ <line num="18" count="24" type="stmt"/>
4195
4211
  <line num="22" count="35" type="stmt"/>
4196
4212
  <line num="23" count="230" type="stmt"/>
4197
4213
  <line num="26" count="35" type="stmt"/>
@@ -4211,14 +4227,14 @@
4211
4227
  <line num="21" count="627" type="stmt"/>
4212
4228
  <line num="22" count="627" type="stmt"/>
4213
4229
  <line num="23" count="627" type="stmt"/>
4214
- <line num="24" count="62" type="cond" truecount="2" falsecount="0"/>
4215
- <line num="25" count="62" type="cond" truecount="2" falsecount="0"/>
4230
+ <line num="24" count="65" type="cond" truecount="2" falsecount="0"/>
4231
+ <line num="25" count="65" type="cond" truecount="2" falsecount="0"/>
4216
4232
  <line num="26" count="1" type="stmt"/>
4217
- <line num="28" count="61" type="cond" truecount="4" falsecount="0"/>
4218
- <line num="29" count="57" type="stmt"/>
4219
- <line num="31" count="61" type="cond" truecount="4" falsecount="0"/>
4233
+ <line num="28" count="64" type="cond" truecount="4" falsecount="0"/>
4234
+ <line num="29" count="60" type="stmt"/>
4235
+ <line num="31" count="64" type="cond" truecount="4" falsecount="0"/>
4220
4236
  <line num="32" count="11" type="stmt"/>
4221
- <line num="34" count="61" type="stmt"/>
4237
+ <line num="34" count="64" type="stmt"/>
4222
4238
  <line num="39" count="24" type="stmt"/>
4223
4239
  <line num="41" count="24" type="stmt"/>
4224
4240
  <line num="42" count="485" type="stmt"/>
@@ -4281,7 +4297,7 @@
4281
4297
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
4282
4298
  <line num="1" count="29" type="stmt"/>
4283
4299
  <line num="5" count="29" type="stmt"/>
4284
- <line num="6" count="279" type="stmt"/>
4300
+ <line num="6" count="289" type="stmt"/>
4285
4301
  </file>
4286
4302
  </package>
4287
4303
  <package name="threads">
@@ -4370,14 +4386,14 @@
4370
4386
  <line num="1" count="34" type="stmt"/>
4371
4387
  <line num="2" count="34" type="stmt"/>
4372
4388
  <line num="4" count="34" type="stmt"/>
4373
- <line num="10" count="18" type="stmt"/>
4374
- <line num="11" count="18" type="cond" truecount="2" falsecount="1"/>
4375
- <line num="13" count="8" type="stmt"/>
4376
- <line num="14" count="8" type="stmt"/>
4389
+ <line num="10" count="20" type="stmt"/>
4390
+ <line num="11" count="20" type="cond" truecount="2" falsecount="1"/>
4391
+ <line num="13" count="10" type="stmt"/>
4392
+ <line num="14" count="10" type="stmt"/>
4377
4393
  <line num="16" count="10" type="stmt"/>
4378
4394
  <line num="17" count="10" type="stmt"/>
4379
4395
  <line num="19" count="0" type="stmt"/>
4380
- <line num="21" count="18" type="stmt"/>
4396
+ <line num="21" count="20" type="stmt"/>
4381
4397
  <line num="26" count="67" type="stmt"/>
4382
4398
  <line num="27" count="67" type="cond" truecount="2" falsecount="0"/>
4383
4399
  <line num="28" count="67" type="stmt"/>
@@ -4386,106 +4402,106 @@
4386
4402
  <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4387
4403
  <line num="39" count="0" type="stmt"/>
4388
4404
  <line num="41" count="0" type="stmt"/>
4389
- <line num="46" count="18" type="stmt"/>
4390
- <line num="49" count="18" type="cond" truecount="1" falsecount="1"/>
4391
- <line num="50" count="18" type="stmt"/>
4405
+ <line num="46" count="20" type="stmt"/>
4406
+ <line num="49" count="20" type="cond" truecount="1" falsecount="1"/>
4407
+ <line num="50" count="20" type="stmt"/>
4392
4408
  <line num="52" count="0" type="stmt"/>
4393
- <line num="54" count="18" type="stmt"/>
4394
- <line num="55" count="14" type="cond" truecount="2" falsecount="0"/>
4409
+ <line num="54" count="20" type="stmt"/>
4410
+ <line num="55" count="16" type="cond" truecount="2" falsecount="0"/>
4395
4411
  <line num="56" count="2" type="stmt"/>
4396
- <line num="58" count="12" type="stmt"/>
4412
+ <line num="58" count="14" type="stmt"/>
4397
4413
  <line num="65" count="34" type="stmt"/>
4398
4414
  <line num="66" count="34" type="stmt"/>
4399
4415
  </file>
4400
4416
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4401
4417
  <metrics statements="88" coveredstatements="82" conditionals="37" coveredconditionals="30" methods="12" coveredmethods="11"/>
4402
- <line num="1" count="1" type="stmt"/>
4403
- <line num="2" count="1" type="stmt"/>
4404
- <line num="3" count="1" type="stmt"/>
4405
- <line num="4" count="1" type="stmt"/>
4406
- <line num="5" count="1" type="stmt"/>
4407
- <line num="6" count="1" type="stmt"/>
4408
- <line num="10" count="11" type="stmt"/>
4409
- <line num="11" count="11" type="stmt"/>
4410
- <line num="12" count="11" type="stmt"/>
4411
- <line num="13" count="11" type="stmt"/>
4412
- <line num="14" count="11" type="stmt"/>
4413
- <line num="15" count="11" type="stmt"/>
4414
- <line num="16" count="11" type="stmt"/>
4415
- <line num="17" count="11" type="stmt"/>
4416
- <line num="18" count="11" type="stmt"/>
4417
- <line num="22" count="11" type="stmt"/>
4418
- <line num="23" count="11" type="stmt"/>
4419
- <line num="27" count="12" type="stmt"/>
4420
- <line num="29" count="12" type="stmt"/>
4421
- <line num="30" count="12" type="stmt"/>
4422
- <line num="31" count="12" type="stmt"/>
4423
- <line num="32" count="12" type="cond" truecount="2" falsecount="0"/>
4418
+ <line num="1" count="2" type="stmt"/>
4419
+ <line num="2" count="2" type="stmt"/>
4420
+ <line num="3" count="2" type="stmt"/>
4421
+ <line num="4" count="2" type="stmt"/>
4422
+ <line num="5" count="2" type="stmt"/>
4423
+ <line num="6" count="2" type="stmt"/>
4424
+ <line num="10" count="15" type="stmt"/>
4425
+ <line num="11" count="15" type="stmt"/>
4426
+ <line num="12" count="15" type="stmt"/>
4427
+ <line num="13" count="15" type="stmt"/>
4428
+ <line num="14" count="15" type="stmt"/>
4429
+ <line num="15" count="15" type="stmt"/>
4430
+ <line num="16" count="15" type="stmt"/>
4431
+ <line num="17" count="15" type="stmt"/>
4432
+ <line num="18" count="15" type="stmt"/>
4433
+ <line num="22" count="15" type="stmt"/>
4434
+ <line num="23" count="15" type="stmt"/>
4435
+ <line num="27" count="16" type="stmt"/>
4436
+ <line num="29" count="16" type="stmt"/>
4437
+ <line num="30" count="16" type="stmt"/>
4438
+ <line num="31" count="16" type="stmt"/>
4439
+ <line num="32" count="16" type="cond" truecount="2" falsecount="0"/>
4424
4440
  <line num="33" count="2" type="stmt"/>
4425
- <line num="35" count="10" type="stmt"/>
4426
- <line num="37" count="10" type="stmt"/>
4427
- <line num="38" count="10" type="stmt"/>
4428
- <line num="39" count="10" type="stmt"/>
4429
- <line num="40" count="10" type="stmt"/>
4430
- <line num="41" count="10" type="cond" truecount="2" falsecount="0"/>
4431
- <line num="42" count="8" type="stmt"/>
4432
- <line num="43" count="8" type="stmt"/>
4433
- <line num="44" count="8" type="stmt"/>
4434
- <line num="48" count="10" type="cond" truecount="1" falsecount="1"/>
4441
+ <line num="35" count="14" type="stmt"/>
4442
+ <line num="37" count="14" type="stmt"/>
4443
+ <line num="38" count="14" type="stmt"/>
4444
+ <line num="39" count="14" type="stmt"/>
4445
+ <line num="40" count="14" type="stmt"/>
4446
+ <line num="41" count="14" type="cond" truecount="2" falsecount="0"/>
4447
+ <line num="42" count="12" type="stmt"/>
4448
+ <line num="43" count="12" type="stmt"/>
4449
+ <line num="44" count="12" type="stmt"/>
4450
+ <line num="48" count="14" type="cond" truecount="1" falsecount="1"/>
4435
4451
  <line num="49" count="0" type="stmt"/>
4436
4452
  <line num="53" count="0" type="stmt"/>
4437
- <line num="57" count="10" type="cond" truecount="2" falsecount="0"/>
4453
+ <line num="57" count="14" type="cond" truecount="2" falsecount="0"/>
4438
4454
  <line num="63" count="1" type="stmt"/>
4439
4455
  <line num="65" count="1" type="stmt"/>
4440
4456
  <line num="66" count="1" type="stmt"/>
4441
- <line num="70" count="9" type="cond" truecount="2" falsecount="0"/>
4442
- <line num="71" count="7" type="stmt"/>
4443
- <line num="75" count="9" type="cond" truecount="1" falsecount="1"/>
4457
+ <line num="70" count="13" type="cond" truecount="2" falsecount="0"/>
4458
+ <line num="71" count="11" type="stmt"/>
4459
+ <line num="75" count="13" type="cond" truecount="1" falsecount="1"/>
4444
4460
  <line num="76" count="0" type="stmt"/>
4445
- <line num="80" count="9" type="stmt"/>
4446
- <line num="82" count="9" type="cond" truecount="1" falsecount="1"/>
4461
+ <line num="80" count="13" type="stmt"/>
4462
+ <line num="82" count="13" type="cond" truecount="1" falsecount="1"/>
4447
4463
  <line num="83" count="0" type="stmt"/>
4448
- <line num="86" count="9" type="stmt"/>
4449
- <line num="90" count="3" type="stmt"/>
4450
- <line num="91" count="3" type="stmt"/>
4451
- <line num="92" count="3" type="stmt"/>
4452
- <line num="93" count="3" type="stmt"/>
4453
- <line num="107" count="4" type="stmt"/>
4454
- <line num="108" count="4" type="stmt"/>
4455
- <line num="109" count="4" type="stmt"/>
4456
- <line num="110" count="4" type="stmt"/>
4457
- <line num="111" count="4" type="cond" truecount="2" falsecount="0"/>
4458
- <line num="112" count="3" type="cond" truecount="1" falsecount="1"/>
4459
- <line num="116" count="3" type="stmt"/>
4460
- <line num="117" count="3" type="stmt"/>
4464
+ <line num="86" count="13" type="stmt"/>
4465
+ <line num="90" count="5" type="stmt"/>
4466
+ <line num="91" count="5" type="stmt"/>
4467
+ <line num="92" count="5" type="stmt"/>
4468
+ <line num="93" count="5" type="stmt"/>
4469
+ <line num="107" count="6" type="stmt"/>
4470
+ <line num="108" count="6" type="stmt"/>
4471
+ <line num="109" count="6" type="stmt"/>
4472
+ <line num="110" count="6" type="stmt"/>
4473
+ <line num="111" count="6" type="cond" truecount="2" falsecount="0"/>
4474
+ <line num="112" count="5" type="cond" truecount="1" falsecount="1"/>
4475
+ <line num="116" count="5" type="stmt"/>
4476
+ <line num="117" count="5" type="stmt"/>
4461
4477
  <line num="119" count="1" type="stmt"/>
4462
- <line num="121" count="4" type="stmt"/>
4463
- <line num="125" count="12" type="stmt"/>
4464
- <line num="126" count="12" type="cond" truecount="3" falsecount="1"/>
4478
+ <line num="121" count="6" type="stmt"/>
4479
+ <line num="125" count="16" type="stmt"/>
4480
+ <line num="126" count="16" type="cond" truecount="3" falsecount="1"/>
4465
4481
  <line num="127" count="0" type="stmt"/>
4466
- <line num="129" count="12" type="cond" truecount="2" falsecount="0"/>
4467
- <line num="130" count="12" type="cond" truecount="2" falsecount="0"/>
4468
- <line num="131" count="12" type="stmt"/>
4482
+ <line num="129" count="16" type="cond" truecount="2" falsecount="0"/>
4483
+ <line num="130" count="16" type="cond" truecount="2" falsecount="0"/>
4484
+ <line num="131" count="16" type="stmt"/>
4469
4485
  <line num="132" count="2" type="cond" truecount="1" falsecount="1"/>
4470
4486
  <line num="133" count="2" type="stmt"/>
4471
- <line num="136" count="12" type="cond" truecount="2" falsecount="0"/>
4472
- <line num="138" count="9" type="stmt"/>
4473
- <line num="139" count="9" type="stmt"/>
4474
- <line num="141" count="4" type="cond" truecount="1" falsecount="1"/>
4487
+ <line num="136" count="16" type="cond" truecount="2" falsecount="0"/>
4488
+ <line num="138" count="11" type="stmt"/>
4489
+ <line num="139" count="11" type="stmt"/>
4490
+ <line num="141" count="6" type="cond" truecount="1" falsecount="1"/>
4475
4491
  <line num="142" count="0" type="stmt"/>
4476
- <line num="145" count="4" type="stmt"/>
4477
- <line num="146" count="4" type="stmt"/>
4478
- <line num="148" count="9" type="stmt"/>
4479
- <line num="149" count="9" type="stmt"/>
4480
- <line num="150" count="9" type="stmt"/>
4481
- <line num="151" count="4" type="stmt"/>
4482
- <line num="152" count="4" type="stmt"/>
4483
- <line num="157" count="4" type="stmt"/>
4484
- <line num="160" count="12" type="stmt"/>
4485
- <line num="164" count="1" type="stmt"/>
4486
- <line num="165" count="8" type="stmt"/>
4487
- <line num="166" count="8" type="stmt"/>
4488
- <line num="168" count="6" type="stmt"/>
4492
+ <line num="145" count="6" type="stmt"/>
4493
+ <line num="146" count="6" type="stmt"/>
4494
+ <line num="148" count="11" type="stmt"/>
4495
+ <line num="149" count="11" type="stmt"/>
4496
+ <line num="150" count="11" type="stmt"/>
4497
+ <line num="151" count="6" type="stmt"/>
4498
+ <line num="152" count="6" type="stmt"/>
4499
+ <line num="157" count="6" type="stmt"/>
4500
+ <line num="160" count="16" type="stmt"/>
4501
+ <line num="164" count="2" type="stmt"/>
4502
+ <line num="165" count="10" type="stmt"/>
4503
+ <line num="166" count="10" type="stmt"/>
4504
+ <line num="168" count="8" type="stmt"/>
4489
4505
  <line num="171" count="2" type="stmt"/>
4490
4506
  </file>
4491
4507
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
@@ -4499,55 +4515,55 @@
4499
4515
  <line num="8" count="34" type="stmt"/>
4500
4516
  <line num="11" count="34" type="stmt"/>
4501
4517
  <line num="12" count="34" type="stmt"/>
4502
- <line num="15" count="9" type="cond" truecount="2" falsecount="0"/>
4503
- <line num="16" count="1" type="stmt"/>
4504
- <line num="18" count="9" type="stmt"/>
4518
+ <line num="15" count="19" type="cond" truecount="2" falsecount="0"/>
4519
+ <line num="16" count="2" type="stmt"/>
4520
+ <line num="18" count="19" type="stmt"/>
4505
4521
  <line num="21" count="34" type="stmt"/>
4506
4522
  <line num="22" count="0" type="cond" truecount="0" falsecount="2"/>
4507
4523
  <line num="25" count="34" type="stmt"/>
4508
- <line num="27" count="5" type="cond" truecount="2" falsecount="2"/>
4509
- <line num="28" count="5" type="stmt"/>
4524
+ <line num="27" count="6" type="cond" truecount="2" falsecount="2"/>
4525
+ <line num="28" count="6" type="stmt"/>
4510
4526
  <line num="31" count="0" type="stmt"/>
4511
4527
  <line num="32" count="0" type="stmt"/>
4512
- <line num="36" count="9" type="stmt"/>
4528
+ <line num="36" count="19" type="stmt"/>
4513
4529
  <line num="39" count="34" type="stmt"/>
4514
- <line num="40" count="5" type="stmt"/>
4515
- <line num="41" count="5" type="stmt"/>
4530
+ <line num="40" count="11" type="stmt"/>
4531
+ <line num="41" count="11" type="stmt"/>
4516
4532
  <line num="44" count="34" type="stmt"/>
4517
- <line num="45" count="1" type="stmt"/>
4518
- <line num="46" count="1" type="stmt"/>
4519
- <line num="47" count="1" type="stmt"/>
4520
- <line num="48" count="1" type="stmt"/>
4521
- <line num="52" count="1" type="stmt"/>
4533
+ <line num="45" count="3" type="stmt"/>
4534
+ <line num="46" count="3" type="stmt"/>
4535
+ <line num="47" count="3" type="stmt"/>
4536
+ <line num="48" count="3" type="stmt"/>
4537
+ <line num="52" count="3" type="stmt"/>
4522
4538
  <line num="55" count="34" type="stmt"/>
4523
- <line num="56" count="3" type="stmt"/>
4524
- <line num="57" count="3" type="stmt"/>
4539
+ <line num="56" count="5" type="stmt"/>
4540
+ <line num="57" count="5" type="stmt"/>
4525
4541
  <line num="64" count="34" type="stmt"/>
4526
- <line num="65" count="10" type="cond" truecount="1" falsecount="1"/>
4542
+ <line num="65" count="14" type="cond" truecount="1" falsecount="1"/>
4527
4543
  <line num="66" count="0" type="stmt"/>
4528
4544
  <line num="67" count="0" type="stmt"/>
4529
4545
  <line num="69" count="0" type="stmt"/>
4530
- <line num="72" count="10" type="stmt"/>
4546
+ <line num="72" count="14" type="stmt"/>
4531
4547
  <line num="75" count="34" type="stmt"/>
4532
- <line num="76" count="10" type="stmt"/>
4548
+ <line num="76" count="14" type="stmt"/>
4533
4549
  <line num="84" count="34" type="cond" truecount="0" falsecount="1"/>
4534
- <line num="85" count="12" type="stmt"/>
4535
- <line num="88" count="12" type="stmt"/>
4536
- <line num="89" count="13" type="cond" truecount="1" falsecount="1"/>
4550
+ <line num="85" count="16" type="stmt"/>
4551
+ <line num="88" count="16" type="stmt"/>
4552
+ <line num="89" count="19" type="cond" truecount="1" falsecount="1"/>
4537
4553
  <line num="90" count="0" type="stmt"/>
4538
- <line num="92" count="13" type="cond" truecount="1" falsecount="1"/>
4554
+ <line num="92" count="19" type="cond" truecount="1" falsecount="1"/>
4539
4555
  <line num="94" count="0" type="stmt"/>
4540
- <line num="95" count="13" type="cond" truecount="1" falsecount="1"/>
4541
- <line num="97" count="13" type="stmt"/>
4542
- <line num="99" count="13" type="cond" truecount="2" falsecount="2"/>
4556
+ <line num="95" count="19" type="cond" truecount="1" falsecount="1"/>
4557
+ <line num="97" count="19" type="stmt"/>
4558
+ <line num="99" count="19" type="cond" truecount="2" falsecount="2"/>
4543
4559
  <line num="100" count="0" type="stmt"/>
4544
- <line num="102" count="13" type="stmt"/>
4560
+ <line num="102" count="19" type="stmt"/>
4545
4561
  <line num="106" count="0" type="stmt"/>
4546
- <line num="110" count="12" type="cond" truecount="1" falsecount="1"/>
4562
+ <line num="110" count="16" type="cond" truecount="1" falsecount="1"/>
4547
4563
  <line num="115" count="0" type="stmt"/>
4548
4564
  <line num="116" count="0" type="stmt"/>
4549
4565
  <line num="124" count="0" type="stmt"/>
4550
- <line num="127" count="12" type="stmt"/>
4566
+ <line num="127" count="16" type="stmt"/>
4551
4567
  </file>
4552
4568
  </package>
4553
4569
  <package name="utilities">
@@ -4667,26 +4683,26 @@
4667
4683
  <line num="9" count="39" type="stmt"/>
4668
4684
  <line num="10" count="39" type="stmt"/>
4669
4685
  <line num="12" count="39" type="stmt"/>
4670
- <line num="13" count="138" type="cond" truecount="4" falsecount="0"/>
4686
+ <line num="13" count="143" type="cond" truecount="4" falsecount="0"/>
4671
4687
  <line num="14" count="3" type="stmt"/>
4672
- <line num="17" count="135" type="cond" truecount="2" falsecount="2"/>
4688
+ <line num="17" count="140" type="cond" truecount="2" falsecount="2"/>
4673
4689
  <line num="18" count="0" type="stmt"/>
4674
4690
  <line num="19" count="0" type="stmt"/>
4675
4691
  <line num="20" count="0" type="stmt"/>
4676
4692
  <line num="21" count="0" type="stmt"/>
4677
- <line num="24" count="135" type="stmt"/>
4678
- <line num="26" count="135" type="cond" truecount="5" falsecount="0"/>
4679
- <line num="27" count="130" type="stmt"/>
4693
+ <line num="24" count="140" type="stmt"/>
4694
+ <line num="26" count="140" type="cond" truecount="5" falsecount="0"/>
4695
+ <line num="27" count="135" type="stmt"/>
4680
4696
  <line num="28" count="5" type="cond" truecount="1" falsecount="1"/>
4681
4697
  <line num="29" count="0" type="stmt"/>
4682
- <line num="31" count="135" type="stmt"/>
4683
- <line num="32" count="135" type="stmt"/>
4684
- <line num="36" count="131" type="cond" truecount="1" falsecount="1"/>
4685
- <line num="37" count="131" type="stmt"/>
4686
- <line num="39" count="131" type="stmt"/>
4698
+ <line num="31" count="140" type="stmt"/>
4699
+ <line num="32" count="140" type="stmt"/>
4700
+ <line num="36" count="136" type="cond" truecount="1" falsecount="1"/>
4701
+ <line num="37" count="136" type="stmt"/>
4702
+ <line num="39" count="136" type="stmt"/>
4687
4703
  <line num="42" count="39" type="stmt"/>
4688
- <line num="45" count="129" type="stmt"/>
4689
- <line num="46" count="129" type="stmt"/>
4704
+ <line num="45" count="134" type="stmt"/>
4705
+ <line num="46" count="134" type="stmt"/>
4690
4706
  <line num="49" count="39" type="stmt"/>
4691
4707
  <line num="50" count="2" type="stmt"/>
4692
4708
  <line num="51" count="2" type="stmt"/>
@@ -4733,18 +4749,18 @@
4733
4749
  <line num="17" count="1" type="stmt"/>
4734
4750
  <line num="19" count="1" type="stmt"/>
4735
4751
  <line num="28" count="37" type="stmt"/>
4736
- <line num="29" count="187" type="stmt"/>
4752
+ <line num="29" count="189" type="stmt"/>
4737
4753
  <line num="36" count="37" type="stmt"/>
4738
4754
  <line num="37" count="2" type="cond" truecount="1" falsecount="1"/>
4739
4755
  <line num="39" count="2" type="stmt"/>
4740
4756
  <line num="41" count="0" type="stmt"/>
4741
4757
  <line num="55" count="37" type="stmt"/>
4742
- <line num="56" count="191" type="cond" truecount="1" falsecount="1"/>
4758
+ <line num="56" count="194" type="cond" truecount="1" falsecount="1"/>
4743
4759
  <line num="57" count="0" type="stmt"/>
4744
4760
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
4745
4761
  <line num="62" count="0" type="stmt"/>
4746
4762
  <line num="64" count="0" type="stmt"/>
4747
- <line num="66" count="191" type="stmt"/>
4763
+ <line num="66" count="194" type="stmt"/>
4748
4764
  <line num="70" count="37" type="stmt"/>
4749
4765
  <line num="71" count="2" type="stmt"/>
4750
4766
  <line num="76" count="37" type="stmt"/>
@@ -4787,13 +4803,13 @@
4787
4803
  <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
4788
4804
  <line num="150" count="0" type="stmt"/>
4789
4805
  <line num="154" count="37" type="stmt"/>
4790
- <line num="155" count="17" type="stmt"/>
4791
- <line num="156" count="17" type="stmt"/>
4792
- <line num="157" count="17" type="stmt"/>
4793
- <line num="158" count="17" type="cond" truecount="2" falsecount="0"/>
4794
- <line num="159" count="17" type="cond" truecount="1" falsecount="1"/>
4806
+ <line num="155" count="21" type="stmt"/>
4807
+ <line num="156" count="21" type="stmt"/>
4808
+ <line num="157" count="21" type="stmt"/>
4809
+ <line num="158" count="21" type="cond" truecount="2" falsecount="0"/>
4810
+ <line num="159" count="21" type="cond" truecount="1" falsecount="1"/>
4795
4811
  <line num="160" count="0" type="stmt"/>
4796
- <line num="162" count="17" type="cond" truecount="3" falsecount="1"/>
4812
+ <line num="162" count="21" type="cond" truecount="3" falsecount="1"/>
4797
4813
  </file>
4798
4814
  <file name="scriptRunner.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/scriptRunner.js">
4799
4815
  <metrics statements="13" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
@@ -4869,19 +4885,19 @@
4869
4885
  <line num="5" count="34" type="stmt"/>
4870
4886
  <line num="6" count="34" type="stmt"/>
4871
4887
  <line num="7" count="34" type="stmt"/>
4872
- <line num="10" count="184" type="cond" truecount="1" falsecount="1"/>
4873
- <line num="11" count="184" type="stmt"/>
4874
- <line num="13" count="184" type="cond" truecount="2" falsecount="0"/>
4875
- <line num="14" count="173" type="stmt"/>
4876
- <line num="15" count="173" type="cond" truecount="2" falsecount="0"/>
4888
+ <line num="10" count="186" type="cond" truecount="1" falsecount="1"/>
4889
+ <line num="11" count="186" type="stmt"/>
4890
+ <line num="13" count="186" type="cond" truecount="2" falsecount="0"/>
4891
+ <line num="14" count="175" type="stmt"/>
4892
+ <line num="15" count="175" type="cond" truecount="2" falsecount="0"/>
4877
4893
  <line num="16" count="6" type="stmt"/>
4878
- <line num="19" count="184" type="cond" truecount="2" falsecount="2"/>
4894
+ <line num="19" count="186" type="cond" truecount="2" falsecount="2"/>
4879
4895
  <line num="20" count="0" type="stmt"/>
4880
4896
  <line num="21" count="0" type="stmt"/>
4881
- <line num="26" count="184" type="stmt"/>
4882
- <line num="28" count="184" type="cond" truecount="3" falsecount="1"/>
4897
+ <line num="26" count="186" type="stmt"/>
4898
+ <line num="28" count="186" type="cond" truecount="3" falsecount="1"/>
4883
4899
  <line num="29" count="0" type="stmt"/>
4884
- <line num="31" count="184" type="stmt"/>
4900
+ <line num="31" count="186" type="stmt"/>
4885
4901
  <line num="34" count="34" type="stmt"/>
4886
4902
  <line num="37" count="34" type="stmt"/>
4887
4903
  <line num="39" count="0" type="stmt"/>
@@ -4890,15 +4906,15 @@
4890
4906
  <line num="56" count="0" type="stmt"/>
4891
4907
  <line num="58" count="0" type="stmt"/>
4892
4908
  <line num="61" count="34" type="stmt"/>
4893
- <line num="62" count="173" type="stmt"/>
4894
- <line num="63" count="173" type="stmt"/>
4895
- <line num="69" count="173" type="stmt"/>
4896
- <line num="70" count="173" type="stmt"/>
4897
- <line num="71" count="173" type="stmt"/>
4898
- <line num="72" count="173" type="cond" truecount="1" falsecount="1"/>
4899
- <line num="73" count="173" type="stmt"/>
4900
- <line num="74" count="173" type="stmt"/>
4901
- <line num="77" count="173" type="stmt"/>
4909
+ <line num="62" count="175" type="stmt"/>
4910
+ <line num="63" count="175" type="stmt"/>
4911
+ <line num="69" count="175" type="stmt"/>
4912
+ <line num="70" count="175" type="stmt"/>
4913
+ <line num="71" count="175" type="stmt"/>
4914
+ <line num="72" count="175" type="cond" truecount="1" falsecount="1"/>
4915
+ <line num="73" count="175" type="stmt"/>
4916
+ <line num="74" count="175" type="stmt"/>
4917
+ <line num="77" count="175" type="stmt"/>
4902
4918
  <line num="80" count="0" type="stmt"/>
4903
4919
  <line num="84" count="34" type="cond" truecount="0" falsecount="1"/>
4904
4920
  <line num="85" count="0" type="stmt"/>
@@ -4939,7 +4955,7 @@
4939
4955
  <line num="73" count="8" type="stmt"/>
4940
4956
  <line num="74" count="8" type="stmt"/>
4941
4957
  <line num="83" count="0" type="stmt"/>
4942
- <line num="90" count="189" type="stmt"/>
4958
+ <line num="90" count="192" type="stmt"/>
4943
4959
  <line num="97" count="0" type="stmt"/>
4944
4960
  <line num="101" count="33" type="stmt"/>
4945
4961
  </file>