orcaq 1.0.32 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (628) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/4by6-f6q.js +982 -0
  3. package/.output/public/_nuxt/8Ppmjv9D.js +1 -0
  4. package/.output/public/_nuxt/B1qjkRVO.js +1 -0
  5. package/.output/public/_nuxt/B3KEisfc.js +1 -0
  6. package/.output/public/_nuxt/B4ebLeWY.js +9 -0
  7. package/.output/public/_nuxt/{IitECNfD.js → B6hH0qos.js} +1 -1
  8. package/.output/public/_nuxt/{BUDtG__q.js → B7HEMfgt.js} +1 -1
  9. package/.output/public/_nuxt/B84SvUzr.js +1 -0
  10. package/.output/public/_nuxt/BDXvbRNW.js +1 -0
  11. package/.output/public/_nuxt/BGRcizqy.js +1 -0
  12. package/.output/public/_nuxt/{ClYziJpO.js → BGVGiigU.js} +1 -1
  13. package/.output/public/_nuxt/{ZdjmUBoX.js → BJYf67_H.js} +1 -1
  14. package/.output/public/_nuxt/BOK5ZFNK.js +1 -0
  15. package/.output/public/_nuxt/BPY2ud8g.js +1 -0
  16. package/.output/public/_nuxt/BSONoRG4.js +2 -0
  17. package/.output/public/_nuxt/BT53m-su.js +1 -0
  18. package/.output/public/_nuxt/BTJSh8in.js +2 -0
  19. package/.output/public/_nuxt/BVpt8J3a.js +1 -0
  20. package/.output/public/_nuxt/{BhUkpIlA.js → BdDEVolW.js} +1 -1
  21. package/.output/public/_nuxt/{C27bL9Es.js → BeNILdbT.js} +1 -1
  22. package/.output/public/_nuxt/{Dnx67EG9.js → BmU9CNkM.js} +1 -1
  23. package/.output/public/_nuxt/{DLHYqHwF.js → BnFDcr74.js} +1 -1
  24. package/.output/public/_nuxt/{sE-55p4e.js → BprXyYdv.js} +1 -1
  25. package/.output/public/_nuxt/{BCcTASq_.js → Bq7otXBA.js} +1 -1
  26. package/.output/public/_nuxt/{B_PBOfFN.js → BqyO8OjC.js} +93 -93
  27. package/.output/public/_nuxt/Bs1og3h1.js +10 -0
  28. package/.output/public/_nuxt/Bs2DgR_z.js +1 -0
  29. package/.output/public/_nuxt/{BsoQBloB.js → BvUhrUEH.js} +1 -1
  30. package/.output/public/_nuxt/{DkggUtNN.js → BxDrCsPf.js} +1 -1
  31. package/.output/public/_nuxt/BxrwrGYE.js +1 -0
  32. package/.output/public/_nuxt/By0aUn7N.js +1 -0
  33. package/.output/public/_nuxt/{C07rlnlv.js → ByOuUnNS.js} +1 -1
  34. package/.output/public/_nuxt/C177_GoB.js +1 -0
  35. package/.output/public/_nuxt/{DcfsxCxL.js → C1jMZ4hc.js} +1 -1
  36. package/.output/public/_nuxt/C5bgdIOp.js +1 -0
  37. package/.output/public/_nuxt/C69a9jD3.js +67 -0
  38. package/.output/public/_nuxt/C8AyZ3_X.js +2 -0
  39. package/.output/public/_nuxt/C8KplD68.js +1 -0
  40. package/.output/public/_nuxt/CA99KAte.js +3 -0
  41. package/.output/public/_nuxt/{CvTHaPAO.js → CE8aasoy.js} +1 -1
  42. package/.output/public/_nuxt/{DkY69STm.js → CEvNlevo.js} +1 -1
  43. package/.output/public/_nuxt/{B8JnYxjr.js → CKqvNpN3.js} +1 -1
  44. package/.output/public/_nuxt/CNF1h1lI.js +1 -0
  45. package/.output/public/_nuxt/COAycMg4.js +1 -0
  46. package/.output/public/_nuxt/CR6_eO9a.js +6 -0
  47. package/.output/public/_nuxt/{D4jn2f-6.js → CREZ9f0O.js} +4 -4
  48. package/.output/public/_nuxt/CS5ItJPR.js +39 -0
  49. package/.output/public/_nuxt/CcK14gfI.js +1 -0
  50. package/.output/public/_nuxt/{DnxDSFih.js → Ci43mke5.js} +3 -3
  51. package/.output/public/_nuxt/CjouDEjz.js +1 -0
  52. package/.output/public/_nuxt/Cp5lMcfd.js +1 -0
  53. package/.output/public/_nuxt/CpYiq1Wv.js +1 -0
  54. package/.output/public/_nuxt/{DVxTxYP4.js → CrLqg4B0.js} +1 -1
  55. package/.output/public/_nuxt/{BJxYuvXF.js → CvcedJeQ.js} +1 -1
  56. package/.output/public/_nuxt/{FIJP2AmN.js → Cvq07PgE.js} +1 -1
  57. package/.output/public/_nuxt/CwmbX4-U.js +1 -0
  58. package/.output/public/_nuxt/{B27ECqWz.js → Cx6s86aR.js} +1 -1
  59. package/.output/public/_nuxt/{DDYV6jDr.js → CybtvDjH.js} +1 -1
  60. package/.output/public/_nuxt/CzB2y8br.js +18 -0
  61. package/.output/public/_nuxt/{-p9JbKy8.js → D-YUpbah.js} +3 -3
  62. package/.output/public/_nuxt/D60Pzl_V.js +1 -0
  63. package/.output/public/_nuxt/D9BYd7AV.js +1 -0
  64. package/.output/public/_nuxt/D9dEqMyH.js +152 -0
  65. package/.output/public/_nuxt/DCJ49Fnq.js +1 -0
  66. package/.output/public/_nuxt/{gO22NLpn.js → DESYlybj.js} +1 -1
  67. package/.output/public/_nuxt/DFM-aCBX.js +1 -0
  68. package/.output/public/_nuxt/{DRKnK1N_.js → DHnNoguE.js} +1 -1
  69. package/.output/public/_nuxt/{ChkFTcxr.js → DJqZzQsX.js} +1 -1
  70. package/.output/public/_nuxt/DNNdcUH4.js +1 -0
  71. package/.output/public/_nuxt/{LFK46Fls.js → DNdM2ZyK.js} +1 -1
  72. package/.output/public/_nuxt/{CVliJ52o.js → DQT4eICL.js} +1 -1
  73. package/.output/public/_nuxt/{CffFK_qY.js → DWBoXz89.js} +1 -1
  74. package/.output/public/_nuxt/DXp9fCib.js +20 -0
  75. package/.output/public/_nuxt/{ACOLmAuq.js → DaKikgWm.js} +1 -1
  76. package/.output/public/_nuxt/{B9zSkyFO.js → DaMyovpr.js} +1 -1
  77. package/.output/public/_nuxt/DeBdxlx0.js +1 -0
  78. package/.output/public/_nuxt/{trZyeId5.js → DhKwXzSk.js} +1 -1
  79. package/.output/public/_nuxt/{C6Vqzp-9.js → DkadXn5U.js} +1 -1
  80. package/.output/public/_nuxt/Dkikh2OC.js +22 -0
  81. package/.output/public/_nuxt/DlOyXrKK.js +1 -0
  82. package/.output/public/_nuxt/{UqWhjgOc.js → Dpl6-lqE.js} +1 -1
  83. package/.output/public/_nuxt/DqA_edEU.js +1 -0
  84. package/.output/public/_nuxt/DqxL2Lpl.js +1 -0
  85. package/.output/public/_nuxt/Dt3rfvTn.js +1 -0
  86. package/.output/public/_nuxt/Dt5h0Tys.js +1 -0
  87. package/.output/public/_nuxt/DwrSZ8Vj.js +1 -0
  88. package/.output/public/_nuxt/DwyFZZT6.js +1 -0
  89. package/.output/public/_nuxt/EM8J-XL1.js +7 -0
  90. package/.output/public/_nuxt/ESKvsKwc.js +1 -0
  91. package/.output/public/_nuxt/{CWGdTiOD.js → F5lCgNdb.js} +1 -1
  92. package/.output/public/_nuxt/H5m89x1B.js +1 -0
  93. package/.output/public/_nuxt/{CwdIiq6J.js → PUe8M07P.js} +2 -2
  94. package/.output/public/_nuxt/{Cjgqfl1g.js → TEF-nDfP.js} +1 -1
  95. package/.output/public/_nuxt/{DNZpxuwM.js → TuKV3Ilv.js} +1 -1
  96. package/.output/public/_nuxt/V5LvXMJl.js +1 -0
  97. package/.output/public/_nuxt/{c_huf6xz.js → YJvNy3iu.js} +27 -27
  98. package/.output/public/_nuxt/{C7C8tPlA.js → ZObQcd0X.js} +1 -1
  99. package/.output/public/_nuxt/{CHOD7i6O.js → b_MfGg1c.js} +1 -1
  100. package/.output/public/_nuxt/builds/latest.json +1 -1
  101. package/.output/public/_nuxt/builds/meta/455d4da4-6357-4478-8703-78a79ccbbc0f.json +1 -0
  102. package/.output/public/_nuxt/entry.qdzR7QFr.css +1 -0
  103. package/.output/public/_nuxt/fpuEgQ7C.js +12 -0
  104. package/.output/public/_nuxt/jU7fkvuR.js +1 -0
  105. package/.output/public/_nuxt/{CSTzT9hP.js → lHkFwi3L.js} +1 -1
  106. package/.output/public/_nuxt/{BQOaPJzs.js → minLMBmY.js} +1 -1
  107. package/.output/public/_nuxt/pQ8l8BR2.js +1 -0
  108. package/.output/public/_nuxt/xYXqL1eV.js +1 -0
  109. package/.output/public/_nuxt/xxfb8w7n.js +1 -0
  110. package/.output/server/chunks/_/create-adapter.mjs +36 -7
  111. package/.output/server/chunks/_/create-adapter.mjs.map +1 -1
  112. package/.output/server/chunks/_/database-error.mjs +10 -0
  113. package/.output/server/chunks/_/database-error.mjs.map +1 -1
  114. package/.output/server/chunks/_/database-roles.factory.mjs +126 -22
  115. package/.output/server/chunks/_/database-roles.factory.mjs.map +1 -1
  116. package/.output/server/chunks/_/db-connection.mjs +721 -81
  117. package/.output/server/chunks/_/db-connection.mjs.map +1 -1
  118. package/.output/server/chunks/_/functions.factory.mjs +97 -6
  119. package/.output/server/chunks/_/functions.factory.mjs.map +1 -1
  120. package/.output/server/chunks/_/instance-insights.factory.mjs +106 -7
  121. package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
  122. package/.output/server/chunks/_/metadata.factory.mjs +912 -43
  123. package/.output/server/chunks/_/metadata.factory.mjs.map +1 -1
  124. package/.output/server/chunks/_/native-backup-jobs.mjs +1302 -0
  125. package/.output/server/chunks/_/native-backup-jobs.mjs.map +1 -0
  126. package/.output/server/chunks/_/query.factory.mjs +536 -14
  127. package/.output/server/chunks/_/query.factory.mjs.map +1 -1
  128. package/.output/server/chunks/_/schemaMeta.type.mjs +13 -0
  129. package/.output/server/chunks/_/schemaMeta.type.mjs.map +1 -0
  130. package/.output/server/chunks/_/tables.factory.mjs +905 -37
  131. package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
  132. package/.output/server/chunks/_/type-alias.constants.mjs +242 -0
  133. package/.output/server/chunks/_/type-alias.constants.mjs.map +1 -0
  134. package/.output/server/chunks/_/views.factory.mjs +106 -8
  135. package/.output/server/chunks/_/views.factory.mjs.map +1 -1
  136. package/.output/server/chunks/build/client.manifest.mjs +676 -672
  137. package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
  138. package/.output/server/chunks/nitro/nitro.mjs +1046 -751
  139. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  140. package/.output/server/chunks/routes/api/ai/agent.mjs +30 -79
  141. package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
  142. package/.output/server/chunks/routes/api/database-export/export-database.mjs +26 -124
  143. package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
  144. package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +52 -0
  145. package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -0
  146. package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +43 -0
  147. package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -0
  148. package/.output/server/chunks/routes/api/database-import/import-database.mjs +69 -134
  149. package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
  150. package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +43 -0
  151. package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -0
  152. package/.output/server/chunks/routes/api/database-roles/create-role.mjs +2 -0
  153. package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -1
  154. package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +2 -0
  155. package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -1
  156. package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +2 -0
  157. package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -1
  158. package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +2 -0
  159. package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -1
  160. package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +2 -0
  161. package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +2 -0
  163. package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -1
  164. package/.output/server/chunks/routes/api/database-roles/get-role.mjs +2 -0
  165. package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -1
  166. package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +2 -0
  167. package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -1
  168. package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +2 -0
  169. package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -1
  170. package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +2 -0
  171. package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -1
  172. package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +2 -0
  173. package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -1
  174. package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +2 -0
  175. package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -1
  176. package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +2 -0
  177. package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
  178. package/.output/server/chunks/routes/api/functions/definition.post.mjs +3 -1
  179. package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
  180. package/.output/server/chunks/routes/api/functions/delete.post.mjs +3 -1
  181. package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
  182. package/.output/server/chunks/routes/api/functions/overview.post.mjs +3 -1
  183. package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
  184. package/.output/server/chunks/routes/api/functions/rename.post.mjs +3 -1
  185. package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
  186. package/.output/server/chunks/routes/api/functions/signature.post.mjs +3 -1
  187. package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
  188. package/.output/server/chunks/routes/api/functions/update.post.mjs +24 -6
  189. package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
  190. package/.output/server/chunks/routes/api/index.post.mjs +63 -0
  191. package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
  192. package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +2 -0
  193. package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -1
  194. package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +2 -0
  195. package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -1
  196. package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +2 -0
  197. package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -1
  198. package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +2 -0
  199. package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -1
  200. package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +2 -0
  201. package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -1
  202. package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +2 -0
  203. package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -1
  204. package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +2 -0
  205. package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -1
  206. package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +2 -0
  207. package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
  208. package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +10 -4
  209. package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -1
  210. package/.output/server/chunks/routes/api/metadata/erd.post.mjs +4 -0
  211. package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
  212. package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +4 -0
  213. package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -1
  214. package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +4 -0
  215. package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
  216. package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +80 -7
  217. package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
  218. package/.output/server/chunks/routes/api/query/execute.post.mjs +3 -1
  219. package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -1
  220. package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +3 -1
  221. package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -1
  222. package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +3 -1
  223. package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
  224. package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +3 -1
  225. package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -1
  226. package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +3 -1
  227. package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
  228. package/.output/server/chunks/routes/api/tables/ddl.post.mjs +3 -1
  229. package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
  230. package/.output/server/chunks/routes/api/tables/export.post.mjs +4 -2
  231. package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
  232. package/.output/server/chunks/routes/api/tables/indexes.post.mjs +3 -1
  233. package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
  234. package/.output/server/chunks/routes/api/tables/meta.post.mjs +3 -1
  235. package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
  236. package/.output/server/chunks/routes/api/tables/overview.post.mjs +3 -1
  237. package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
  238. package/.output/server/chunks/routes/api/tables/rls.post.mjs +3 -1
  239. package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
  240. package/.output/server/chunks/routes/api/tables/rules.post.mjs +3 -1
  241. package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
  242. package/.output/server/chunks/routes/api/tables/size.post.mjs +3 -1
  243. package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
  244. package/.output/server/chunks/routes/api/tables/structure.post.mjs +3 -1
  245. package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
  246. package/.output/server/chunks/routes/api/tables/triggers.post.mjs +3 -1
  247. package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
  248. package/.output/server/chunks/routes/api/views/definition.post.mjs +2 -0
  249. package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
  250. package/.output/server/chunks/routes/api/views/dependencies.post.mjs +2 -0
  251. package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
  252. package/.output/server/chunks/routes/api/views/explain.post.mjs +2 -0
  253. package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
  254. package/.output/server/chunks/routes/api/views/indexes.post.mjs +2 -0
  255. package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
  256. package/.output/server/chunks/routes/api/views/meta.post.mjs +2 -0
  257. package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
  258. package/.output/server/chunks/routes/api/views/overview.post.mjs +2 -0
  259. package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -1
  260. package/.output/server/chunks/routes/renderer.mjs +1 -1
  261. package/.output/server/index.mjs +1 -1
  262. package/.output/server/node_modules/aws-ssl-profiles/lib/index.js +13 -0
  263. package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/defaults.js +2888 -0
  264. package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/proxies.js +111 -0
  265. package/.output/server/node_modules/aws-ssl-profiles/package.json +52 -0
  266. package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  267. package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
  268. package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
  269. package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  270. package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  271. package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  272. package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  273. package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  274. package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  275. package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  276. package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  277. package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  278. package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  279. package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
  280. package/.output/server/node_modules/better-sqlite3/package.json +59 -0
  281. package/.output/server/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
  282. package/.output/server/node_modules/cpu-features/lib/index.js +5 -0
  283. package/.output/server/node_modules/cpu-features/package.json +40 -0
  284. package/.output/server/node_modules/denque/index.js +481 -0
  285. package/.output/server/node_modules/denque/package.json +58 -0
  286. package/.output/server/node_modules/generate-function/index.js +181 -0
  287. package/.output/server/node_modules/generate-function/package.json +32 -0
  288. package/.output/server/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  289. package/.output/server/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  290. package/.output/server/node_modules/iconv-lite/encodings/index.js +23 -0
  291. package/.output/server/node_modules/iconv-lite/encodings/internal.js +218 -0
  292. package/.output/server/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  293. package/.output/server/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  294. package/.output/server/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  295. package/.output/server/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  296. package/.output/server/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  297. package/.output/server/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  298. package/.output/server/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  299. package/.output/server/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  300. package/.output/server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  301. package/.output/server/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  302. package/.output/server/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  303. package/.output/server/node_modules/iconv-lite/encodings/utf16.js +187 -0
  304. package/.output/server/node_modules/iconv-lite/encodings/utf32.js +307 -0
  305. package/.output/server/node_modules/iconv-lite/encodings/utf7.js +283 -0
  306. package/.output/server/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  307. package/.output/server/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  308. package/.output/server/node_modules/iconv-lite/lib/index.js +182 -0
  309. package/.output/server/node_modules/iconv-lite/lib/streams.js +105 -0
  310. package/.output/server/node_modules/iconv-lite/package.json +70 -0
  311. package/.output/server/node_modules/is-property/is-property.js +5 -0
  312. package/.output/server/node_modules/is-property/package.json +36 -0
  313. package/.output/server/node_modules/long/package.json +58 -0
  314. package/.output/server/node_modules/long/umd/index.js +1622 -0
  315. package/.output/server/node_modules/long/umd/package.json +3 -0
  316. package/.output/server/node_modules/lru.min/lib/index.js +248 -0
  317. package/.output/server/node_modules/lru.min/package.json +87 -0
  318. package/.output/server/node_modules/mysql2/index.js +77 -0
  319. package/.output/server/node_modules/mysql2/lib/auth_41.js +95 -0
  320. package/.output/server/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js +115 -0
  321. package/.output/server/node_modules/mysql2/lib/auth_plugins/index.js +8 -0
  322. package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_clear_password.js +17 -0
  323. package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_native_password.js +34 -0
  324. package/.output/server/node_modules/mysql2/lib/auth_plugins/sha256_password.js +74 -0
  325. package/.output/server/node_modules/mysql2/lib/base/connection.js +1139 -0
  326. package/.output/server/node_modules/mysql2/lib/base/pool.js +343 -0
  327. package/.output/server/node_modules/mysql2/lib/commands/auth_switch.js +151 -0
  328. package/.output/server/node_modules/mysql2/lib/commands/binlog_dump.js +109 -0
  329. package/.output/server/node_modules/mysql2/lib/commands/change_user.js +68 -0
  330. package/.output/server/node_modules/mysql2/lib/commands/client_handshake.js +386 -0
  331. package/.output/server/node_modules/mysql2/lib/commands/close_statement.js +18 -0
  332. package/.output/server/node_modules/mysql2/lib/commands/command.js +54 -0
  333. package/.output/server/node_modules/mysql2/lib/commands/execute.js +116 -0
  334. package/.output/server/node_modules/mysql2/lib/commands/index.js +29 -0
  335. package/.output/server/node_modules/mysql2/lib/commands/ping.js +36 -0
  336. package/.output/server/node_modules/mysql2/lib/commands/prepare.js +143 -0
  337. package/.output/server/node_modules/mysql2/lib/commands/query.js +365 -0
  338. package/.output/server/node_modules/mysql2/lib/commands/quit.js +29 -0
  339. package/.output/server/node_modules/mysql2/lib/commands/register_slave.js +27 -0
  340. package/.output/server/node_modules/mysql2/lib/commands/reset_connection.js +29 -0
  341. package/.output/server/node_modules/mysql2/lib/commands/server_handshake.js +205 -0
  342. package/.output/server/node_modules/mysql2/lib/compressed_protocol.js +153 -0
  343. package/.output/server/node_modules/mysql2/lib/connection.js +12 -0
  344. package/.output/server/node_modules/mysql2/lib/connection_config.js +299 -0
  345. package/.output/server/node_modules/mysql2/lib/constants/charset_encodings.js +317 -0
  346. package/.output/server/node_modules/mysql2/lib/constants/charsets.js +317 -0
  347. package/.output/server/node_modules/mysql2/lib/constants/client.js +39 -0
  348. package/.output/server/node_modules/mysql2/lib/constants/commands.js +37 -0
  349. package/.output/server/node_modules/mysql2/lib/constants/cursor.js +9 -0
  350. package/.output/server/node_modules/mysql2/lib/constants/encoding_charset.js +50 -0
  351. package/.output/server/node_modules/mysql2/lib/constants/errors.js +3973 -0
  352. package/.output/server/node_modules/mysql2/lib/constants/field_flags.js +20 -0
  353. package/.output/server/node_modules/mysql2/lib/constants/server_status.js +44 -0
  354. package/.output/server/node_modules/mysql2/lib/constants/session_track.js +11 -0
  355. package/.output/server/node_modules/mysql2/lib/constants/ssl_profiles.js +11 -0
  356. package/.output/server/node_modules/mysql2/lib/constants/types.js +64 -0
  357. package/.output/server/node_modules/mysql2/lib/create_connection.js +10 -0
  358. package/.output/server/node_modules/mysql2/lib/create_pool.js +10 -0
  359. package/.output/server/node_modules/mysql2/lib/create_pool_cluster.js +9 -0
  360. package/.output/server/node_modules/mysql2/lib/helpers.js +83 -0
  361. package/.output/server/node_modules/mysql2/lib/packet_parser.js +195 -0
  362. package/.output/server/node_modules/mysql2/lib/packets/auth_next_factor.js +35 -0
  363. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request.js +38 -0
  364. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request_more_data.js +33 -0
  365. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_response.js +30 -0
  366. package/.output/server/node_modules/mysql2/lib/packets/binary_row.js +95 -0
  367. package/.output/server/node_modules/mysql2/lib/packets/binlog_dump.js +33 -0
  368. package/.output/server/node_modules/mysql2/lib/packets/binlog_query_statusvars.js +115 -0
  369. package/.output/server/node_modules/mysql2/lib/packets/change_user.js +97 -0
  370. package/.output/server/node_modules/mysql2/lib/packets/close_statement.js +21 -0
  371. package/.output/server/node_modules/mysql2/lib/packets/column_definition.js +291 -0
  372. package/.output/server/node_modules/mysql2/lib/packets/encode_parameter.js +69 -0
  373. package/.output/server/node_modules/mysql2/lib/packets/execute.js +177 -0
  374. package/.output/server/node_modules/mysql2/lib/packets/handshake.js +112 -0
  375. package/.output/server/node_modules/mysql2/lib/packets/handshake_response.js +173 -0
  376. package/.output/server/node_modules/mysql2/lib/packets/index.js +154 -0
  377. package/.output/server/node_modules/mysql2/lib/packets/packet.js +978 -0
  378. package/.output/server/node_modules/mysql2/lib/packets/prepare_statement.js +27 -0
  379. package/.output/server/node_modules/mysql2/lib/packets/prepared_statement_header.js +16 -0
  380. package/.output/server/node_modules/mysql2/lib/packets/query.js +102 -0
  381. package/.output/server/node_modules/mysql2/lib/packets/register_slave.js +46 -0
  382. package/.output/server/node_modules/mysql2/lib/packets/reset_connection.js +17 -0
  383. package/.output/server/node_modules/mysql2/lib/packets/resultset_header.js +124 -0
  384. package/.output/server/node_modules/mysql2/lib/packets/ssl_request.js +25 -0
  385. package/.output/server/node_modules/mysql2/lib/packets/text_row.js +47 -0
  386. package/.output/server/node_modules/mysql2/lib/parsers/binary_parser.js +235 -0
  387. package/.output/server/node_modules/mysql2/lib/parsers/parser_cache.js +68 -0
  388. package/.output/server/node_modules/mysql2/lib/parsers/static_binary_parser.js +213 -0
  389. package/.output/server/node_modules/mysql2/lib/parsers/static_text_parser.js +152 -0
  390. package/.output/server/node_modules/mysql2/lib/parsers/string.js +50 -0
  391. package/.output/server/node_modules/mysql2/lib/parsers/text_parser.js +214 -0
  392. package/.output/server/node_modules/mysql2/lib/pool.js +12 -0
  393. package/.output/server/node_modules/mysql2/lib/pool_cluster.js +375 -0
  394. package/.output/server/node_modules/mysql2/lib/pool_config.js +34 -0
  395. package/.output/server/node_modules/mysql2/lib/pool_connection.js +81 -0
  396. package/.output/server/node_modules/mysql2/lib/promise/capture_local_err.js +25 -0
  397. package/.output/server/node_modules/mysql2/lib/promise/connection.js +237 -0
  398. package/.output/server/node_modules/mysql2/lib/promise/inherit_events.js +27 -0
  399. package/.output/server/node_modules/mysql2/lib/promise/make_done_cb.js +16 -0
  400. package/.output/server/node_modules/mysql2/lib/promise/pool.js +118 -0
  401. package/.output/server/node_modules/mysql2/lib/promise/pool_cluster.js +59 -0
  402. package/.output/server/node_modules/mysql2/lib/promise/pool_connection.js +19 -0
  403. package/.output/server/node_modules/mysql2/lib/promise/prepared_statement_info.js +35 -0
  404. package/.output/server/node_modules/mysql2/lib/server.js +37 -0
  405. package/.output/server/node_modules/mysql2/lib/tracing.js +81 -0
  406. package/.output/server/node_modules/mysql2/package.json +95 -0
  407. package/.output/server/node_modules/mysql2/promise.js +209 -0
  408. package/.output/server/node_modules/named-placeholders/index.js +179 -0
  409. package/.output/server/node_modules/named-placeholders/package.json +36 -0
  410. package/.output/server/node_modules/oracledb/index.js +27 -0
  411. package/.output/server/node_modules/oracledb/lib/aqDeqOptions.js +186 -0
  412. package/.output/server/node_modules/oracledb/lib/aqEnqOptions.js +81 -0
  413. package/.output/server/node_modules/oracledb/lib/aqMessage.js +149 -0
  414. package/.output/server/node_modules/oracledb/lib/aqQueue.js +293 -0
  415. package/.output/server/node_modules/oracledb/lib/connection.js +1842 -0
  416. package/.output/server/node_modules/oracledb/lib/constants.js +210 -0
  417. package/.output/server/node_modules/oracledb/lib/dbObject.js +606 -0
  418. package/.output/server/node_modules/oracledb/lib/errors.js +1046 -0
  419. package/.output/server/node_modules/oracledb/lib/future.js +53 -0
  420. package/.output/server/node_modules/oracledb/lib/impl/aqDeqOptions.js +206 -0
  421. package/.output/server/node_modules/oracledb/lib/impl/aqEnqOptions.js +89 -0
  422. package/.output/server/node_modules/oracledb/lib/impl/aqMessage.js +134 -0
  423. package/.output/server/node_modules/oracledb/lib/impl/aqQueue.js +82 -0
  424. package/.output/server/node_modules/oracledb/lib/impl/base.js +45 -0
  425. package/.output/server/node_modules/oracledb/lib/impl/connection.js +671 -0
  426. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/buffer.js +1214 -0
  427. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/constants.js +110 -0
  428. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/oson.js +852 -0
  429. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/vector.js +197 -0
  430. package/.output/server/node_modules/oracledb/lib/impl/dbObject.js +159 -0
  431. package/.output/server/node_modules/oracledb/lib/impl/index.js +59 -0
  432. package/.output/server/node_modules/oracledb/lib/impl/lob.js +113 -0
  433. package/.output/server/node_modules/oracledb/lib/impl/pool.js +230 -0
  434. package/.output/server/node_modules/oracledb/lib/impl/resultset.js +307 -0
  435. package/.output/server/node_modules/oracledb/lib/impl/sodaCollection.js +175 -0
  436. package/.output/server/node_modules/oracledb/lib/impl/sodaDatabase.js +82 -0
  437. package/.output/server/node_modules/oracledb/lib/impl/sodaDocCursor.js +64 -0
  438. package/.output/server/node_modules/oracledb/lib/impl/sodaDocument.js +89 -0
  439. package/.output/server/node_modules/oracledb/lib/impl/sodaOperation.js +110 -0
  440. package/.output/server/node_modules/oracledb/lib/lob.js +315 -0
  441. package/.output/server/node_modules/oracledb/lib/oracledb.js +1716 -0
  442. package/.output/server/node_modules/oracledb/lib/pool.js +873 -0
  443. package/.output/server/node_modules/oracledb/lib/poolStatistics.js +143 -0
  444. package/.output/server/node_modules/oracledb/lib/queryStream.js +119 -0
  445. package/.output/server/node_modules/oracledb/lib/resultset.js +368 -0
  446. package/.output/server/node_modules/oracledb/lib/settings.js +221 -0
  447. package/.output/server/node_modules/oracledb/lib/sodaCollection.js +284 -0
  448. package/.output/server/node_modules/oracledb/lib/sodaDatabase.js +176 -0
  449. package/.output/server/node_modules/oracledb/lib/sodaDocCursor.js +82 -0
  450. package/.output/server/node_modules/oracledb/lib/sodaDocument.js +125 -0
  451. package/.output/server/node_modules/oracledb/lib/sodaOperation.js +236 -0
  452. package/.output/server/node_modules/oracledb/lib/thin/aq.js +475 -0
  453. package/.output/server/node_modules/oracledb/lib/thin/connection.js +1504 -0
  454. package/.output/server/node_modules/oracledb/lib/thin/dbObject.js +737 -0
  455. package/.output/server/node_modules/oracledb/lib/thin/index.js +40 -0
  456. package/.output/server/node_modules/oracledb/lib/thin/lob.js +380 -0
  457. package/.output/server/node_modules/oracledb/lib/thin/pool.js +738 -0
  458. package/.output/server/node_modules/oracledb/lib/thin/protocol/capabilities.js +145 -0
  459. package/.output/server/node_modules/oracledb/lib/thin/protocol/constants.js +872 -0
  460. package/.output/server/node_modules/oracledb/lib/thin/protocol/encryptDecrypt.js +197 -0
  461. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqArray.js +238 -0
  462. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqBase.js +305 -0
  463. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqDeq.js +164 -0
  464. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqEnq.js +135 -0
  465. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/auth.js +376 -0
  466. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/base.js +568 -0
  467. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/commit.js +56 -0
  468. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/dataType.js +401 -0
  469. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/execute.js +358 -0
  470. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fastAuth.js +83 -0
  471. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fetch.js +64 -0
  472. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/index.js +59 -0
  473. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/lobOp.js +195 -0
  474. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/logOff.js +52 -0
  475. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/ping.js +56 -0
  476. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/protocol.js +97 -0
  477. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/rollback.js +56 -0
  478. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/sessionRelease.js +60 -0
  479. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionChangeState.js +99 -0
  480. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionSwitch.js +147 -0
  481. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/withData.js +920 -0
  482. package/.output/server/node_modules/oracledb/lib/thin/protocol/packet.js +631 -0
  483. package/.output/server/node_modules/oracledb/lib/thin/protocol/protocol.js +240 -0
  484. package/.output/server/node_modules/oracledb/lib/thin/protocol/utils.js +82 -0
  485. package/.output/server/node_modules/oracledb/lib/thin/resultSet.js +122 -0
  486. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ANO.js +438 -0
  487. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/connStrategy.js +316 -0
  488. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/constants.js +210 -0
  489. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ezConnectResolver.js +466 -0
  490. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/navNodes.js +904 -0
  491. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/networkSession.js +733 -0
  492. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js +609 -0
  493. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/nvStrToNvPair.js +780 -0
  494. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/packet.js +439 -0
  495. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/paramParser.js +239 -0
  496. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/sessionAtts.js +198 -0
  497. package/.output/server/node_modules/oracledb/lib/thin/statement.js +573 -0
  498. package/.output/server/node_modules/oracledb/lib/thin/statementCache.js +195 -0
  499. package/.output/server/node_modules/oracledb/lib/thin/util.js +254 -0
  500. package/.output/server/node_modules/oracledb/lib/traceHandler.js +133 -0
  501. package/.output/server/node_modules/oracledb/lib/transformer.js +279 -0
  502. package/.output/server/node_modules/oracledb/lib/types.js +592 -0
  503. package/.output/server/node_modules/oracledb/lib/util.js +648 -0
  504. package/.output/server/node_modules/oracledb/lib/version.js +36 -0
  505. package/.output/server/node_modules/oracledb/package.json +48 -0
  506. package/.output/server/node_modules/sql-escaper/lib/index.js +398 -0
  507. package/.output/server/node_modules/sql-escaper/package.json +81 -0
  508. package/.output/server/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
  509. package/.output/server/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  510. package/.output/server/package.json +14 -18
  511. package/package.json +2 -2
  512. package/.output/public/_nuxt/019vQzZn.js +0 -1
  513. package/.output/public/_nuxt/0lRW_xjL.js +0 -1
  514. package/.output/public/_nuxt/B6EI6PpE.js +0 -1
  515. package/.output/public/_nuxt/B9Mt45db.js +0 -1
  516. package/.output/public/_nuxt/BKltSiU0.js +0 -1
  517. package/.output/public/_nuxt/BM4vnZvX.js +0 -732
  518. package/.output/public/_nuxt/BNYR501z.js +0 -1
  519. package/.output/public/_nuxt/BVLVn__t.js +0 -9
  520. package/.output/public/_nuxt/BY1l0S_M.js +0 -1
  521. package/.output/public/_nuxt/BaseCodeEditor.SAr2eD8R.css +0 -1
  522. package/.output/public/_nuxt/BcvJQkv0.js +0 -1
  523. package/.output/public/_nuxt/BdN9B2_l.js +0 -160
  524. package/.output/public/_nuxt/BflvengI.js +0 -1
  525. package/.output/public/_nuxt/BgolbRTO.js +0 -1
  526. package/.output/public/_nuxt/BwISH3M4.js +0 -1
  527. package/.output/public/_nuxt/C-M4q4KX.js +0 -1
  528. package/.output/public/_nuxt/C2Ziircr.js +0 -1
  529. package/.output/public/_nuxt/C3NWXcpd.js +0 -39
  530. package/.output/public/_nuxt/C5p44jKD.js +0 -1
  531. package/.output/public/_nuxt/C617vhDd.js +0 -1
  532. package/.output/public/_nuxt/C8S0o4Gy.js +0 -1
  533. package/.output/public/_nuxt/CNlsVoWh.js +0 -1
  534. package/.output/public/_nuxt/CWkPMmwS.js +0 -2
  535. package/.output/public/_nuxt/Cgy4ijjN.js +0 -67
  536. package/.output/public/_nuxt/ClBBUcFW.js +0 -1
  537. package/.output/public/_nuxt/CuRyxljq.js +0 -1
  538. package/.output/public/_nuxt/Cx4Bnfq1.js +0 -2
  539. package/.output/public/_nuxt/D-H6_V16.js +0 -1
  540. package/.output/public/_nuxt/D-SDqguC.js +0 -1
  541. package/.output/public/_nuxt/D-XwprNU.js +0 -6
  542. package/.output/public/_nuxt/D3G5Xy_-.js +0 -1
  543. package/.output/public/_nuxt/D9o5Pdvp.js +0 -1
  544. package/.output/public/_nuxt/DFArp87o.js +0 -1
  545. package/.output/public/_nuxt/DFZIXzfU.js +0 -1
  546. package/.output/public/_nuxt/DHRNt0p9.js +0 -1
  547. package/.output/public/_nuxt/DLKku6fV.js +0 -1
  548. package/.output/public/_nuxt/DWgjNKGq.js +0 -152
  549. package/.output/public/_nuxt/DYm57BZk.js +0 -2
  550. package/.output/public/_nuxt/DaQw8gVp.js +0 -1
  551. package/.output/public/_nuxt/DgnsV5Qb.js +0 -1
  552. package/.output/public/_nuxt/Do5Fyo7J.js +0 -1
  553. package/.output/public/_nuxt/Dqirx7MF.js +0 -1
  554. package/.output/public/_nuxt/GoTwJjoS.js +0 -39
  555. package/.output/public/_nuxt/Hs25HoUO.js +0 -22
  556. package/.output/public/_nuxt/J2CvNR3L.js +0 -1
  557. package/.output/public/_nuxt/LK6Q8l0D.js +0 -1
  558. package/.output/public/_nuxt/Oh9SO2qg.js +0 -1
  559. package/.output/public/_nuxt/P_8UoGnr.js +0 -72
  560. package/.output/public/_nuxt/V5yaR3hv.js +0 -2
  561. package/.output/public/_nuxt/XWTuAj6n.js +0 -1
  562. package/.output/public/_nuxt/XqwbcqcW.js +0 -1
  563. package/.output/public/_nuxt/Yzrsuije.js +0 -1
  564. package/.output/public/_nuxt/_8UrUcVF.js +0 -1
  565. package/.output/public/_nuxt/builds/meta/27a307c3-bfc5-4ccd-94b8-387eb94981bb.json +0 -1
  566. package/.output/public/_nuxt/cKBf5-av.js +0 -1
  567. package/.output/public/_nuxt/entry.DeK5kcSi.css +0 -1
  568. package/.output/public/_nuxt/kc-op4gz.js +0 -12
  569. package/.output/public/_nuxt/kehy-5uo.js +0 -1
  570. package/.output/public/_nuxt/lSaGvORn.js +0 -10
  571. package/.output/public/_nuxt/lY3EyFEK.js +0 -1
  572. package/.output/public/_nuxt/tMhdAKU2.js +0 -3
  573. package/.output/public/_nuxt/uyCIL8xw.js +0 -1
  574. package/.output/server/node_modules/cross-spawn/index.js +0 -39
  575. package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
  576. package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
  577. package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
  578. package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  579. package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  580. package/.output/server/node_modules/cross-spawn/package.json +0 -73
  581. package/.output/server/node_modules/execa/index.js +0 -268
  582. package/.output/server/node_modules/execa/lib/command.js +0 -52
  583. package/.output/server/node_modules/execa/lib/error.js +0 -88
  584. package/.output/server/node_modules/execa/lib/kill.js +0 -115
  585. package/.output/server/node_modules/execa/lib/promise.js +0 -46
  586. package/.output/server/node_modules/execa/lib/stdio.js +0 -52
  587. package/.output/server/node_modules/execa/lib/stream.js +0 -97
  588. package/.output/server/node_modules/execa/package.json +0 -74
  589. package/.output/server/node_modules/get-stream/buffer-stream.js +0 -52
  590. package/.output/server/node_modules/get-stream/index.js +0 -61
  591. package/.output/server/node_modules/get-stream/package.json +0 -47
  592. package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
  593. package/.output/server/node_modules/human-signals/build/src/main.js +0 -71
  594. package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
  595. package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
  596. package/.output/server/node_modules/human-signals/package.json +0 -64
  597. package/.output/server/node_modules/is-stream/index.js +0 -28
  598. package/.output/server/node_modules/is-stream/package.json +0 -42
  599. package/.output/server/node_modules/isexe/index.js +0 -57
  600. package/.output/server/node_modules/isexe/mode.js +0 -41
  601. package/.output/server/node_modules/isexe/package.json +0 -31
  602. package/.output/server/node_modules/isexe/windows.js +0 -42
  603. package/.output/server/node_modules/merge-stream/index.js +0 -41
  604. package/.output/server/node_modules/merge-stream/package.json +0 -19
  605. package/.output/server/node_modules/mimic-fn/index.js +0 -13
  606. package/.output/server/node_modules/mimic-fn/package.json +0 -42
  607. package/.output/server/node_modules/npm-run-path/index.js +0 -47
  608. package/.output/server/node_modules/npm-run-path/package.json +0 -44
  609. package/.output/server/node_modules/onetime/index.js +0 -44
  610. package/.output/server/node_modules/onetime/package.json +0 -43
  611. package/.output/server/node_modules/path-key/index.js +0 -16
  612. package/.output/server/node_modules/path-key/package.json +0 -39
  613. package/.output/server/node_modules/pg-dump-restore/lib/common.js +0 -33
  614. package/.output/server/node_modules/pg-dump-restore/lib/index.js +0 -9
  615. package/.output/server/node_modules/pg-dump-restore/lib/pg-dump.js +0 -95
  616. package/.output/server/node_modules/pg-dump-restore/lib/pg-restore.js +0 -87
  617. package/.output/server/node_modules/pg-dump-restore/package.json +0 -66
  618. package/.output/server/node_modules/shebang-command/index.js +0 -19
  619. package/.output/server/node_modules/shebang-command/package.json +0 -34
  620. package/.output/server/node_modules/shebang-regex/index.js +0 -2
  621. package/.output/server/node_modules/shebang-regex/package.json +0 -35
  622. package/.output/server/node_modules/signal-exit/index.js +0 -202
  623. package/.output/server/node_modules/signal-exit/package.json +0 -38
  624. package/.output/server/node_modules/signal-exit/signals.js +0 -53
  625. package/.output/server/node_modules/strip-final-newline/index.js +0 -16
  626. package/.output/server/node_modules/strip-final-newline/package.json +0 -40
  627. package/.output/server/node_modules/which/package.json +0 -43
  628. package/.output/server/node_modules/which/which.js +0 -125
