@budibase/server 0.9.185-alpha.13 → 0.9.185-alpha.17

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 (199) hide show
  1. package/Dockerfile +7 -1
  2. package/__mocks__/oracledb.ts +31 -0
  3. package/builder/assets/{index.4a7c5636.css → index.67ac3a72.css} +1 -1
  4. package/builder/assets/{index.dc495306.js → index.a8407653.js} +176 -175
  5. package/builder/assets/oracle.66592424.png +0 -0
  6. package/builder/index.html +2 -2
  7. package/coverage/clover.xml +239 -230
  8. package/coverage/coverage-final.json +7 -7
  9. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/application.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/index.html +1 -1
  21. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/query.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/external.js.html +29 -8
  37. package/coverage/lcov-report/api/controllers/table/index.html +13 -13
  38. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  47. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  48. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  49. package/coverage/lcov-report/api/index.html +1 -1
  50. package/coverage/lcov-report/api/index.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/index.html +1 -1
  64. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  79. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  80. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  81. package/coverage/lcov-report/automations/actions.js.html +1 -1
  82. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  83. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  84. package/coverage/lcov-report/automations/index.html +1 -1
  85. package/coverage/lcov-report/automations/index.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/index.html +1 -1
  95. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  102. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  103. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  111. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  112. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  113. package/coverage/lcov-report/automations/utils.js.html +1 -1
  114. package/coverage/lcov-report/constants/index.html +1 -1
  115. package/coverage/lcov-report/constants/index.js.html +22 -22
  116. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  117. package/coverage/lcov-report/constants/screens.js.html +1 -1
  118. package/coverage/lcov-report/db/client.js.html +1 -1
  119. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  120. package/coverage/lcov-report/db/index.html +1 -1
  121. package/coverage/lcov-report/db/index.js.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  124. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  125. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  126. package/coverage/lcov-report/db/newid.js.html +3 -3
  127. package/coverage/lcov-report/db/utils.js.html +57 -57
  128. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  129. package/coverage/lcov-report/events/index.html +1 -1
  130. package/coverage/lcov-report/events/index.js.html +1 -1
  131. package/coverage/lcov-report/events/utils.js.html +1 -1
  132. package/coverage/lcov-report/index.html +23 -23
  133. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  134. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  135. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  136. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  137. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  138. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  139. package/coverage/lcov-report/middleware/index.html +1 -1
  140. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  141. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  142. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  143. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  144. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  145. package/coverage/lcov-report/threads/automation.js.html +14 -8
  146. package/coverage/lcov-report/threads/index.html +27 -27
  147. package/coverage/lcov-report/threads/index.js.html +29 -11
  148. package/coverage/lcov-report/threads/query.js.html +16 -7
  149. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  150. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  151. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  152. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  153. package/coverage/lcov-report/utilities/global.js.html +1 -1
  154. package/coverage/lcov-report/utilities/index.html +1 -1
  155. package/coverage/lcov-report/utilities/index.js.html +1 -1
  156. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  157. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  158. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  159. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  160. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  161. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  162. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  163. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  164. package/coverage/lcov-report/utilities/security.js.html +1 -1
  165. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  166. package/coverage/lcov-report/utilities/users.js.html +1 -1
  167. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  168. package/coverage/lcov.info +328 -309
  169. package/dist/api/controllers/table/external.js +8 -1
  170. package/dist/definitions/datasource.js +1 -0
  171. package/dist/environment.js +13 -0
  172. package/dist/integrations/base/sql.js +4 -0
  173. package/dist/integrations/index.js +6 -0
  174. package/dist/integrations/oracle.js +345 -0
  175. package/dist/integrations/utils.js +10 -1
  176. package/dist/package.json +8 -4
  177. package/dist/threads/automation.js +3 -1
  178. package/dist/threads/index.js +9 -3
  179. package/dist/threads/query.js +3 -0
  180. package/dist/tsconfig.tsbuildinfo +1 -1
  181. package/package.json +9 -5
  182. package/scripts/dev/manage.js +1 -0
  183. package/scripts/integrations/oracle/docker-compose.yml +19 -0
  184. package/scripts/integrations/oracle/instantclient/linux/x86-64/basiclite-21.4.zip +0 -0
  185. package/scripts/integrations/oracle/instantclient/linux/x86-64/install.sh +23 -0
  186. package/scripts/integrations/oracle/oracle.md +90 -0
  187. package/scripts/integrations/postgres/docker-compose.yml +3 -3
  188. package/src/api/controllers/table/external.js +8 -1
  189. package/src/definitions/datasource.ts +1 -0
  190. package/src/environment.js +15 -0
  191. package/src/integrations/base/IntegrationBase.ts +4 -4
  192. package/src/integrations/base/sql.ts +3 -0
  193. package/src/integrations/index.ts +7 -0
  194. package/src/integrations/oracle.ts +445 -0
  195. package/src/integrations/tests/oracle.spec.js +94 -0
  196. package/src/integrations/utils.ts +10 -1
  197. package/src/threads/automation.js +3 -1
  198. package/src/threads/index.js +9 -3
  199. package/src/threads/query.js +3 -0
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1637579462987" clover="3.2.0">
3
- <project timestamp="1637579462987" name="All files">
4
- <metrics statements="4356" coveredstatements="3220" conditionals="1719" coveredconditionals="937" methods="618" coveredmethods="440" elements="6693" coveredelements="4597" complexity="0" loc="4356" ncloc="4356" packages="20" files="138" classes="138"/>
2
+ <coverage generated="1637698402543" clover="3.2.0">
3
+ <project timestamp="1637698402544" name="All files">
4
+ <metrics statements="4365" coveredstatements="3225" conditionals="1729" coveredconditionals="940" methods="618" coveredmethods="440" elements="6712" coveredelements="4605" complexity="0" loc="4365" ncloc="4365" packages="20" files="138" classes="138"/>
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">
@@ -1826,9 +1826,9 @@
1826
1826
  </file>
