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
@@ -0,0 +1,69 @@
1
+ 'use strict';
2
+
3
+ const Types = require('../constants/types');
4
+ const Packet = require('../packets/packet');
5
+
6
+ function isJSON(value) {
7
+ return (
8
+ Array.isArray(value) ||
9
+ value.constructor === Object ||
10
+ (typeof value.toJSON === 'function' && !Buffer.isBuffer(value))
11
+ );
12
+ }
13
+
14
+ function toParameter(value, encoding, timezone) {
15
+ let type = Types.VAR_STRING;
16
+ let length;
17
+ let writer = function (value) {
18
+ // eslint-disable-next-line no-invalid-this
19
+ return Packet.prototype.writeLengthCodedString.call(this, value, encoding);
20
+ };
21
+ if (value !== null) {
22
+ switch (typeof value) {
23
+ case 'undefined':
24
+ throw new TypeError('Bind parameters must not contain undefined');
25
+
26
+ case 'number':
27
+ type = Types.DOUBLE;
28
+ length = 8;
29
+ writer = Packet.prototype.writeDouble;
30
+ break;
31
+
32
+ case 'boolean':
33
+ value = value | 0;
34
+ type = Types.TINY;
35
+ length = 1;
36
+ writer = Packet.prototype.writeInt8;
37
+ break;
38
+
39
+ case 'object':
40
+ if (Object.prototype.toString.call(value) === '[object Date]') {
41
+ type = Types.DATETIME;
42
+ length = 12;
43
+ writer = function (value) {
44
+ // eslint-disable-next-line no-invalid-this
45
+ return Packet.prototype.writeDate.call(this, value, timezone);
46
+ };
47
+ } else if (isJSON(value)) {
48
+ value = JSON.stringify(value);
49
+ type = Types.JSON;
50
+ } else if (Buffer.isBuffer(value)) {
51
+ length = Packet.lengthCodedNumberLength(value.length) + value.length;
52
+ writer = Packet.prototype.writeLengthCodedBuffer;
53
+ }
54
+ break;
55
+
56
+ default:
57
+ value = value.toString();
58
+ }
59
+ } else {
60
+ value = '';
61
+ type = Types.NULL;
62
+ }
63
+ if (!length) {
64
+ length = Packet.lengthCodedStringLength(value, encoding);
65
+ }
66
+ return { value, type, length, writer };
67
+ }
68
+
69
+ module.exports = { toParameter, isJSON };
@@ -0,0 +1,177 @@
1
+ 'use strict';
2
+
3
+ const CursorType = require('../constants/cursor');
4
+ const CommandCodes = require('../constants/commands');
5
+ const ClientConstants = require('../constants/client');
6
+ const Types = require('../constants/types');
7
+ const Packet = require('../packets/packet');
8
+ const CharsetToEncoding = require('../constants/charset_encodings.js');
9
+ const { toParameter } = require('./encode_parameter.js');
10
+
11
+ class Execute {
12
+ constructor(
13
+ id,
14
+ parameters,
15
+ charsetNumber,
16
+ timezone,
17
+ attributes,
18
+ clientFlags
19
+ ) {
20
+ this.id = id;
21
+ this.parameters = parameters;
22
+ this.encoding = CharsetToEncoding[charsetNumber];
23
+ this.timezone = timezone;
24
+ this.attributes = attributes;
25
+ this.clientFlags = clientFlags || 0;
26
+ }
27
+
28
+ static fromPacket(packet, encoding) {
29
+ const stmtId = packet.readInt32();
30
+ const flags = packet.readInt8();
31
+ const iterationCount = packet.readInt32();
32
+
33
+ let i = packet.offset;
34
+ while (i < packet.end - 1) {
35
+ if (
36
+ (packet.buffer[i + 1] === Types.VAR_STRING ||
37
+ packet.buffer[i + 1] === Types.NULL ||
38
+ packet.buffer[i + 1] === Types.DOUBLE ||
39
+ packet.buffer[i + 1] === Types.TINY ||
40
+ packet.buffer[i + 1] === Types.DATETIME ||
41
+ packet.buffer[i + 1] === Types.JSON) &&
42
+ packet.buffer[i] === 1 &&
43
+ packet.buffer[i + 2] === 0
44
+ ) {
45
+ break;
46
+ } else {
47
+ packet.readInt8();
48
+ }
49
+ i++;
50
+ }
51
+
52
+ const types = [];
53
+
54
+ for (let i = packet.offset + 1; i < packet.end - 1; i++) {
55
+ if (
56
+ (packet.buffer[i] === Types.VAR_STRING ||
57
+ packet.buffer[i] === Types.NULL ||
58
+ packet.buffer[i] === Types.DOUBLE ||
59
+ packet.buffer[i] === Types.TINY ||
60
+ packet.buffer[i] === Types.DATETIME ||
61
+ packet.buffer[i] === Types.JSON) &&
62
+ packet.buffer[i + 1] === 0
63
+ ) {
64
+ types.push(packet.buffer[i]);
65
+ packet.skip(2);
66
+ }
67
+ }
68
+
69
+ packet.skip(1);
70
+
71
+ const values = [];
72
+ for (let i = 0; i < types.length; i++) {
73
+ if (types[i] === Types.VAR_STRING) {
74
+ values.push(packet.readLengthCodedString(encoding));
75
+ } else if (types[i] === Types.DOUBLE) {
76
+ values.push(packet.readDouble());
77
+ } else if (types[i] === Types.TINY) {
78
+ values.push(packet.readInt8());
79
+ } else if (types[i] === Types.DATETIME) {
80
+ values.push(packet.readDateTime());
81
+ } else if (types[i] === Types.JSON) {
82
+ values.push(JSON.parse(packet.readLengthCodedString(encoding)));
83
+ }
84
+ if (types[i] === Types.NULL) {
85
+ values.push(null);
86
+ }
87
+ }
88
+
89
+ return { stmtId, flags, iterationCount, values };
90
+ }
91
+
92
+ _serializeToBuffer(buffer) {
93
+ const useQueryAttributes =
94
+ this.clientFlags & ClientConstants.CLIENT_QUERY_ATTRIBUTES;
95
+
96
+ const attrNames =
97
+ useQueryAttributes && this.attributes ? Object.keys(this.attributes) : [];
98
+ const numParams = this.parameters ? this.parameters.length : 0;
99
+ const numAttrs = attrNames.length;
100
+ const totalParams = numParams + numAttrs;
101
+
102
+ const packet = new Packet(0, buffer, 0, buffer.length);
103
+ packet.offset = 4;
104
+ packet.writeInt8(CommandCodes.STMT_EXECUTE);
105
+ packet.writeInt32(this.id);
106
+
107
+ let cursorFlags = CursorType.NO_CURSOR;
108
+ if (useQueryAttributes) {
109
+ cursorFlags |= CursorType.PARAMETER_COUNT_AVAILABLE;
110
+ }
111
+ packet.writeInt8(cursorFlags);
112
+ packet.writeInt32(1); // iteration-count, always 1
113
+
114
+ if (useQueryAttributes) {
115
+ packet.writeLengthCodedNumber(totalParams);
116
+ }
117
+
118
+ if (totalParams > 0) {
119
+ const bindParams =
120
+ numParams > 0
121
+ ? this.parameters.map((v) =>
122
+ toParameter(v, this.encoding, this.timezone)
123
+ )
124
+ : [];
125
+ const attrParams = attrNames.map((name) =>
126
+ toParameter(this.attributes[name], this.encoding, this.timezone)
127
+ );
128
+ const allParams = bindParams.concat(attrParams);
129
+
130
+ // null bitmap
131
+ let bitmap = 0;
132
+ let bitValue = 1;
133
+ allParams.forEach((parameter) => {
134
+ if (parameter.type === Types.NULL) {
135
+ bitmap += bitValue;
136
+ }
137
+ bitValue *= 2;
138
+ if (bitValue === 256) {
139
+ packet.writeInt8(bitmap);
140
+ bitmap = 0;
141
+ bitValue = 1;
142
+ }
143
+ });
144
+ if (bitValue !== 1) {
145
+ packet.writeInt8(bitmap);
146
+ }
147
+
148
+ packet.writeInt8(1); // new-params-bound-flag
149
+
150
+ // types (and names for attributes)
151
+ for (let i = 0; i < allParams.length; i++) {
152
+ packet.writeInt8(allParams[i].type);
153
+ packet.writeInt8(0); // unsigned flag
154
+ if (useQueryAttributes) {
155
+ const name = i < numParams ? '' : attrNames[i - numParams];
156
+ packet.writeLengthCodedString(name, this.encoding);
157
+ }
158
+ }
159
+
160
+ // values
161
+ allParams.forEach((parameter) => {
162
+ if (parameter.type !== Types.NULL) {
163
+ parameter.writer.call(packet, parameter.value);
164
+ }
165
+ });
166
+ }
167
+
168
+ return packet;
169
+ }
170
+
171
+ toPacket() {
172
+ const p = this._serializeToBuffer(Packet.MockBuffer());
173
+ return this._serializeToBuffer(Buffer.allocUnsafe(p.offset));
174
+ }
175
+ }
176
+
177
+ module.exports = Execute;
@@ -0,0 +1,112 @@
1
+ 'use strict';
2
+
3
+ const Packet = require('../packets/packet');
4
+ const ClientConstants = require('../constants/client.js');
5
+
6
+ // https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::Handshake
7
+
8
+ class Handshake {
9
+ constructor(args) {
10
+ this.protocolVersion = args.protocolVersion;
11
+ this.serverVersion = args.serverVersion;
12
+ this.capabilityFlags = args.capabilityFlags;
13
+ this.connectionId = args.connectionId;
14
+ this.authPluginData1 = args.authPluginData1;
15
+ this.authPluginData2 = args.authPluginData2;
16
+ this.characterSet = args.characterSet;
17
+ this.statusFlags = args.statusFlags;
18
+ this.authPluginName = args.authPluginName;
19
+ }
20
+
21
+ setScrambleData(cb) {
22
+ require('crypto').randomBytes(20, (err, data) => {
23
+ if (err) {
24
+ cb(err);
25
+ return;
26
+ }
27
+ this.authPluginData1 = data.slice(0, 8);
28
+ this.authPluginData2 = data.slice(8, 20);
29
+ cb();
30
+ });
31
+ }
32
+
33
+ toPacket(sequenceId) {
34
+ const length = 68 + Buffer.byteLength(this.serverVersion, 'utf8');
35
+ const buffer = Buffer.alloc(length + 4, 0); // zero fill, 10 bytes filler later needs to contain zeros
36
+ const packet = new Packet(sequenceId, buffer, 0, length + 4);
37
+ packet.offset = 4;
38
+ packet.writeInt8(this.protocolVersion);
39
+ packet.writeString(this.serverVersion, 'cesu8');
40
+ packet.writeInt8(0);
41
+ packet.writeInt32(this.connectionId);
42
+ packet.writeBuffer(this.authPluginData1);
43
+ packet.writeInt8(0);
44
+ const capabilityFlagsBuffer = Buffer.allocUnsafe(4);
45
+ capabilityFlagsBuffer.writeUInt32LE(this.capabilityFlags, 0);
46
+ packet.writeBuffer(capabilityFlagsBuffer.slice(0, 2));
47
+ packet.writeInt8(this.characterSet);
48
+ packet.writeInt16(this.statusFlags);
49
+ packet.writeBuffer(capabilityFlagsBuffer.slice(2, 4));
50
+ packet.writeInt8(21); // authPluginDataLength
51
+ packet.skip(10);
52
+ packet.writeBuffer(this.authPluginData2);
53
+ packet.writeInt8(0);
54
+ packet.writeString('mysql_native_password', 'latin1');
55
+ packet.writeInt8(0);
56
+ return packet;
57
+ }
58
+
59
+ static fromPacket(packet) {
60
+ const args = {};
61
+ args.protocolVersion = packet.readInt8();
62
+ args.serverVersion = packet.readNullTerminatedString('cesu8');
63
+ args.connectionId = packet.readInt32();
64
+ args.authPluginData1 = packet.readBuffer(8);
65
+ packet.skip(1);
66
+ const capabilityFlagsBuffer = Buffer.allocUnsafe(4);
67
+ capabilityFlagsBuffer[0] = packet.readInt8();
68
+ capabilityFlagsBuffer[1] = packet.readInt8();
69
+ if (packet.haveMoreData()) {
70
+ args.characterSet = packet.readInt8();
71
+ args.statusFlags = packet.readInt16();
72
+ // upper 2 bytes
73
+ capabilityFlagsBuffer[2] = packet.readInt8();
74
+ capabilityFlagsBuffer[3] = packet.readInt8();
75
+ args.capabilityFlags = capabilityFlagsBuffer.readUInt32LE(0);
76
+ if (args.capabilityFlags & ClientConstants.PLUGIN_AUTH) {
77
+ args.authPluginDataLength = packet.readInt8();
78
+ } else {
79
+ args.authPluginDataLength = 0;
80
+ packet.skip(1);
81
+ }
82
+ packet.skip(10);
83
+ } else {
84
+ args.capabilityFlags = capabilityFlagsBuffer.readUInt16LE(0);
85
+ }
86
+
87
+ const isSecureConnection =
88
+ args.capabilityFlags & ClientConstants.SECURE_CONNECTION;
89
+ if (isSecureConnection) {
90
+ const authPluginDataLength = args.authPluginDataLength;
91
+ if (authPluginDataLength === 0) {
92
+ // for Secure Password Authentication
93
+ args.authPluginDataLength = 20;
94
+ args.authPluginData2 = packet.readBuffer(12);
95
+ packet.skip(1);
96
+ } else {
97
+ // length > 0
98
+ // for Custom Auth Plugin (PLUGIN_AUTH)
99
+ const len = Math.max(13, authPluginDataLength - 8);
100
+ args.authPluginData2 = packet.readBuffer(len);
101
+ }
102
+ }
103
+
104
+ if (args.capabilityFlags & ClientConstants.PLUGIN_AUTH) {
105
+ args.authPluginName = packet.readNullTerminatedString('ascii');
106
+ }
107
+
108
+ return new Handshake(args);
109
+ }
110
+ }
111
+
112
+ module.exports = Handshake;
@@ -0,0 +1,173 @@
1
+ 'use strict';
2
+
3
+ const ClientConstants = require('../constants/client.js');
4
+ const CharsetToEncoding = require('../constants/charset_encodings.js');
5
+ const Packet = require('../packets/packet.js');
6
+
7
+ const auth41 = require('../auth_41.js');
8
+
9
+ class HandshakeResponse {
10
+ constructor(handshake) {
11
+ this.user = handshake.user || '';
12
+ this.database = handshake.database || '';
13
+ this.password = handshake.password || '';
14
+ this.passwordSha1 = handshake.passwordSha1;
15
+ this.authPluginData1 = handshake.authPluginData1;
16
+ this.authPluginData2 = handshake.authPluginData2;
17
+ this.compress = handshake.compress;
18
+ this.clientFlags = handshake.flags;
19
+
20
+ // Accept pre-calculated authToken and authPluginName from caller
21
+ // This allows the caller to optimize by using the server's preferred auth method
22
+ if (
23
+ handshake.authToken !== undefined &&
24
+ handshake.authPluginName !== undefined
25
+ ) {
26
+ // Validate types to fail fast with clear errors
27
+ if (!Buffer.isBuffer(handshake.authToken)) {
28
+ throw new TypeError(
29
+ 'HandshakeResponse authToken must be a Buffer when provided'
30
+ );
31
+ }
32
+ if (typeof handshake.authPluginName !== 'string') {
33
+ throw new TypeError(
34
+ 'HandshakeResponse authPluginName must be a string when provided'
35
+ );
36
+ }
37
+ this.authToken = handshake.authToken;
38
+ this.authPluginName = handshake.authPluginName;
39
+ } else {
40
+ // Fallback to legacy behavior: calculate mysql_native_password token
41
+ // TODO: pre-4.1 auth support
42
+ let authToken;
43
+ if (this.passwordSha1) {
44
+ authToken = auth41.calculateTokenFromPasswordSha(
45
+ this.passwordSha1,
46
+ this.authPluginData1,
47
+ this.authPluginData2
48
+ );
49
+ } else {
50
+ authToken = auth41.calculateToken(
51
+ this.password,
52
+ this.authPluginData1,
53
+ this.authPluginData2
54
+ );
55
+ }
56
+ this.authToken = authToken;
57
+ this.authPluginName = 'mysql_native_password';
58
+ }
59
+
60
+ this.charsetNumber = handshake.charsetNumber;
61
+ this.encoding = CharsetToEncoding[handshake.charsetNumber];
62
+ this.connectAttributes = handshake.connectAttributes;
63
+ }
64
+
65
+ serializeResponse(buffer) {
66
+ const isSet = (flag) => this.clientFlags & ClientConstants[flag];
67
+ const packet = new Packet(0, buffer, 0, buffer.length);
68
+ packet.offset = 4;
69
+ packet.writeInt32(this.clientFlags);
70
+ packet.writeInt32(0); // max packet size. todo: move to config
71
+ packet.writeInt8(this.charsetNumber);
72
+ packet.skip(23);
73
+ const encoding = this.encoding;
74
+ packet.writeNullTerminatedString(this.user, encoding);
75
+ let k;
76
+ if (isSet('PLUGIN_AUTH_LENENC_CLIENT_DATA')) {
77
+ packet.writeLengthCodedNumber(this.authToken.length);
78
+ packet.writeBuffer(this.authToken);
79
+ } else if (isSet('SECURE_CONNECTION')) {
80
+ packet.writeInt8(this.authToken.length);
81
+ packet.writeBuffer(this.authToken);
82
+ } else {
83
+ packet.writeBuffer(this.authToken);
84
+ packet.writeInt8(0);
85
+ }
86
+ if (isSet('CONNECT_WITH_DB')) {
87
+ packet.writeNullTerminatedString(this.database, encoding);
88
+ }
89
+ if (isSet('PLUGIN_AUTH')) {
90
+ // Use the auth plugin name specified by the caller (optimized for server's preference)
91
+ // or fall back to mysql_native_password for backward compatibility
92
+ packet.writeNullTerminatedString(
93
+ this.authPluginName || 'mysql_native_password',
94
+ 'latin1'
95
+ );
96
+ }
97
+ if (isSet('CONNECT_ATTRS')) {
98
+ const connectAttributes = this.connectAttributes || {};
99
+ const attrNames = Object.keys(connectAttributes);
100
+ let keysLength = 0;
101
+ for (k = 0; k < attrNames.length; ++k) {
102
+ keysLength += Packet.lengthCodedStringLength(attrNames[k], encoding);
103
+ keysLength += Packet.lengthCodedStringLength(
104
+ connectAttributes[attrNames[k]],
105
+ encoding
106
+ );
107
+ }
108
+ packet.writeLengthCodedNumber(keysLength);
109
+ for (k = 0; k < attrNames.length; ++k) {
110
+ packet.writeLengthCodedString(attrNames[k], encoding);
111
+ packet.writeLengthCodedString(
112
+ connectAttributes[attrNames[k]],
113
+ encoding
114
+ );
115
+ }
116
+ }
117
+ return packet;
118
+ }
119
+
120
+ toPacket() {
121
+ if (typeof this.user !== 'string') {
122
+ throw new Error('"user" connection config property must be a string');
123
+ }
124
+ if (typeof this.database !== 'string') {
125
+ throw new Error('"database" connection config property must be a string');
126
+ }
127
+ // dry run: calculate resulting packet length
128
+ const p = this.serializeResponse(Packet.MockBuffer());
129
+ return this.serializeResponse(Buffer.alloc(p.offset));
130
+ }
131
+ static fromPacket(packet, serverFlags = 0xffffffff) {
132
+ const args = {};
133
+ args.clientFlags = packet.readInt32();
134
+ function isSet(flag) {
135
+ return args.clientFlags & serverFlags & ClientConstants[flag];
136
+ }
137
+ args.maxPacketSize = packet.readInt32();
138
+ args.charsetNumber = packet.readInt8();
139
+ const encoding = CharsetToEncoding[args.charsetNumber];
140
+ args.encoding = encoding;
141
+ packet.skip(23);
142
+ args.user = packet.readNullTerminatedString(encoding);
143
+ let authTokenLength;
144
+ if (isSet('PLUGIN_AUTH_LENENC_CLIENT_DATA')) {
145
+ authTokenLength = packet.readLengthCodedNumber(encoding);
146
+ args.authToken = packet.readBuffer(authTokenLength);
147
+ } else if (isSet('SECURE_CONNECTION')) {
148
+ authTokenLength = packet.readInt8();
149
+ args.authToken = packet.readBuffer(authTokenLength);
150
+ } else {
151
+ args.authToken = packet.readNullTerminatedString(encoding);
152
+ }
153
+ if (isSet('CONNECT_WITH_DB')) {
154
+ args.database = packet.readNullTerminatedString(encoding);
155
+ }
156
+ if (isSet('PLUGIN_AUTH')) {
157
+ args.authPluginName = packet.readNullTerminatedString(encoding);
158
+ }
159
+ if (isSet('CONNECT_ATTRS')) {
160
+ const keysLength = packet.readLengthCodedNumber(encoding);
161
+ const keysEnd = packet.offset + keysLength;
162
+ const attrs = {};
163
+ while (packet.offset < keysEnd) {
164
+ attrs[packet.readLengthCodedString(encoding)] =
165
+ packet.readLengthCodedString(encoding);
166
+ }
167
+ args.connectAttributes = attrs;
168
+ }
169
+ return args;
170
+ }
171
+ }
172
+
173
+ module.exports = HandshakeResponse;
@@ -0,0 +1,154 @@
1
+ // This file was modified by Oracle on June 1, 2021.
2
+ // A utility method was introduced to generate an Error instance from a
3
+ // binary server packet.
4
+ // Modifications copyright (c) 2021, Oracle and/or its affiliates.
5
+
6
+ // This file was modified by Oracle on September 21, 2021.
7
+ // The new AuthNextFactor packet is now available.
8
+ // Modifications copyright (c) 2021, Oracle and/or its affiliates.
9
+
10
+ 'use strict';
11
+
12
+ const process = require('process');
13
+
14
+ const AuthNextFactor = require('./auth_next_factor');
15
+ const AuthSwitchRequest = require('./auth_switch_request');
16
+ const AuthSwitchRequestMoreData = require('./auth_switch_request_more_data');
17
+ const AuthSwitchResponse = require('./auth_switch_response');
18
+ const BinaryRow = require('./binary_row');
19
+ const BinlogDump = require('./binlog_dump');
20
+ const ChangeUser = require('./change_user');
21
+ const CloseStatement = require('./close_statement');
22
+ const ColumnDefinition = require('./column_definition');
23
+ const Execute = require('./execute');
24
+ const Handshake = require('./handshake');
25
+ const HandshakeResponse = require('./handshake_response');
26
+ const PrepareStatement = require('./prepare_statement');
27
+ const PreparedStatementHeader = require('./prepared_statement_header');
28
+ const Query = require('./query');
29
+ const RegisterSlave = require('./register_slave');
30
+ const ResetConnection = require('./reset_connection');
31
+ const ResultSetHeader = require('./resultset_header');
32
+ const SSLRequest = require('./ssl_request');
33
+ const TextRow = require('./text_row');
34
+
35
+ const ctorMap = {
36
+ AuthNextFactor,
37
+ AuthSwitchRequest,
38
+ AuthSwitchRequestMoreData,
39
+ AuthSwitchResponse,
40
+ BinaryRow,
41
+ BinlogDump,
42
+ ChangeUser,
43
+ CloseStatement,
44
+ ColumnDefinition,
45
+ Execute,
46
+ Handshake,
47
+ HandshakeResponse,
48
+ PrepareStatement,
49
+ PreparedStatementHeader,
50
+ Query,
51
+ RegisterSlave,
52
+ ResetConnection,
53
+ ResultSetHeader,
54
+ SSLRequest,
55
+ TextRow,
56
+ };
57
+ Object.entries(ctorMap).forEach(([name, ctor]) => {
58
+ module.exports[name] = ctor;
59
+ // monkey-patch it to include name if debug is on
60
+ if (process.env.NODE_DEBUG) {
61
+ if (ctor.prototype.toPacket) {
62
+ const old = ctor.prototype.toPacket;
63
+ ctor.prototype.toPacket = function () {
64
+ const p = old.call(this);
65
+ p._name = name;
66
+ return p;
67
+ };
68
+ }
69
+ }
70
+ });
71
+
72
+ // simple packets:
73
+ const Packet = require('./packet');
74
+ exports.Packet = Packet;
75
+
76
+ class OK {
77
+ static toPacket(args, encoding) {
78
+ args = args || {};
79
+ const affectedRows = args.affectedRows || 0;
80
+ const insertId = args.insertId || 0;
81
+ const serverStatus = args.serverStatus || 0;
82
+ const warningCount = args.warningCount || 0;
83
+ const message = args.message || '';
84
+
85
+ let length = 9 + Packet.lengthCodedNumberLength(affectedRows);
86
+ length += Packet.lengthCodedNumberLength(insertId);
87
+
88
+ const buffer = Buffer.allocUnsafe(length);
89
+ const packet = new Packet(0, buffer, 0, length);
90
+ packet.offset = 4;
91
+ packet.writeInt8(0);
92
+ packet.writeLengthCodedNumber(affectedRows);
93
+ packet.writeLengthCodedNumber(insertId);
94
+ packet.writeInt16(serverStatus);
95
+ packet.writeInt16(warningCount);
96
+ packet.writeString(message, encoding);
97
+ packet._name = 'OK';
98
+ return packet;
99
+ }
100
+ }
101
+
102
+ exports.OK = OK;
103
+
104
+ // warnings, statusFlags
105
+ class EOF {
106
+ static toPacket(warnings, statusFlags) {
107
+ if (typeof warnings === 'undefined') {
108
+ warnings = 0;
109
+ }
110
+ if (typeof statusFlags === 'undefined') {
111
+ statusFlags = 0;
112
+ }
113
+ const packet = new Packet(0, Buffer.allocUnsafe(9), 0, 9);
114
+ packet.offset = 4;
115
+ packet.writeInt8(0xfe);
116
+ packet.writeInt16(warnings);
117
+ packet.writeInt16(statusFlags);
118
+ packet._name = 'EOF';
119
+ return packet;
120
+ }
121
+ }
122
+
123
+ exports.EOF = EOF;
124
+
125
+ class Error {
126
+ static toPacket(args, encoding) {
127
+ const length = 13 + Buffer.byteLength(args.message, 'utf8');
128
+ const packet = new Packet(0, Buffer.allocUnsafe(length), 0, length);
129
+ packet.offset = 4;
130
+ packet.writeInt8(0xff);
131
+ packet.writeInt16(args.code);
132
+ // TODO: sql state parameter
133
+ packet.writeString('#_____', encoding);
134
+ packet.writeString(args.message, encoding);
135
+ packet._name = 'Error';
136
+ return packet;
137
+ }
138
+
139
+ static fromPacket(packet) {
140
+ packet.readInt8(); // marker
141
+ const code = packet.readInt16();
142
+ packet.readString(1, 'ascii'); // sql state marker
143
+ // The SQL state of the ERR_Packet which is always 5 bytes long.
144
+ // https://dev.mysql.com/doc/dev/mysql-server/8.0.11/page_protocol_basic_dt_strings.html#sect_protocol_basic_dt_string_fix
145
+ packet.readString(5, 'ascii'); // sql state (ignore for now)
146
+ const message = packet.readNullTerminatedString('utf8');
147
+ const error = new Error();
148
+ error.message = message;
149
+ error.code = code;
150
+ return error;
151
+ }
152
+ }
153
+
154
+ exports.Error = Error;