@@ -1,10 +1,658 @@
1
1
  import { D as DatabaseClientType } from './db-connection.mjs';
2
2
  import { c as createError } from '../nitro/nitro.mjs';
3
+ import { B as BaseDomainAdapter, c as createDomainAdapter } from './create-adapter.mjs';
3
4
  import { Readable } from 'node:stream';
4
5
  import { to } from 'pg-copy-streams';
5
6
  import QueryStream from 'pg-query-stream';
6
7
  import { c as createDatabaseHttpError } from './error.mjs';
7
- import { B as BaseDomainAdapter, c as createDomainAdapter } from './create-adapter.mjs';
8
+ import { r as resolveMetadataTypeAlias } from './type-alias.constants.mjs';
9
+
10
+ var __defProp$3 = Object.defineProperty;
11
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __publicField$3 = (obj, key, value) => __defNormalProp$3(obj, key + "" , value);
13
+ function formatBytes$1(value) {
14
+ const bytes = Number(value || 0);
15
+ return `${bytes} B`;
16
+ }
17
+ function escapeMySqlIdentifier(identifier) {
18
+ return `\`${identifier.replace(/`/g, "``")}\``;
19
+ }
20
+ class MysqlTableAdapter extends BaseDomainAdapter {
21
+ constructor(adapter, dbType) {
22
+ super(adapter);
23
+ __publicField$3(this, "dbType");
24
+ this.dbType = dbType;
25
+ }
26
+ static async create(params, dbType = DatabaseClientType.MYSQL) {
27
+ const adapter = await MysqlTableAdapter.resolveAdapter(params, dbType);
28
+ return new MysqlTableAdapter(adapter, dbType);
29
+ }
30
+ async getOverviewTables(schema) {
31
+ return this.adapter.rawQuery(
32
+ `
33
+ SELECT
34
+ table_name AS name,
35
+ table_schema AS schema,
36
+ 'TABLE' AS kind,
37
+ '' AS owner,
38
+ table_rows AS estimated_row,
39
+ CONCAT(data_length + index_length, ' B') AS total_size,
40
+ CONCAT(data_length, ' B') AS data_size,
41
+ CONCAT(index_length, ' B') AS index_size,
42
+ NULLIF(table_comment, '') AS comment
43
+ FROM information_schema.tables
44
+ WHERE table_schema = ?
45
+ AND table_type = 'BASE TABLE'
46
+ ORDER BY table_name
47
+ `,
48
+ [schema]
49
+ );
50
+ }
51
+ async getTableStructure(schema, tableName) {
52
+ return this.adapter.rawQuery(
53
+ `
54
+ SELECT
55
+ c.column_name,
56
+ c.column_type AS data_type,
57
+ c.is_nullable,
58
+ c.column_default AS default_value,
59
+ COALESCE(
60
+ GROUP_CONCAT(
61
+ CONCAT('-> ', k.referenced_table_name, '.', k.referenced_column_name)
62
+ SEPARATOR '
63
+ '
64
+ ),
65
+ ''
66
+ ) AS foreign_keys,
67
+ NULLIF(c.column_comment, '') AS column_comment,
68
+ MAX(rc.update_rule) AS on_update,
69
+ MAX(rc.delete_rule) AS on_delete
70
+ FROM information_schema.columns c
71
+ LEFT JOIN information_schema.key_column_usage k
72
+ ON k.table_schema = c.table_schema
73
+ AND k.table_name = c.table_name
74
+ AND k.column_name = c.column_name
75
+ AND k.referenced_table_name IS NOT NULL
76
+ LEFT JOIN information_schema.referential_constraints rc
77
+ ON rc.constraint_schema = k.constraint_schema
78
+ AND rc.constraint_name = k.constraint_name
79
+ WHERE c.table_schema = ?
80
+ AND c.table_name = ?
81
+ GROUP BY
82
+ c.column_name,
83
+ c.column_type,
84
+ c.is_nullable,
85
+ c.column_default,
86
+ c.column_comment,
87
+ c.ordinal_position
88
+ ORDER BY c.ordinal_position
89
+ `,
90
+ [schema, tableName]
91
+ );
92
+ }
93
+ async getTableSize(schema, tableName) {
94
+ const [row] = await this.adapter.rawQuery(
95
+ `
96
+ SELECT
97
+ (data_length + index_length) AS total_bytes,
98
+ data_length AS data_bytes,
99
+ index_length AS index_bytes
100
+ FROM information_schema.tables
101
+ WHERE table_schema = ?
102
+ AND table_name = ?
103
+ LIMIT 1
104
+ `,
105
+ [schema, tableName]
106
+ );
107
+ if (!row) {
108
+ throw createError({ statusCode: 404, statusMessage: "Table not found" });
109
+ }
110
+ return {
111
+ tableSize: formatBytes$1(row.total_bytes),
112
+ dataSize: formatBytes$1(row.data_bytes),
113
+ indexSize: formatBytes$1(row.index_bytes)
114
+ };
115
+ }
116
+ async getTableMeta(schema, tableName) {
117
+ const [row] = await this.adapter.rawQuery(
118
+ `
119
+ SELECT
120
+ table_type,
121
+ engine,
122
+ table_rows,
123
+ (data_length + index_length) AS total_bytes,
124
+ data_length AS data_bytes,
125
+ index_length AS index_bytes
126
+ FROM information_schema.tables
127
+ WHERE table_schema = ?
128
+ AND table_name = ?
129
+ LIMIT 1
130
+ `,
131
+ [schema, tableName]
132
+ );
133
+ if (!row) {
134
+ throw createError({ statusCode: 404, statusMessage: "Table not found" });
135
+ }
136
+ return {
137
+ type: row.table_type || row.engine || "table",
138
+ owner: "",
139
+ rowEstimate: row.table_rows || 0,
140
+ totalSize: formatBytes$1(row.total_bytes),
141
+ tableSize: formatBytes$1(row.data_bytes),
142
+ indexSize: formatBytes$1(row.index_bytes)
143
+ };
144
+ }
145
+ async getTableDdl(schema, tableName) {
146
+ var _a;
147
+ const qualifiedTable = `${escapeMySqlIdentifier(schema)}.${escapeMySqlIdentifier(tableName)}`;
148
+ const result = await this.adapter.rawQuery(
149
+ `SHOW CREATE TABLE ${qualifiedTable}`
150
+ );
151
+ const createTableStatement = (_a = result[0]) == null ? void 0 : _a["Create Table"];
152
+ if (!createTableStatement) {
153
+ throw createError({ statusCode: 404, statusMessage: "Table not found" });
154
+ }
155
+ return createTableStatement;
156
+ }
157
+ async getTableIndexes(schema, tableName) {
158
+ const rows = await this.adapter.rawQuery(
159
+ `
160
+ SELECT
161
+ index_name,
162
+ non_unique AS is_unique,
163
+ CASE WHEN index_name = 'PRIMARY' THEN 1 ELSE 0 END AS is_primary,
164
+ index_type AS method,
165
+ column_name
166
+ FROM information_schema.statistics
167
+ WHERE table_schema = ?
168
+ AND table_name = ?
169
+ ORDER BY index_name, seq_in_index
170
+ `,
171
+ [schema, tableName]
172
+ );
173
+ const grouped = /* @__PURE__ */ new Map();
174
+ rows.forEach((row) => {
175
+ const existing = grouped.get(row.index_name);
176
+ const definitionPart = row.column_name;
177
+ if (existing) {
178
+ existing.definition = `${existing.definition}, ${definitionPart}`;
179
+ return;
180
+ }
181
+ grouped.set(row.index_name, {
182
+ indexName: row.index_name,
183
+ isUnique: row.is_unique === 0,
184
+ isPrimary: row.is_primary === 1,
185
+ method: row.method,
186
+ definition: definitionPart
187
+ });
188
+ });
189
+ return Array.from(grouped.values());
190
+ }
191
+ async getTableRlsStatus() {
192
+ return { enabled: false };
193
+ }
194
+ async getTableRlsPolicies() {
195
+ return [];
196
+ }
197
+ async getTableRules() {
198
+ return [];
199
+ }
200
+ async getTableTriggers(schema, tableName) {
201
+ return this.adapter.rawQuery(
202
+ `
203
+ SELECT
204
+ trigger_name AS triggerName,
205
+ 1 AS enabled,
206
+ action_timing AS timing,
207
+ JSON_ARRAY(event_manipulation) AS events,
208
+ action_orientation AS orientation,
209
+ action_statement AS definition
210
+ FROM information_schema.triggers
211
+ WHERE trigger_schema = ?
212
+ AND event_object_table = ?
213
+ ORDER BY trigger_name
214
+ `,
215
+ [schema, tableName]
216
+ );
217
+ }
218
+ async executeStatements(statements) {
219
+ const startTime = performance.now();
220
+ try {
221
+ const data = [];
222
+ for (const statement of statements) {
223
+ const result = await this.adapter.rawOut(statement);
224
+ data.push({
225
+ query: statement,
226
+ affectedRows: result.rowCount || 0,
227
+ results: result.rows
228
+ });
229
+ }
230
+ return {
231
+ success: true,
232
+ data,
233
+ queryTime: Number((performance.now() - startTime).toFixed(2))
234
+ };
235
+ } catch (error) {
236
+ return {
237
+ success: false,
238
+ error: (error == null ? void 0 : error.message) || "Failed to execute statements",
239
+ queryTime: Number((performance.now() - startTime).toFixed(2))
240
+ };
241
+ }
242
+ }
243
+ async executeBulkDelete(statements) {
244
+ return this.executeStatements(statements);
245
+ }
246
+ async executeBulkUpdate(statements) {
247
+ return this.executeStatements(statements);
248
+ }
249
+ async exportTableData(schema, tableName) {
250
+ const qualifiedTable = `${escapeMySqlIdentifier(schema)}.${escapeMySqlIdentifier(tableName)}`;
251
+ return this.adapter.rawQuery(`SELECT * FROM ${qualifiedTable}`);
252
+ }
253
+ }
254
+
255
+ var __defProp$2 = Object.defineProperty;
256
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
257
+ var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, key + "" , value);
258
+ function formatBytes(value) {
259
+ return `${Number(value || 0)} B`;
260
+ }
261
+ function escapeOracleIdentifier(identifier) {
262
+ return `"${identifier.replace(/"/g, '""')}"`;
263
+ }
264
+ function buildQualifiedTable$1(schema, tableName) {
265
+ return `${escapeOracleIdentifier(schema)}.${escapeOracleIdentifier(tableName)}`;
266
+ }
267
+ function formatOracleType(column) {
268
+ if (column.data_type === "NUMBER" && column.data_precision !== null) {
269
+ return column.data_scale !== null ? `NUMBER(${column.data_precision}, ${column.data_scale})` : `NUMBER(${column.data_precision})`;
270
+ }
271
+ if (["VARCHAR2", "NVARCHAR2", "CHAR", "NCHAR", "RAW"].includes(
272
+ column.data_type
273
+ ) && column.data_length !== null) {
274
+ return `${column.data_type}(${column.data_length})`;
275
+ }
276
+ return column.data_type;
277
+ }
278
+ class OracleTableAdapter extends BaseDomainAdapter {
279
+ constructor() {
280
+ super(...arguments);
281
+ __publicField$2(this, "dbType", DatabaseClientType.ORACLE);
282
+ }
283
+ static async create(params) {
284
+ const adapter = await OracleTableAdapter.resolveAdapter(
285
+ params,
286
+ DatabaseClientType.ORACLE
287
+ );
288
+ return new OracleTableAdapter(adapter);
289
+ }
290
+ async getOverviewTables(schema) {
291
+ return this.adapter.rawQuery(
292
+ `
293
+ SELECT
294
+ t.table_name AS name,
295
+ t.owner AS schema,
296
+ 'TABLE' AS kind,
297
+ t.owner AS owner,
298
+ t.num_rows AS estimated_row,
299
+ TO_CHAR(NVL(tb.table_bytes, 0) + NVL(ix.index_bytes, 0)) || ' B' AS total_size,
300
+ TO_CHAR(NVL(tb.table_bytes, 0)) || ' B' AS data_size,
301
+ TO_CHAR(NVL(ix.index_bytes, 0)) || ' B' AS index_size,
302
+ c.comments AS comment
303
+ FROM all_tables t
304
+ LEFT JOIN (
305
+ SELECT owner, segment_name, SUM(bytes) AS table_bytes
306
+ FROM all_segments
307
+ WHERE segment_type LIKE 'TABLE%'
308
+ GROUP BY owner, segment_name
309
+ ) tb
310
+ ON tb.owner = t.owner
311
+ AND tb.segment_name = t.table_name
312
+ LEFT JOIN (
313
+ SELECT ai.table_owner AS owner, ai.table_name, SUM(NVL(s.bytes, 0)) AS index_bytes
314
+ FROM all_indexes ai
315
+ LEFT JOIN all_segments s
316
+ ON s.owner = ai.owner
317
+ AND s.segment_name = ai.index_name
318
+ GROUP BY ai.table_owner, ai.table_name
319
+ ) ix
320
+ ON ix.owner = t.owner
321
+ AND ix.table_name = t.table_name
322
+ LEFT JOIN all_tab_comments c
323
+ ON c.owner = t.owner
324
+ AND c.table_name = t.table_name
325
+ WHERE t.owner = :1
326
+ ORDER BY t.table_name
327
+ `,
328
+ [schema]
329
+ );
330
+ }
331
+ async getForeignKeyConstraints(schema, tableName) {
332
+ return this.adapter.rawQuery(
333
+ `
334
+ SELECT
335
+ ac.constraint_name,
336
+ acc.column_name,
337
+ r_acc.owner AS referenced_owner,
338
+ r_acc.table_name AS referenced_table_name,
339
+ r_acc.column_name AS referenced_column_name,
340
+ ac.delete_rule
341
+ FROM all_constraints ac
342
+ JOIN all_cons_columns acc
343
+ ON acc.owner = ac.owner
344
+ AND acc.constraint_name = ac.constraint_name
345
+ JOIN all_constraints r_ac
346
+ ON r_ac.owner = ac.r_owner
347
+ AND r_ac.constraint_name = ac.r_constraint_name
348
+ JOIN all_cons_columns r_acc
349
+ ON r_acc.owner = r_ac.owner
350
+ AND r_acc.constraint_name = r_ac.constraint_name
351
+ AND r_acc.position = acc.position
352
+ WHERE ac.constraint_type = 'R'
353
+ AND ac.owner = :1
354
+ AND ac.table_name = :2
355
+ ORDER BY acc.position
356
+ `,
357
+ [schema, tableName]
358
+ );
359
+ }
360
+ async getPrimaryKeyColumns(schema, tableName) {
361
+ return this.adapter.rawQuery(
362
+ `
363
+ SELECT acc.column_name
364
+ FROM all_constraints ac
365
+ JOIN all_cons_columns acc
366
+ ON acc.owner = ac.owner
367
+ AND acc.constraint_name = ac.constraint_name
368
+ WHERE ac.constraint_type = 'P'
369
+ AND ac.owner = :1
370
+ AND ac.table_name = :2
371
+ ORDER BY acc.position
372
+ `,
373
+ [schema, tableName]
374
+ );
375
+ }
376
+ async getTableStructure(schema, tableName) {
377
+ const [columns, foreignKeys] = await Promise.all([
378
+ this.adapter.rawQuery(
379
+ `
380
+ SELECT
381
+ c.column_name,
382
+ c.column_id,
383
+ c.data_type,
384
+ c.data_length,
385
+ c.data_precision,
386
+ c.data_scale,
387
+ c.nullable,
388
+ TRIM(c.data_default) AS default_value,
389
+ col.comments AS column_comment
390
+ FROM all_tab_columns c
391
+ LEFT JOIN all_col_comments col
392
+ ON col.owner = c.owner
393
+ AND col.table_name = c.table_name
394
+ AND col.column_name = c.column_name
395
+ WHERE c.owner = :1
396
+ AND c.table_name = :2
397
+ ORDER BY c.column_id
398
+ `,
399
+ [schema, tableName]
400
+ ),
401
+ this.getForeignKeyConstraints(schema, tableName)
402
+ ]);
403
+ const foreignKeyMap = /* @__PURE__ */ new Map();
404
+ foreignKeys.forEach((foreignKey) => {
405
+ const list = foreignKeyMap.get(foreignKey.column_name) || [];
406
+ list.push(foreignKey);
407
+ foreignKeyMap.set(foreignKey.column_name, list);
408
+ });
409
+ return columns.map((column) => {
410
+ var _a;
411
+ return {
412
+ column_name: column.column_name,
413
+ data_type: formatOracleType(column),
414
+ is_nullable: column.nullable === "Y" ? "YES" : "NO",
415
+ default_value: column.default_value,
416
+ foreign_keys: (foreignKeyMap.get(column.column_name) || []).map(
417
+ (foreignKey) => ` -> ${foreignKey.referenced_owner}.${foreignKey.referenced_table_name}(${foreignKey.referenced_column_name})`
418
+ ).join("\n"),
419
+ column_comment: column.column_comment || "",
420
+ on_delete: (_a = (foreignKeyMap.get(column.column_name) || [])[0]) == null ? void 0 : _a.delete_rule
421
+ };
422
+ });
423
+ }
424
+ async getTableSize(schema, tableName) {
425
+ const [row] = await this.adapter.rawQuery(
426
+ `
427
+ SELECT
428
+ NVL(tb.table_bytes, 0) AS table_bytes,
429
+ NVL(ix.index_bytes, 0) AS index_bytes
430
+ FROM dual
431
+ LEFT JOIN (
432
+ SELECT SUM(bytes) AS table_bytes
433
+ FROM all_segments
434
+ WHERE owner = :1
435
+ AND segment_name = :2
436
+ AND segment_type LIKE 'TABLE%'
437
+ ) tb ON 1 = 1
438
+ LEFT JOIN (
439
+ SELECT SUM(NVL(s.bytes, 0)) AS index_bytes
440
+ FROM all_indexes ai
441
+ LEFT JOIN all_segments s
442
+ ON s.owner = ai.owner
443
+ AND s.segment_name = ai.index_name
444
+ WHERE ai.table_owner = :1
445
+ AND ai.table_name = :2
446
+ ) ix ON 1 = 1
447
+ `,
448
+ [schema, tableName]
449
+ );
450
+ if (!row) {
451
+ throw createError({ statusCode: 404, statusMessage: "Table not found" });
452
+ }
453
+ return {
454
+ tableSize: formatBytes((row.table_bytes || 0) + (row.index_bytes || 0)),
455
+ dataSize: formatBytes(row.table_bytes),
456
+ indexSize: formatBytes(row.index_bytes)
457
+ };
458
+ }
459
+ async getTableMeta(schema, tableName) {
460
+ const [row] = await this.adapter.rawQuery(
461
+ `
462
+ SELECT
463
+ t.owner,
464
+ t.num_rows,
465
+ NVL(tb.table_bytes, 0) AS table_bytes,
466
+ NVL(ix.index_bytes, 0) AS index_bytes
467
+ FROM all_tables t
468
+ LEFT JOIN (
469
+ SELECT owner, segment_name, SUM(bytes) AS table_bytes
470
+ FROM all_segments
471
+ WHERE segment_type LIKE 'TABLE%'
472
+ GROUP BY owner, segment_name
473
+ ) tb
474
+ ON tb.owner = t.owner
475
+ AND tb.segment_name = t.table_name
476
+ LEFT JOIN (
477
+ SELECT ai.table_owner AS owner, ai.table_name, SUM(NVL(s.bytes, 0)) AS index_bytes
478
+ FROM all_indexes ai
479
+ LEFT JOIN all_segments s
480
+ ON s.owner = ai.owner
481
+ AND s.segment_name = ai.index_name
482
+ GROUP BY ai.table_owner, ai.table_name
483
+ ) ix
484
+ ON ix.owner = t.owner
485
+ AND ix.table_name = t.table_name
486
+ WHERE t.owner = :1
487
+ AND t.table_name = :2
488
+ `,
489
+ [schema, tableName]
490
+ );
491
+ if (!row) {
492
+ throw createError({ statusCode: 404, statusMessage: "Table not found" });
493
+ }
494
+ return {
495
+ type: "TABLE",
496
+ owner: row.owner,
497
+ rowEstimate: row.num_rows || 0,
498
+ totalSize: formatBytes((row.table_bytes || 0) + (row.index_bytes || 0)),
499
+ tableSize: formatBytes(row.table_bytes),
500
+ indexSize: formatBytes(row.index_bytes)
501
+ };
502
+ }
503
+ async getTableDdl(schema, tableName) {
504
+ const [columns, primaryKeys, foreignKeys] = await Promise.all([
505
+ this.getTableStructure(schema, tableName),
506
+ this.getPrimaryKeyColumns(schema, tableName),
507
+ this.getForeignKeyConstraints(schema, tableName)
508
+ ]);
509
+ if (!columns.length) {
510
+ throw createError({ statusCode: 404, statusMessage: "Table not found" });
511
+ }
512
+ const lines = columns.map((column) => {
513
+ let line = ` ${escapeOracleIdentifier(column.column_name)} ${column.data_type}`;
514
+ if (column.default_value) {
515
+ line += ` DEFAULT ${column.default_value}`;
516
+ }
517
+ if (column.is_nullable === "NO") {
518
+ line += " NOT NULL";
519
+ }
520
+ return line;
521
+ });
522
+ if (primaryKeys.length) {
523
+ lines.push(
524
+ ` PRIMARY KEY (${primaryKeys.map((primaryKey) => escapeOracleIdentifier(primaryKey.column_name)).join(", ")})`
525
+ );
526
+ }
527
+ foreignKeys.forEach((foreignKey) => {
528
+ const deleteClause = foreignKey.delete_rule && foreignKey.delete_rule !== "NO ACTION" ? ` ON DELETE ${foreignKey.delete_rule}` : "";
529
+ lines.push(
530
+ ` CONSTRAINT ${escapeOracleIdentifier(
531
+ foreignKey.constraint_name
532
+ )} FOREIGN KEY (${escapeOracleIdentifier(
533
+ foreignKey.column_name
534
+ )}) REFERENCES ${buildQualifiedTable$1(
535
+ foreignKey.referenced_owner,
536
+ foreignKey.referenced_table_name
537
+ )} (${escapeOracleIdentifier(foreignKey.referenced_column_name)})${deleteClause}`
538
+ );
539
+ });
540
+ return `CREATE TABLE ${buildQualifiedTable$1(schema, tableName)} (
541
+ ${lines.join(",\n")}
542
+ );`;
543
+ }
544
+ async getTableIndexes(schema, tableName) {
545
+ const rows = await this.adapter.rawQuery(
546
+ `
547
+ SELECT
548
+ ai.index_name,
549
+ CASE WHEN ai.uniqueness = 'UNIQUE' THEN 1 ELSE 0 END AS is_unique,
550
+ CASE WHEN pk.constraint_name IS NOT NULL THEN 1 ELSE 0 END AS is_primary,
551
+ ai.index_type AS method,
552
+ aic.column_name
553
+ FROM all_indexes ai
554
+ JOIN all_ind_columns aic
555
+ ON aic.index_owner = ai.owner
556
+ AND aic.index_name = ai.index_name
557
+ LEFT JOIN all_constraints pk
558
+ ON pk.owner = ai.table_owner
559
+ AND pk.index_name = ai.index_name
560
+ AND pk.constraint_type = 'P'
561
+ WHERE ai.table_owner = :1
562
+ AND ai.table_name = :2
563
+ ORDER BY ai.index_name, aic.column_position
564
+ `,
565
+ [schema, tableName]
566
+ );
567
+ const grouped = /* @__PURE__ */ new Map();
568
+ rows.forEach((row) => {
569
+ const existing = grouped.get(row.index_name);
570
+ if (existing) {
571
+ existing.definition = `${existing.definition}, ${row.column_name}`;
572
+ return;
573
+ }
574
+ grouped.set(row.index_name, {
575
+ indexName: row.index_name,
576
+ isUnique: row.is_unique === 1,
577
+ isPrimary: row.is_primary === 1,
578
+ method: row.method,
579
+ definition: row.column_name
580
+ });
581
+ });
582
+ return Array.from(grouped.values());
583
+ }
584
+ async getTableRlsStatus() {
585
+ return { enabled: false };
586
+ }
587
+ async getTableRlsPolicies() {
588
+ return [];
589
+ }
590
+ async getTableRules() {
591
+ return [];
592
+ }
593
+ async getTableTriggers(schema, tableName) {
594
+ const rows = await this.adapter.rawQuery(
595
+ `
596
+ SELECT
597
+ trigger_name,
598
+ status,
599
+ trigger_type,
600
+ triggering_event,
601
+ trigger_body,
602
+ description
603
+ FROM all_triggers
604
+ WHERE table_owner = :1
605
+ AND table_name = :2
606
+ ORDER BY trigger_name
607
+ `,
608
+ [schema, tableName]
609
+ );
610
+ return rows.map((row) => ({
611
+ triggerName: row.trigger_name,
612
+ enabled: row.status === "ENABLED",
613
+ timing: row.trigger_type.split(" ", 1)[0] || row.trigger_type,
614
+ events: row.triggering_event.split(/\s+OR\s+/),
615
+ orientation: row.trigger_type.includes("EACH ROW") ? "ROW" : "STATEMENT",
616
+ definition: row.trigger_body || row.description || ""
617
+ }));
618
+ }
619
+ async executeStatements(statements) {
620
+ const startTime = performance.now();
621
+ try {
622
+ const data = [];
623
+ for (const statement of statements) {
624
+ const result = await this.adapter.rawOut(statement);
625
+ data.push({
626
+ query: statement,
627
+ affectedRows: result.rowCount || 0,
628
+ results: result.rows
629
+ });
630
+ }
631
+ return {
632
+ success: true,
633
+ data,
634
+ queryTime: Number((performance.now() - startTime).toFixed(2))
635
+ };
636
+ } catch (error) {
637
+ return {
638
+ success: false,
639
+ error: (error == null ? void 0 : error.message) || "Failed to execute statements",
640
+ queryTime: Number((performance.now() - startTime).toFixed(2))
641
+ };
642
+ }
643
+ }
644
+ async executeBulkDelete(statements) {
645
+ return this.executeStatements(statements);
646
+ }
647
+ async executeBulkUpdate(statements) {
648
+ return this.executeStatements(statements);
649
+ }
650
+ async exportTableData(schema, tableName) {
651
+ return this.adapter.rawQuery(
652
+ `SELECT * FROM ${buildQualifiedTable$1(schema, tableName)}`
653
+ );
654
+ }
655
+ }
8
656
 