1827
1827
  </package>
1828
1828
  <package name="api.controllers.table">
1829
- <metrics statements="421" coveredstatements="220" conditionals="219" coveredconditionals="84" methods="56" coveredmethods="27"/>
1829
+ <metrics statements="425" coveredstatements="220" conditionals="225" coveredconditionals="84" methods="56" coveredmethods="27"/>
1830
1830
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/external.js">
1831
- <metrics statements="133" coveredstatements="11" conditionals="70" coveredconditionals="0" methods="14" coveredmethods="0"/>
1831
+ <metrics statements="137" coveredstatements="11" conditionals="76" coveredconditionals="0" methods="14" coveredmethods="0"/>
1832
1832
  <line num="1" count="34" type="stmt"/>
1833
1833
  <line num="5" count="34" type="stmt"/>
1834
1834
  <line num="12" count="34" type="stmt"/>
@@ -1893,75 +1893,79 @@
1893
1893
  <line num="163" count="0" type="stmt"/>
1894
1894
  <line num="165" count="0" type="stmt"/>
1895
1895
  <line num="166" count="0" type="stmt"/>
1896
- <line num="167" count="0" type="stmt"/>
1897
- <line num="174" count="0" type="cond" truecount="0" falsecount="4"/>
1898
- <line num="175" count="0" type="stmt"/>
1899
- <line num="178" count="0" type="cond" truecount="0" falsecount="2"/>
1896
+ <line num="168" count="0" type="cond" truecount="0" falsecount="2"/>
1897
+ <line num="169" count="0" type="stmt"/>
1898
+ <line num="171" count="0" type="stmt"/>
1899
+ <line num="178" count="0" type="cond" truecount="0" falsecount="4"/>
1900
1900
  <line num="179" count="0" type="stmt"/>
1901
- <line num="182" count="0" type="stmt"/>
1901
+ <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
1902
1902
  <line num="183" count="0" type="stmt"/>
1903
- <line num="184" count="0" type="stmt"/>
1904
- <line num="185" count="0" type="stmt"/>
1903
+ <line num="186" count="0" type="stmt"/>
1905
1904
  <line num="187" count="0" type="stmt"/>
1906
- <line num="190" count="0" type="stmt"/>
1907
- <line num="191" count="0" type="cond" truecount="0" falsecount="4"/>
1908
- <line num="192" count="0" type="stmt"/>
1905
+ <line num="188" count="0" type="stmt"/>
1906
+ <line num="189" count="0" type="stmt"/>
1907
+ <line num="191" count="0" type="stmt"/>
1909
1908
  <line num="194" count="0" type="stmt"/>
1910
- <line num="195" count="0" type="stmt"/>
1911
- <line num="197" count="0" type="stmt"/>
1909
+ <line num="195" count="0" type="cond" truecount="0" falsecount="4"/>
1910
+ <line num="196" count="0" type="stmt"/>
1912
1911
  <line num="198" count="0" type="stmt"/>
1913
- <line num="199" count="0" type="cond" truecount="0" falsecount="2"/>
1914
- <line num="200" count="0" type="stmt"/>
1915
- <line num="206" count="0" type="cond" truecount="0" falsecount="2"/>
1916
- <line num="207" count="0" type="stmt"/>
1917
- <line num="209" count="0" type="stmt"/>
1918
- <line num="210" count="0" type="stmt"/>
1919
- <line num="213" count="0" type="cond" truecount="0" falsecount="2"/>
1912
+ <line num="199" count="0" type="stmt"/>
1913
+ <line num="201" count="0" type="stmt"/>
1914
+ <line num="202" count="0" type="stmt"/>
1915
+ <line num="203" count="0" type="cond" truecount="0" falsecount="2"/>
1916
+ <line num="204" count="0" type="stmt"/>
1917
+ <line num="210" count="0" type="cond" truecount="0" falsecount="2"/>
1918
+ <line num="211" count="0" type="stmt"/>
1919
+ <line num="213" count="0" type="stmt"/>
1920
1920
  <line num="214" count="0" type="stmt"/>
1921
- <line num="220" count="0" type="stmt"/>
1922
- <line num="221" count="0" type="cond" truecount="0" falsecount="2"/>
1923
- <line num="222" count="0" type="stmt"/>
1924
- <line num="224" count="0" type="cond" truecount="0" falsecount="2"/>
1925
- <line num="225" count="0" type="stmt"/>
1921
+ <line num="217" count="0" type="cond" truecount="0" falsecount="2"/>
1922
+ <line num="218" count="0" type="stmt"/>
1923
+ <line num="224" count="0" type="stmt"/>
1924
+ <line num="225" count="0" type="cond" truecount="0" falsecount="2"/>
1925
+ <line num="226" count="0" type="stmt"/>
1926
1926
  <line num="228" count="0" type="cond" truecount="0" falsecount="2"/>
1927
1927
  <line num="229" count="0" type="stmt"/>
1928
- <line num="232" count="0" type="stmt"/>
1928
+ <line num="232" count="0" type="cond" truecount="0" falsecount="2"/>
1929
1929
  <line num="233" count="0" type="stmt"/>
1930
1930
  <line num="236" count="0" type="stmt"/>
1931
- <line num="238" count="0" type="cond" truecount="0" falsecount="2"/>
1932
- <line num="241" count="0" type="stmt"/>
1933
- <line num="243" count="0" type="stmt"/>
1934
- <line num="244" count="0" type="stmt"/>
1935
- <line num="245" count="0" type="cond" truecount="0" falsecount="2"/>
1931
+ <line num="237" count="0" type="stmt"/>
1932
+ <line num="240" count="0" type="stmt"/>
1933
+ <line num="242" count="0" type="cond" truecount="0" falsecount="2"/>
1934
+ <line num="245" count="0" type="stmt"/>
1935
+ <line num="247" count="0" type="stmt"/>
1936
1936
  <line num="248" count="0" type="stmt"/>
1937
- <line num="252" count="0" type="cond" truecount="0" falsecount="2"/>
1938
- <line num="253" count="0" type="stmt"/>
1939
- <line num="254" count="0" type="stmt"/>
1940
- <line num="259" count="0" type="stmt"/>
1941
- <line num="260" count="0" type="stmt"/>
1942
- <line num="262" count="0" type="stmt"/>
1943
- <line num="265" count="34" type="stmt"/>
1937
+ <line num="249" count="0" type="cond" truecount="0" falsecount="2"/>
1938
+ <line num="252" count="0" type="stmt"/>
1939
+ <line num="256" count="0" type="cond" truecount="0" falsecount="2"/>
1940
+ <line num="257" count="0" type="stmt"/>
1941
+ <line num="258" count="0" type="stmt"/>
1942
+ <line num="263" count="0" type="stmt"/>
1943
+ <line num="264" count="0" type="stmt"/>
1944
1944
  <line num="266" count="0" type="stmt"/>
1945
- <line num="267" count="0" type="stmt"/>
1946
- <line num="268" count="0" type="stmt"/>
1945
+ <line num="269" count="34" type="stmt"/>
1947
1946
  <line num="270" count="0" type="stmt"/>
1948
1947
  <line num="271" count="0" type="stmt"/>
1949
- <line num="272" count="0" type="stmt"/>
1950
- <line num="274" count="0" type="stmt"/>
1948
+ <line num="272" count="0" type="cond" truecount="0" falsecount="4"/>
1949
+ <line num="273" count="0" type="stmt"/>
1951
1950
  <line num="275" count="0" type="stmt"/>
1952
1951
  <line num="277" count="0" type="stmt"/>
1952
+ <line num="278" count="0" type="stmt"/>
1953
1953
  <line num="279" count="0" type="stmt"/>
1954
- <line num="280" count="0" type="stmt"/>
1954
+ <line num="281" count="0" type="stmt"/>
1955
1955
  <line num="282" count="0" type="stmt"/>
1956
- <line num="285" count="34" type="stmt"/>
1956
+ <line num="284" count="0" type="stmt"/>
1957
1957
  <line num="286" count="0" type="stmt"/>
1958
1958
  <line num="287" count="0" type="stmt"/>
1959
- <line num="288" count="0" type="stmt"/>
1960
- <line num="289" count="0" type="cond" truecount="0" falsecount="5"/>
1961
- <line num="290" count="0" type="stmt"/>
1962
- <line num="292" count="0" type="stmt"/>
1963
- <line num="296" count="0" type="stmt"/>
1959
+ <line num="289" count="0" type="stmt"/>
1960
+ <line num="292" count="34" type="stmt"/>
1961
+ <line num="293" count="0" type="stmt"/>
1962
+ <line num="294" count="0" type="stmt"/>
1963
+ <line num="295" count="0" type="stmt"/>
1964
+ <line num="296" count="0" type="cond" truecount="0" falsecount="5"/>
1965
+ <line num="297" count="0" type="stmt"/>
1964
1966
  <line num="299" count="0" type="stmt"/>
1967
+ <line num="303" count="0" type="stmt"/>
1968
+ <line num="306" count="0" type="stmt"/>
1965
1969
  </file>
1966
1970
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/index.js">
1967
1971
  <metrics statements="53" coveredstatements="44" conditionals="23" coveredconditionals="17" methods="10" coveredmethods="7"/>
@@ -3365,27 +3369,27 @@
3365
3369
  <metrics statements="28" coveredstatements="28" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3366
3370
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/index.js">
3367
3371
  <metrics statements="21" coveredstatements="21" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3368
- <line num="1" count="40" type="stmt"/>
3369
- <line num="2" count="40" type="stmt"/>
3370
- <line num="3" count="40" type="stmt"/>
3371
- <line num="5" count="40" type="stmt"/>
3372
- <line num="9" count="40" type="stmt"/>
3373
- <line num="22" count="40" type="stmt"/>
3374
- <line num="23" count="40" type="stmt"/>
3375
- <line num="32" count="40" type="stmt"/>
3376
- <line num="48" count="40" type="stmt"/>
3377
- <line num="55" count="40" type="stmt"/>
3378
- <line num="61" count="40" type="stmt"/>
3379
- <line num="67" count="40" type="stmt"/>
3380
- <line num="78" count="40" type="stmt"/>
3381
- <line num="83" count="40" type="stmt"/>
3382
- <line num="145" count="40" type="stmt"/>
3383
- <line num="153" count="40" type="stmt"/>
3384
- <line num="154" count="40" type="stmt"/>
3385
- <line num="161" count="40" type="stmt"/>
3386
- <line num="166" count="40" type="stmt"/>
3387
- <line num="172" count="40" type="stmt"/>
3388
- <line num="178" count="40" type="stmt"/>
3372
+ <line num="1" count="41" type="stmt"/>
3373
+ <line num="2" count="41" type="stmt"/>
3374
+ <line num="3" count="41" type="stmt"/>
3375
+ <line num="5" count="41" type="stmt"/>
3376
+ <line num="9" count="41" type="stmt"/>
3377
+ <line num="22" count="41" type="stmt"/>
3378
+ <line num="23" count="41" type="stmt"/>
3379
+ <line num="32" count="41" type="stmt"/>
3380
+ <line num="48" count="41" type="stmt"/>
3381
+ <line num="55" count="41" type="stmt"/>
3382
+ <line num="61" count="41" type="stmt"/>
3383
+ <line num="67" count="41" type="stmt"/>
3384
+ <line num="78" count="41" type="stmt"/>
3385
+ <line num="83" count="41" type="stmt"/>
3386
+ <line num="145" count="41" type="stmt"/>
3387
+ <line num="153" count="41" type="stmt"/>
3388
+ <line num="154" count="41" type="stmt"/>
3389
+ <line num="161" count="41" type="stmt"/>
3390
+ <line num="166" count="41" type="stmt"/>
3391
+ <line num="172" count="41" type="stmt"/>
3392
+ <line num="178" count="41" type="stmt"/>
3389
3393
  </file>