9
657
  class PostgresTableAdvancedObjectsAdapter {
10
658
  constructor(adapter) {
@@ -446,29 +1094,7 @@ class PostgresTableStructureAdapter {
446
1094
  const query = `
447
1095
  SELECT
448
1096
  a.attname AS column_name,
449
- CASE
450
- WHEN format_type(a.atttypid, a.atttypmod) LIKE 'character varying%'
451
- THEN REPLACE(format_type(a.atttypid, a.atttypmod), 'character varying', 'varchar')
452
- WHEN format_type(a.atttypid, a.atttypmod) LIKE 'character%'
453
- THEN REPLACE(format_type(a.atttypid, a.atttypmod), 'character', 'char')
454
- WHEN format_type(a.atttypid, a.atttypmod) = 'double precision' THEN 'float8'
455
- WHEN format_type(a.atttypid, a.atttypmod) = 'integer' THEN 'int4'
456
- WHEN format_type(a.atttypid, a.atttypmod) = 'smallint' THEN 'int2'
457
- WHEN format_type(a.atttypid, a.atttypmod) = 'bigint' THEN 'int8'
458
- WHEN format_type(a.atttypid, a.atttypmod) = 'real' THEN 'float4'
459
- WHEN format_type(a.atttypid, a.atttypmod) = 'serial' THEN 'serial4'
460
- WHEN format_type(a.atttypid, a.atttypmod) = 'smallserial' THEN 'serial2'
461
- WHEN format_type(a.atttypid, a.atttypmod) = 'bigserial' THEN 'serial8'
462
- WHEN format_type(a.atttypid, a.atttypmod) LIKE 'bit varying%'
463
- THEN REPLACE(format_type(a.atttypid, a.atttypmod), 'bit varying', 'varbit')
464
- WHEN format_type(a.atttypid, a.atttypmod) = 'boolean' THEN 'bool'
465
- WHEN format_type(a.atttypid, a.atttypmod) LIKE 'numeric%'
466
- THEN REPLACE(format_type(a.atttypid, a.atttypmod), 'numeric', 'decimal')
467
- WHEN format_type(a.atttypid, a.atttypmod) = 'timestamp with time zone' THEN 'timestamptz'
468
- WHEN format_type(a.atttypid, a.atttypmod) = 'timestamp without time zone' THEN 'timestamp'
469
- WHEN format_type(a.atttypid, a.atttypmod) = 'time with time zone' THEN 'timetz'
470
- ELSE format_type(a.atttypid, a.atttypmod)
471
- END as data_type,
1097
+ format_type(a.atttypid, a.atttypmod) AS raw_type_name,
472
1098
  NOT a.attnotnull AS is_nullable,
473
1099
  PG_GET_EXPR(d.adbin, d.adrelid) AS default_value,
474
1100
  COALESCE(fk_info.fk_text, '') AS foreign_keys,
@@ -525,7 +1151,18 @@ class PostgresTableStructureAdapter {
525
1151
  ORDER BY
526
1152
  a.attnum
527
1153
  `;
528
- return this.adapter.rawQuery(query, [tableName, schema]);
1154
+ const rows = await this.adapter.rawQuery(query, [tableName, schema]);
1155
+ return rows.map((row) => {
1156
+ const shortType = resolveMetadataTypeAlias(
1157
+ DatabaseClientType.POSTGRES,
1158
+ row.raw_type_name
1159
+ );
1160
+ return {
1161
+ ...row,
1162
+ short_type_name: shortType,
1163
+ data_type: shortType
1164
+ };
1165
+ });
529
1166
  }
530
1167
  async getTableSize(schema, tableName) {
531
1168
  const query = `
@@ -710,18 +1347,18 @@ class PostgresTableStructureAdapter {
710
1347
  }
711
1348
  }
712
1349
 
713
- var __defProp = Object.defineProperty;
714
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
715
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1350
+ var __defProp$1 = Object.defineProperty;
1351
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1352
+ var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
716
1353
  class PostgresTableAdapter extends BaseDomainAdapter {
717
1354
  constructor(adapter) {
718
1355
  super(adapter);
719
- __publicField(this, "dbType", DatabaseClientType.POSTGRES);
720
- __publicField(this, "metadataAdapter");
721
- __publicField(this, "structureAdapter");
722
- __publicField(this, "mutationAdapter");
723
- __publicField(this, "exportAdapter");
724
- __publicField(this, "advancedObjectsAdapter");
1356
+ __publicField$1(this, "dbType", DatabaseClientType.POSTGRES);
1357
+ __publicField$1(this, "metadataAdapter");
1358
+ __publicField$1(this, "structureAdapter");
1359
+ __publicField$1(this, "mutationAdapter");
1360
+ __publicField$1(this, "exportAdapter");
1361
+ __publicField$1(this, "advancedObjectsAdapter");
725
1362
  this.metadataAdapter = new PostgresTableMetadataAdapter(this.adapter);
726
1363
  this.structureAdapter = new PostgresTableStructureAdapter(this.adapter);
727
1364
  this.mutationAdapter = new PostgresTableMutationAdapter(this.adapter);
@@ -778,10 +1415,241 @@ class PostgresTableAdapter extends BaseDomainAdapter {
778
1415
  }
779
1416
  }
780
1417
 
1418
+ var __defProp = Object.defineProperty;
1419
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1420
+ var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
1421
+ function escapeSqliteIdentifier(identifier) {
1422
+ return `"${identifier.replace(/"/g, '""')}"`;
1423
+ }
1424
+ function quoteSqliteString(value) {
1425
+ return `'${value.replace(/'/g, "''")}'`;
1426
+ }
1427
+ function buildQualifiedTable(schema, tableName) {
1428
+ return `${escapeSqliteIdentifier(schema)}.${escapeSqliteIdentifier(tableName)}`;
1429
+ }
1430
+ class SqliteTableAdapter extends BaseDomainAdapter {
1431
+ constructor() {
1432
+ super(...arguments);
1433
+ __publicField(this, "dbType", DatabaseClientType.SQLITE3);
1434
+ }
1435
+ static async create(params) {
1436
+ const adapter = await SqliteTableAdapter.resolveAdapter(
1437
+ params,
1438
+ DatabaseClientType.SQLITE3
1439
+ );
1440
+ return new SqliteTableAdapter(adapter);
1441
+ }
1442
+ async getTableInfo(schema, tableName) {
1443
+ return this.adapter.rawQuery(
1444
+ `PRAGMA ${escapeSqliteIdentifier(schema)}.table_info(${quoteSqliteString(tableName)})`
1445
+ );
1446
+ }
1447
+ async getForeignKeys(schema, tableName) {
1448
+ return this.adapter.rawQuery(
1449
+ `PRAGMA ${escapeSqliteIdentifier(schema)}.foreign_key_list(${quoteSqliteString(tableName)})`
1450
+ );
1451
+ }
1452
+ async getOverviewTables(schema) {
1453
+ return this.adapter.rawQuery(
1454
+ `
1455
+ SELECT
1456
+ name,
1457
+ ${quoteSqliteString(schema)} AS schema,
1458
+ 'TABLE' AS kind,
1459
+ ${quoteSqliteString(schema)} AS owner,
1460
+ NULL AS estimated_row,
1461
+ '0 B' AS total_size,
1462
+ '0 B' AS data_size,
1463
+ '0 B' AS index_size,
1464
+ NULL AS comment
1465
+ FROM ${escapeSqliteIdentifier(schema)}.sqlite_master
1466
+ WHERE type = 'table'
1467
+ AND name NOT LIKE 'sqlite_%'
1468
+ ORDER BY name
1469
+ `
1470
+ );
1471
+ }
1472
+ async getTableStructure(schema, tableName) {
1473
+ const [columns, foreignKeys] = await Promise.all([
1474
+ this.getTableInfo(schema, tableName),
1475
+ this.getForeignKeys(schema, tableName)
1476
+ ]);
1477
+ const foreignKeyMap = /* @__PURE__ */ new Map();
1478
+ foreignKeys.forEach((foreignKey) => {
1479
+ const list = foreignKeyMap.get(foreignKey.from) || [];
1480
+ list.push(foreignKey);
1481
+ foreignKeyMap.set(foreignKey.from, list);
1482
+ });
1483
+ return columns.map((column) => {
1484
+ var _a, _b;
1485
+ return {
1486
+ column_name: column.name,
1487
+ data_type: column.type,
1488
+ is_nullable: column.notnull === 0 ? "YES" : "NO",
1489
+ default_value: column.dflt_value,
1490
+ foreign_keys: (foreignKeyMap.get(column.name) || []).map((foreignKey) => ` -> ${foreignKey.table}(${foreignKey.to})`).join("\n"),
1491
+ column_comment: "",
1492
+ on_update: (_a = (foreignKeyMap.get(column.name) || [])[0]) == null ? void 0 : _a.on_update,
1493
+ on_delete: (_b = (foreignKeyMap.get(column.name) || [])[0]) == null ? void 0 : _b.on_delete
1494
+ };
1495
+ });
1496
+ }
1497
+ async getTableSize(_schema, _tableName) {
1498
+ return {
1499
+ tableSize: "0 B",
1500
+ dataSize: "0 B",
1501
+ indexSize: "0 B"
1502
+ };
1503
+ }
1504
+ async getTableMeta(schema, tableName) {
1505
+ const [countRow] = await this.adapter.rawQuery(
1506
+ `SELECT COUNT(*) AS row_count FROM ${buildQualifiedTable(schema, tableName)}`
1507
+ );
1508
+ return {
1509
+ type: "TABLE",
1510
+ owner: schema,
1511
+ rowEstimate: (countRow == null ? void 0 : countRow.row_count) || 0,
1512
+ totalSize: "0 B",
1513
+ tableSize: "0 B",
1514
+ indexSize: "0 B"
1515
+ };
1516
+ }
1517
+ async getTableDdl(schema, tableName) {
1518
+ const [row] = await this.adapter.rawQuery(
1519
+ `
1520
+ SELECT sql
1521
+ FROM ${escapeSqliteIdentifier(schema)}.sqlite_master
1522
+ WHERE type = 'table'
1523
+ AND name = ?
1524
+ `,
1525
+ [tableName]
1526
+ );
1527
+ if (!row) {
1528
+ throw createError({ statusCode: 404, statusMessage: "Table not found" });
1529
+ }
1530
+ if (row.sql) {
1531
+ return row.sql;
1532
+ }
1533
+ const columns = await this.getTableStructure(schema, tableName);
1534
+ const ddlColumns = columns.map((column) => {
1535
+ let line = ` ${escapeSqliteIdentifier(column.column_name)} ${column.data_type}`;
1536
+ if (column.default_value) {
1537
+ line += ` DEFAULT ${column.default_value}`;
1538
+ }
1539
+ if (column.is_nullable === "NO") {
1540
+ line += " NOT NULL";
1541
+ }
1542
+ return line;
1543
+ });
1544
+ return `CREATE TABLE ${buildQualifiedTable(schema, tableName)} (
1545
+ ${ddlColumns.join(",\n")}
1546
+ );`;
1547
+ }
1548
+ async getTableIndexes(schema, tableName) {
1549
+ const indexes = await this.adapter.rawQuery(
1550
+ `PRAGMA ${escapeSqliteIdentifier(schema)}.index_list(${quoteSqliteString(tableName)})`
1551
+ );
1552
+ const results = [];
1553
+ for (const index of indexes) {
1554
+ const columns = await this.adapter.rawQuery(
1555
+ `PRAGMA ${escapeSqliteIdentifier(schema)}.index_info(${quoteSqliteString(index.name)})`
1556
+ );
1557
+ results.push({
1558
+ indexName: index.name,
1559
+ isUnique: index.unique === 1,
1560
+ isPrimary: index.origin === "pk",
1561
+ method: "BTREE",
1562
+ definition: columns.map((column) => column.name).join(", ")
1563
+ });
1564
+ }
1565
+ return results;
1566
+ }
1567
+ async getTableRlsStatus() {
1568
+ return { enabled: false };
1569
+ }
1570
+ async getTableRlsPolicies() {
1571
+ return [];
1572
+ }
1573
+ async getTableRules() {
1574
+ return [];
1575
+ }
1576
+ async getTableTriggers(schema, tableName) {
1577
+ const rows = await this.adapter.rawQuery(
1578
+ `
1579
+ SELECT name, sql
1580
+ FROM ${escapeSqliteIdentifier(schema)}.sqlite_master
1581
+ WHERE type = 'trigger'
1582
+ AND tbl_name = ?
1583
+ ORDER BY name
1584
+ `,
1585
+ [tableName]
1586
+ );
1587
+ return rows.map((row) => {
1588
+ var _a;
1589
+ const definition = row.sql || "";
1590
+ const timingMatch = definition.match(/\b(BEFORE|AFTER|INSTEAD OF)\b/i);
1591
+ const events = definition.match(/\b(INSERT|UPDATE|DELETE)\b/gi) || [];
1592
+ return {
1593
+ triggerName: row.name,
1594
+ enabled: true,
1595
+ timing: ((_a = timingMatch == null ? void 0 : timingMatch[1]) == null ? void 0 : _a.toUpperCase()) || "AFTER",
1596
+ events: events.map((event) => event.toUpperCase()),
1597
+ orientation: "ROW",
1598
+ definition
1599
+ };
1600
+ });
1601
+ }
1602
+ async executeStatements(statements) {
1603
+ const startTime = performance.now();
1604
+ try {
1605
+ const data = [];
1606
+ for (const statement of statements) {
1607
+ const result = await this.adapter.rawOut(statement);
1608
+ data.push({
1609
+ query: statement,
1610
+ affectedRows: result.rowCount || 0,
1611
+ results: result.rows
1612
+ });
1613
+ }
1614
+ return {
1615
+ success: true,
1616
+ data,
1617
+ queryTime: Number((performance.now() - startTime).toFixed(2))
1618
+ };
1619
+ } catch (error) {
1620
+ return {
1621
+ success: false,
1622
+ error: (error == null ? void 0 : error.message) || "Failed to execute statements",
1623
+ queryTime: Number((performance.now() - startTime).toFixed(2))
1624
+ };
1625
+ }
1626
+ }
1627
+ async executeBulkDelete(statements) {
1628
+ return this.executeStatements(statements);
1629
+ }
1630
+ async executeBulkUpdate(statements) {
1631
+ return this.executeStatements(statements);
1632
+ }
1633
+ async exportTableData(schema, tableName) {
1634
+ return this.adapter.rawQuery(
1635
+ `SELECT * FROM ${buildQualifiedTable(schema, tableName)}`
1636
+ );
1637
+ }
1638
+ }
1639
+
781
1640
  async function createTableAdapter(dbType, params) {
782
- return createDomainAdapter(dbType, params, "table", {
783
- postgres: PostgresTableAdapter.create
784
- });
1641
+ return createDomainAdapter(
1642
+ dbType,
1643
+ params,
1644
+ "table",
1645
+ {
1646
+ postgres: PostgresTableAdapter.create,
1647
+ mysql: (params2) => MysqlTableAdapter.create(params2, DatabaseClientType.MYSQL),
1648
+ mariadb: (params2) => MysqlTableAdapter.create(params2, DatabaseClientType.MARIADB),
1649
+ oracledb: OracleTableAdapter.create,
1650
+ sqlite3: SqliteTableAdapter.create
1651
+ }
1652
+ );
785
1653
  }
786
1654
 
787
1655
  export { createTableAdapter as c };