3390
3394
  <file name="layouts.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/layouts.js">
3391
3395
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -3456,119 +3460,119 @@
3456
3460
  </file>
3457
3461
  <file name="newid.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/newid.js">
3458
3462
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3459
- <line num="1" count="46" type="stmt"/>
3460
- <line num="3" count="46" type="stmt"/>
3463
+ <line num="1" count="47" type="stmt"/>
3464
+ <line num="3" count="47" type="stmt"/>
3461
3465
  <line num="4" count="803" type="stmt"/>
3462
3466
  </file>
3463
3467
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3464
3468
  <metrics statements="108" coveredstatements="100" conditionals="51" coveredconditionals="18" methods="30" coveredmethods="27"/>
3465
- <line num="1" count="46" type="stmt"/>
3466
- <line num="12" count="46" type="stmt"/>
3467
- <line num="14" count="46" type="stmt"/>
3468
- <line num="16" count="46" type="stmt"/>
3469
- <line num="22" count="46" type="stmt"/>
3470
- <line num="45" count="46" type="stmt"/>
3471
- <line num="50" count="46" type="stmt"/>
3472
- <line num="54" count="46" type="stmt"/>
3473
- <line num="58" count="46" type="stmt"/>
3474
- <line num="60" count="46" type="stmt"/>
3475
- <line num="68" count="46" type="stmt"/>
3476
- <line num="69" count="46" type="stmt"/>
3477
- <line num="70" count="46" type="stmt"/>
3478
- <line num="71" count="46" type="stmt"/>
3479
- <line num="72" count="46" type="stmt"/>
3480
- <line num="73" count="46" type="stmt"/>
3481
- <line num="74" count="46" type="stmt"/>
3482
- <line num="75" count="46" type="stmt"/>
3483
- <line num="76" count="46" type="stmt"/>
3484
- <line num="77" count="46" type="stmt"/>
3485
- <line num="78" count="46" type="stmt"/>
3486
- <line num="79" count="46" type="stmt"/>
3487
- <line num="80" count="46" type="stmt"/>
3488
- <line num="81" count="46" type="stmt"/>
3489
- <line num="83" count="46" type="stmt"/>
3490
- <line num="84" count="46" type="stmt"/>
3491
- <line num="86" count="46" type="stmt"/>
3469
+ <line num="1" count="47" type="stmt"/>
3470
+ <line num="12" count="47" type="stmt"/>
3471
+ <line num="14" count="47" type="stmt"/>
3472
+ <line num="16" count="47" type="stmt"/>
3473
+ <line num="22" count="47" type="stmt"/>
3474
+ <line num="45" count="47" type="stmt"/>
3475
+ <line num="50" count="47" type="stmt"/>
3476
+ <line num="54" count="47" type="stmt"/>
3477
+ <line num="58" count="47" type="stmt"/>
3478
+ <line num="60" count="47" type="stmt"/>
3479
+ <line num="68" count="47" type="stmt"/>
3480
+ <line num="69" count="47" type="stmt"/>
3481
+ <line num="70" count="47" type="stmt"/>
3482
+ <line num="71" count="47" type="stmt"/>
3483
+ <line num="72" count="47" type="stmt"/>
3484
+ <line num="73" count="47" type="stmt"/>
3485
+ <line num="74" count="47" type="stmt"/>
3486
+ <line num="75" count="47" type="stmt"/>
3487
+ <line num="76" count="47" type="stmt"/>
3488
+ <line num="77" count="47" type="stmt"/>
3489
+ <line num="78" count="47" type="stmt"/>
3490
+ <line num="79" count="47" type="stmt"/>
3491
+ <line num="80" count="47" type="stmt"/>
3492
+ <line num="81" count="47" type="stmt"/>
3493
+ <line num="83" count="47" type="stmt"/>
3494
+ <line num="84" count="47" type="stmt"/>
3495
+ <line num="86" count="47" type="stmt"/>
3492
3496
  <line num="87" count="74" type="stmt"/>
3493
3497
  <line num="103" count="603" type="cond" truecount="2" falsecount="0"/>
3494
3498
  <line num="104" count="590" type="stmt"/>
3495
3499
  <line num="106" count="603" type="stmt"/>
3496
- <line num="113" count="46" type="stmt"/>
3497
- <line num="118" count="46" type="cond" truecount="0" falsecount="2"/>
3500
+ <line num="113" count="47" type="stmt"/>
3501
+ <line num="118" count="47" type="cond" truecount="0" falsecount="2"/>
3498
3502
  <line num="119" count="3" type="stmt"/>
3499
- <line num="126" count="46" type="stmt"/>
3503
+ <line num="126" count="47" type="stmt"/>
3500
3504
  <line num="127" count="99" type="stmt"/>
3501
- <line num="138" count="46" type="cond" truecount="0" falsecount="3"/>
3505
+ <line num="138" count="47" type="cond" truecount="0" falsecount="3"/>
3502
3506
  <line num="139" count="11" type="cond" truecount="1" falsecount="1"/>
3503
3507
  <line num="140" count="0" type="stmt"/>
3504
3508
  <line num="143" count="11" type="cond" truecount="1" falsecount="1"/>
3505
3509
  <line num="145" count="11" type="stmt"/>
3506
- <line num="154" count="46" type="cond" truecount="1" falsecount="0"/>
3510
+ <line num="154" count="47" type="cond" truecount="1" falsecount="0"/>
3507
3511
  <line num="155" count="200" type="cond" truecount="2" falsecount="0"/>
3508
3512
  <line num="156" count="200" type="stmt"/>
3509
- <line num="162" count="46" type="cond" truecount="0" falsecount="2"/>
3513
+ <line num="162" count="47" type="cond" truecount="0" falsecount="2"/>
3510
3514
  <line num="163" count="3" type="stmt"/>
3511
- <line num="171" count="46" type="stmt"/>
3515
+ <line num="171" count="47" type="stmt"/>
3512
3516
  <line num="172" count="132" type="stmt"/>
3513
- <line num="178" count="46" type="stmt"/>
3517
+ <line num="178" count="47" type="stmt"/>
3514
3518
  <line num="179" count="2" type="stmt"/>
3515
3519
  <line num="180" count="2" type="cond" truecount="4" falsecount="0"/>
3516
3520
  <line num="181" count="1" type="stmt"/>
3517
3521
  <line num="183" count="1" type="stmt"/>
3518
- <line num="189" count="46" type="cond" truecount="0" falsecount="2"/>
3522
+ <line num="189" count="47" type="cond" truecount="0" falsecount="2"/>
3519
3523
  <line num="190" count="203" type="stmt"/>
3520
- <line num="197" count="46" type="stmt"/>
3524
+ <line num="197" count="47" type="stmt"/>
3521
3525
  <line num="198" count="20" type="stmt"/>
3522
- <line num="212" count="46" type="stmt"/>
3526
+ <line num="212" count="47" type="stmt"/>
3523
3527
  <line num="220" count="9" type="stmt"/>
3524
3528
  <line num="221" count="9" type="stmt"/>
3525
3529
  <line num="222" count="9" type="stmt"/>
3526
3530
  <line num="223" count="9" type="stmt"/>
3527
- <line num="229" count="46" type="cond" truecount="0" falsecount="1"/>
3531
+ <line num="229" count="47" type="cond" truecount="0" falsecount="1"/>
3528
3532
  <line num="230" count="0" type="stmt"/>
3529
- <line num="237" count="46" type="cond" truecount="0" falsecount="1"/>
3533
+ <line num="237" count="47" type="cond" truecount="0" falsecount="1"/>
3530
3534
  <line num="238" count="178" type="stmt"/>
3531
3535
  <line num="239" count="178" type="cond" truecount="1" falsecount="1"/>
3532
3536
  <line num="240" count="0" type="stmt"/>
3533
3537
  <line num="242" count="178" type="stmt"/>
3534
- <line num="249" count="46" type="stmt"/>
3538
+ <line num="249" count="47" type="stmt"/>
3535
3539
  <line num="250" count="178" type="stmt"/>
3536
3540
  <line num="251" count="178" type="stmt"/>
3537
3541
  <line num="252" count="178" type="stmt"/>
3538
- <line num="259" count="46" type="stmt"/>
3542
+ <line num="259" count="47" type="stmt"/>
3539
3543
  <line num="260" count="5" type="cond" truecount="2" falsecount="0"/>
3540
- <line num="266" count="46" type="cond" truecount="0" falsecount="2"/>
3544
+ <line num="266" count="47" type="cond" truecount="0" falsecount="2"/>
3541
3545
  <line num="267" count="188" type="stmt"/>
3542
- <line num="274" count="46" type="stmt"/>
3546
+ <line num="274" count="47" type="stmt"/>
3543
3547
  <line num="275" count="197" type="stmt"/>
3544
- <line num="281" count="46" type="cond" truecount="0" falsecount="2"/>
3548
+ <line num="281" count="47" type="cond" truecount="0" falsecount="2"/>
3545
3549
  <line num="282" count="190" type="stmt"/>
3546
- <line num="289" count="46" type="stmt"/>
3550
+ <line num="289" count="47" type="stmt"/>
3547
3551
  <line num="290" count="10" type="stmt"/>
3548
- <line num="296" count="46" type="cond" truecount="0" falsecount="2"/>
3552
+ <line num="296" count="47" type="cond" truecount="0" falsecount="2"/>
3549
3553
  <line num="297" count="2" type="stmt"/>
3550
- <line num="304" count="46" type="cond" truecount="1" falsecount="1"/>
3554
+ <line num="304" count="47" type="cond" truecount="1" falsecount="1"/>
3551
3555
  <line num="305" count="23" type="stmt"/>
3552
- <line num="313" count="46" type="cond" truecount="0" falsecount="2"/>
3556
+ <line num="313" count="47" type="cond" truecount="0" falsecount="2"/>
3553
3557
  <line num="314" count="3" type="stmt"/>
3554
- <line num="321" count="46" type="stmt"/>
3558
+ <line num="321" count="47" type="stmt"/>
3555
3559
  <line num="322" count="18" type="stmt"/>
3556
- <line num="330" count="46" type="cond" truecount="0" falsecount="2"/>
3560
+ <line num="330" count="47" type="cond" truecount="0" falsecount="2"/>
3557
3561
  <line num="331" count="3" type="cond" truecount="2" falsecount="0"/>
3558
3562
  <line num="332" count="2" type="stmt"/>
3559
3563
  <line num="335" count="1" type="stmt"/>
3560
- <line num="342" count="46" type="stmt"/>
3564
+ <line num="342" count="47" type="stmt"/>
3561
3565
  <line num="343" count="10" type="stmt"/>
3562
- <line num="346" count="46" type="cond" truecount="0" falsecount="2"/>
3566
+ <line num="346" count="47" type="cond" truecount="0" falsecount="2"/>
3563
3567
  <line num="347" count="0" type="stmt"/>
3564
3568
  <line num="348" count="0" type="cond" truecount="0" falsecount="2"/>
3565
3569
  <line num="349" count="0" type="stmt"/>
3566
3570
  <line num="351" count="0" type="stmt"/>
3567
- <line num="354" count="46" type="stmt"/>
3571
+ <line num="354" count="47" type="stmt"/>
3568
3572
  <line num="355" count="1" type="stmt"/>
3569
- <line num="358" count="46" type="cond" truecount="0" falsecount="1"/>
3573
+ <line num="358" count="47" type="cond" truecount="0" falsecount="1"/>
3570
3574
  <line num="359" count="0" type="stmt"/>
3571
- <line num="365" count="46" type="stmt"/>
3575
+ <line num="365" count="47" type="stmt"/>
3572
3576
  <line num="366" count="60" type="stmt"/>
3573
3577
  </file>
3574
3578
  </package>
@@ -4188,10 +4192,9 @@
4188
4192
  </file>
4189
4193
  </package>
4190
4194
  <package name="threads">
4191
- <metrics statements="129" coveredstatements="103" conditionals="49" coveredconditionals="27" methods="22" coveredmethods="20"/>
4195
+ <metrics statements="134" coveredstatements="108" conditionals="53" coveredconditionals="30" methods="22" coveredmethods="20"/>
4192
4196
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4193
- <metrics statements="75" coveredstatements="63" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4194
- <line num="1" count="4" type="stmt"/>
4197
+ <metrics statements="76" coveredstatements="64" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4195
4198
  <line num="2" count="4" type="stmt"/>
4196
4199
  <line num="3" count="4" type="stmt"/>
4197
4200
  <line num="4" count="4" type="stmt"/>
@@ -4202,73 +4205,75 @@
4202
4205
  <line num="9" count="4" type="stmt"/>
4203
4206
  <line num="10" count="4" type="stmt"/>
4204
4207
  <line num="11" count="4" type="stmt"/>
4208
+ <line num="12" count="4" type="stmt"/>
4205
4209
  <line num="13" count="4" type="stmt"/>
4206
- <line num="14" count="4" type="stmt"/>
4207
4210
  <line num="15" count="4" type="stmt"/>
4208
- <line num="24" count="7" type="stmt"/>
4209
- <line num="25" count="7" type="cond" truecount="2" falsecount="0"/>
4211
+ <line num="16" count="4" type="stmt"/>
4212
+ <line num="17" count="4" type="stmt"/>
4210
4213
  <line num="26" count="7" type="stmt"/>
4211
- <line num="27" count="7" type="stmt"/>
4214
+ <line num="27" count="7" type="cond" truecount="2" falsecount="0"/>
4212
4215
  <line num="28" count="7" type="stmt"/>
4213
4216
  <line num="29" count="7" type="stmt"/>
4217
+ <line num="30" count="7" type="stmt"/>
4214
4218
  <line num="31" count="7" type="stmt"/>
4215
- <line num="32" count="7" type="stmt"/>
4219
+ <line num="33" count="7" type="stmt"/>
4216
4220
  <line num="34" count="7" type="stmt"/>
4217
- <line num="35" count="7" type="stmt"/>
4218
- <line num="38" count="7" type="stmt"/>
4219
- <line num="39" count="7" type="stmt"/>
4221
+ <line num="36" count="7" type="stmt"/>
4222
+ <line num="37" count="7" type="stmt"/>
4223
+ <line num="40" count="7" type="stmt"/>
4220
4224
  <line num="41" count="7" type="stmt"/>
4221
- <line num="42" count="7" type="stmt"/>
4222
- <line num="46" count="7" type="cond" truecount="1" falsecount="1"/>
4223
- <line num="47" count="0" type="stmt"/>
4224
- <line num="49" count="7" type="stmt"/>
4225
- <line num="53" count="5" type="stmt"/>
4226
- <line num="54" count="5" type="cond" truecount="1" falsecount="1"/>
4227
- <line num="55" count="0" type="stmt"/>
4228
- <line num="57" count="5" type="stmt"/>
4229
- <line num="61" count="7" type="stmt"/>
4230
- <line num="62" count="7" type="cond" truecount="1" falsecount="1"/>
4231
- <line num="63" count="0" type="stmt"/>
4232
- <line num="65" count="7" type="stmt"/>
4233
- <line num="66" count="7" type="stmt"/>
4234
- <line num="67" count="6" type="stmt"/>
4235
- <line num="71" count="12" type="stmt"/>
4236
- <line num="73" count="12" type="cond" truecount="2" falsecount="0"/>
4237
- <line num="74" count="7" type="stmt"/>
4238
- <line num="76" count="12" type="stmt"/>
4239
- <line num="80" count="7" type="stmt"/>
4240
- <line num="81" count="7" type="stmt"/>
4241
- <line num="82" count="6" type="stmt"/>
4242
- <line num="83" count="6" type="stmt"/>
4243
- <line num="85" count="5" type="cond" truecount="1" falsecount="1"/>
4244
- <line num="86" count="0" type="stmt"/>
4245
- <line num="87" count="0" type="stmt"/>
4246
- <line num="89" count="5" type="stmt"/>
4247
- <line num="90" count="5" type="stmt"/>
4225
+ <line num="43" count="7" type="stmt"/>
4226
+ <line num="44" count="7" type="stmt"/>
4227
+ <line num="48" count="7" type="cond" truecount="1" falsecount="1"/>
4228
+ <line num="49" count="0" type="stmt"/>
4229
+ <line num="51" count="7" type="stmt"/>
4230
+ <line num="55" count="5" type="stmt"/>
4231
+ <line num="56" count="5" type="cond" truecount="1" falsecount="1"/>
4232
+ <line num="57" count="0" type="stmt"/>
4233
+ <line num="59" count="5" type="stmt"/>
4234
+ <line num="63" count="7" type="stmt"/>
4235
+ <line num="64" count="7" type="cond" truecount="1" falsecount="1"/>
4236
+ <line num="65" count="0" type="stmt"/>
4237
+ <line num="67" count="7" type="stmt"/>
4238
+ <line num="68" count="7" type="stmt"/>
4239
+ <line num="69" count="6" type="stmt"/>
4240
+ <line num="73" count="12" type="stmt"/>
4241
+ <line num="75" count="12" type="cond" truecount="2" falsecount="0"/>
4242
+ <line num="76" count="7" type="stmt"/>
4243
+ <line num="78" count="12" type="stmt"/>
4244
+ <line num="82" count="7" type="stmt"/>
4245
+ <line num="83" count="7" type="stmt"/>
4246
+ <line num="84" count="6" type="stmt"/>
4247
+ <line num="85" count="6" type="stmt"/>
4248
+ <line num="87" count="5" type="cond" truecount="1" falsecount="1"/>
4249
+ <line num="88" count="0" type="stmt"/>
4250
+ <line num="89" count="0" type="stmt"/>
4248
4251
  <line num="91" count="5" type="stmt"/>
4249
- <line num="96" count="5" type="stmt"/>
4250
- <line num="97" count="5" type="cond" truecount="1" falsecount="1"/>
4252
+ <line num="92" count="5" type="stmt"/>
4253
+ <line num="93" count="5" type="stmt"/>
4251
4254
  <line num="98" count="5" type="stmt"/>
4252
- <line num="99" count="5" type="stmt"/>
4253
- <line num="106" count="5" type="stmt"/>
4254
- <line num="109" count="5" type="cond" truecount="2" falsecount="2"/>
4255
- <line num="110" count="0" type="stmt"/>
4256
- <line num="111" count="0" type="stmt"/>
4257
- <line num="115" count="0" type="stmt"/>
4258
- <line num="117" count="5" type="stmt"/>
4259
- <line num="119" count="0" type="stmt"/>
4260
- <line num="120" count="0" type="stmt"/>
4261
- <line num="125" count="6" type="cond" truecount="2" falsecount="2"/>
4262
- <line num="126" count="0" type="stmt"/>
4263
- <line num="128" count="6" type="stmt"/>
4264
- <line num="132" count="4" type="stmt"/>
4265
- <line num="133" count="7" type="stmt"/>
4266
- <line num="137" count="7" type="stmt"/>
4267
- <line num="140" count="6" type="stmt"/>
4268
- <line num="143" count="0" type="stmt"/>
4255
+ <line num="99" count="5" type="cond" truecount="1" falsecount="1"/>
4256
+ <line num="100" count="5" type="stmt"/>
4257
+ <line num="101" count="5" type="stmt"/>
4258
+ <line num="108" count="5" type="stmt"/>
4259
+ <line num="111" count="5" type="cond" truecount="2" falsecount="2"/>
4260
+ <line num="112" count="0" type="stmt"/>
4261
+ <line num="113" count="0" type="stmt"/>
4262
+ <line num="117" count="0" type="stmt"/>
4263
+ <line num="119" count="5" type="stmt"/>
4264
+ <line num="121" count="0" type="stmt"/>
4265
+ <line num="122" count="0" type="stmt"/>
4266
+ <line num="127" count="6" type="cond" truecount="2" falsecount="2"/>
4267
+ <line num="128" count="0" type="stmt"/>
4268
+ <line num="130" count="6" type="stmt"/>
4269
+ <line num="134" count="4" type="stmt"/>
4270
+ <line num="135" count="7" type="stmt"/>
4271
+ <line num="139" count="7" type="stmt"/>
4272
+ <line num="142" count="6" type="stmt"/>
4273
+ <line num="145" count="0" type="stmt"/>
4269
4274
  </file>
4270
4275
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/index.js">
4271
- <metrics statements="27" coveredstatements="21" conditionals="14" coveredconditionals="7" methods="5" coveredmethods="5"/>
4276
+ <metrics statements="29" coveredstatements="23" conditionals="18" coveredconditionals="10" methods="5" coveredmethods="5"/>
4272
4277
  <line num="1" count="34" type="stmt"/>
4273
4278
  <line num="2" count="34" type="stmt"/>
4274
4279
  <line num="4" count="34" type="stmt"/>
@@ -4281,51 +4286,55 @@
4281
4286
  <line num="19" count="0" type="stmt"/>
4282
4287
  <line num="21" count="14" type="stmt"/>
4283
4288
  <line num="26" count="67" type="stmt"/>
4284
- <line num="27" count="67" type="cond" truecount="1" falsecount="1"/>
4285
- <line num="28" count="0" type="stmt"/>
4286
- <line num="32" count="0" type="cond" truecount="0" falsecount="2"/>
4287
- <line num="33" count="0" type="stmt"/>
4288
- <line num="35" count="0" type="stmt"/>
4289
- <line num="40" count="14" type="stmt"/>
4290
- <line num="43" count="14" type="cond" truecount="1" falsecount="1"/>
4291
- <line num="44" count="14" type="stmt"/>
4292
- <line num="46" count="0" type="stmt"/>
4293
- <line num="48" count="14" type="stmt"/>
4294
- <line num="49" count="10" type="cond" truecount="2" falsecount="0"/>
4295
- <line num="50" count="2" type="stmt"/>
4296
- <line num="52" count="8" type="stmt"/>
4297
- <line num="59" count="34" type="stmt"/>
4298
- <line num="60" count="34" type="stmt"/>
4289
+ <line num="27" count="67" type="cond" truecount="2" falsecount="0"/>
4290
+ <line num="28" count="67" type="stmt"/>
4291
+ <line num="33" count="67" type="cond" truecount="1" falsecount="1"/>
4292
+ <line num="34" count="0" type="stmt"/>
4293
+ <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4294
+ <line num="39" count="0" type="stmt"/>
4295
+ <line num="41" count="0" type="stmt"/>
4296
+ <line num="46" count="14" type="stmt"/>
4297
+ <line num="49" count="14" type="cond" truecount="1" falsecount="1"/>
4298
+ <line num="50" count="14" type="stmt"/>
4299
+ <line num="52" count="0" type="stmt"/>
4300
+ <line num="54" count="14" type="stmt"/>
4301
+ <line num="55" count="10" type="cond" truecount="2" falsecount="0"/>
4302
+ <line num="56" count="2" type="stmt"/>
4303
+ <line num="58" count="8" type="stmt"/>
4304
+ <line num="65" count="34" type="stmt"/>
4305
+ <line num="66" count="34" type="stmt"/>
4299
4306
  </file>
4300
4307
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4301
- <metrics statements="27" coveredstatements="19" conditionals="12" coveredconditionals="7" methods="7" coveredmethods="6"/>
4302
- <line num="1" count="1" type="stmt"/>
4308
+ <metrics statements="29" coveredstatements="21" conditionals="12" coveredconditionals="7" methods="7" coveredmethods="6"/>
4303
4309
  <line num="2" count="1" type="stmt"/>
4304
- <line num="5" count="2" type="cond" truecount="1" falsecount="1"/>
4305
- <line num="6" count="0" type="stmt"/>
4306
- <line num="7" count="0" type="stmt"/>
4310
+ <line num="3" count="1" type="stmt"/>
4311
+ <line num="4" count="1" type="stmt"/>
4312
+ <line num="5" count="1" type="stmt"/>
4313
+ <line num="8" count="2" type="cond" truecount="1" falsecount="1"/>
4307
4314
  <line num="9" count="0" type="stmt"/>
4308
- <line num="12" count="2" type="stmt"/>
4309
- <line num="16" count="4" type="stmt"/>
4310
- <line num="17" count="4" type="cond" truecount="2" falsecount="0"/>
4311
- <line num="18" count="2" type="stmt"/>
4312
- <line num="20" count="2" type="stmt"/>
4313
- <line num="22" count="2" type="stmt"/>
4314
- <line num="25" count="2" type="cond" truecount="1" falsecount="1"/>
4315
- <line num="26" count="0" type="stmt"/>
4316
- <line num="27" count="0" type="stmt"/>
4317
- <line num="31" count="2" type="cond" truecount="1" falsecount="1"/>
4318
- <line num="32" count="0" type="stmt"/>
4319
- <line num="36" count="2" type="cond" truecount="1" falsecount="1"/>
4320
- <line num="37" count="0" type="stmt"/>
4321
- <line num="41" count="2" type="stmt"/>
4322
- <line num="43" count="2" type="cond" truecount="1" falsecount="1"/>
4323
- <line num="44" count="0" type="stmt"/>
4324
- <line num="47" count="2" type="stmt"/>
4325
- <line num="50" count="1" type="stmt"/>
4326
- <line num="51" count="4" type="stmt"/>
4327
- <line num="58" count="2" type="stmt"/>
4315
+ <line num="10" count="0" type="stmt"/>
4316
+ <line num="12" count="0" type="stmt"/>
4317
+ <line num="15" count="2" type="stmt"/>
4318
+ <line num="19" count="4" type="stmt"/>
4319
+ <line num="20" count="4" type="cond" truecount="2" falsecount="0"/>
4320
+ <line num="21" count="2" type="stmt"/>
4321
+ <line num="23" count="2" type="stmt"/>
4322
+ <line num="25" count="2" type="stmt"/>
4323
+ <line num="28" count="2" type="cond" truecount="1" falsecount="1"/>
4324
+ <line num="29" count="0" type="stmt"/>
4325
+ <line num="30" count="0" type="stmt"/>
4326
+ <line num="34" count="2" type="cond" truecount="1" falsecount="1"/>
4327
+ <line num="35" count="0" type="stmt"/>
4328
+ <line num="39" count="2" type="cond" truecount="1" falsecount="1"/>
4329
+ <line num="40" count="0" type="stmt"/>
4330
+ <line num="44" count="2" type="stmt"/>
4331
+ <line num="46" count="2" type="cond" truecount="1" falsecount="1"/>
4332
+ <line num="47" count="0" type="stmt"/>
4333
+ <line num="50" count="2" type="stmt"/>
4334
+ <line num="53" count="1" type="stmt"/>
4335
+ <line num="54" count="4" type="stmt"/>
4328
4336
  <line num="61" count="2" type="stmt"/>
4337
+ <line num="64" count="2" type="stmt"/>
4329
4338
  </file>
4330
4339
  </package>
4331
4340
  <package name="utilities">