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,978 @@
1
+ // This file was modified by Oracle on June 1, 2021.
2
+ // A comment describing some changes in the strict default SQL mode regarding
3
+ // non-standard dates was introduced.
4
+ // Modifications copyright (c) 2021, Oracle and/or its affiliates.
5
+
6
+ 'use strict';
7
+
8
+ const ErrorCodeToName = require('../constants/errors.js');
9
+ const NativeBuffer = require('buffer').Buffer;
10
+ const Long = require('long');
11
+ const StringParser = require('../parsers/string.js');
12
+ const Types = require('../constants/types.js');
13
+ const INVALID_DATE = new Date(NaN);
14
+
15
+ // this is nearly duplicate of previous function so generated code is not slower
16
+ // due to "if (dateStrings)" branching
17
+ const pad = '000000000000';
18
+ function leftPad(num, value) {
19
+ const s = value.toString();
20
+ // if we don't need to pad
21
+ if (s.length >= num) {
22
+ return s;
23
+ }
24
+ return (pad + s).slice(-num);
25
+ }
26
+
27
+ // The whole reason parse* function below exist
28
+ // is because String creation is relatively expensive (at least with V8), and if we have
29
+ // a buffer with "12345" content ideally we would like to bypass intermediate
30
+ // "12345" string creation and directly build 12345 number out of
31
+ // <Buffer 31 32 33 34 35> data.
32
+ // In my benchmarks the difference is ~25M 8-digit numbers per second vs
33
+ // 4.5 M using Number(packet.readLengthCodedString())
34
+ // not used when size is close to max precision as series of *10 accumulate error
35
+ // and approximate result mihgt be diffreent from (approximate as well) Number(bigNumStringValue))
36
+ // In the futire node version if speed difference is smaller parse* functions might be removed
37
+ // don't consider them as Packet public API
38
+
39
+ const minus = '-'.charCodeAt(0);
40
+ const plus = '+'.charCodeAt(0);
41
+
42
+ // TODO: handle E notation
43
+ const dot = '.'.charCodeAt(0);
44
+ const exponent = 'e'.charCodeAt(0);
45
+ const exponentCapital = 'E'.charCodeAt(0);
46
+
47
+ class Packet {
48
+ constructor(id, buffer, start, end) {
49
+ // hot path, enable checks when testing only
50
+ // if (!Buffer.isBuffer(buffer) || typeof start == 'undefined' || typeof end == 'undefined')
51
+ // throw new Error('invalid packet');
52
+ this.sequenceId = id;
53
+ this.numPackets = 1;
54
+ this.buffer = buffer;
55
+ this.start = start;
56
+ this.offset = start + 4;
57
+ this.end = end;
58
+ }
59
+
60
+ // ==============================
61
+ // readers
62
+ // ==============================
63
+ reset() {
64
+ this.offset = this.start + 4;
65
+ }
66
+
67
+ length() {
68
+ return this.end - this.start;
69
+ }
70
+
71
+ slice() {
72
+ return this.buffer.slice(this.start, this.end);
73
+ }
74
+
75
+ dump() {
76
+ console.log(
77
+ [this.buffer.asciiSlice(this.start, this.end)],
78
+ this.buffer.slice(this.start, this.end),
79
+ this.length(),
80
+ this.sequenceId
81
+ );
82
+ }
83
+
84
+ haveMoreData() {
85
+ return this.end > this.offset;
86
+ }
87
+
88
+ skip(num) {
89
+ this.offset += num;
90
+ }
91
+
92
+ readInt8() {
93
+ return this.buffer[this.offset++];
94
+ }
95
+
96
+ readInt16() {
97
+ this.offset += 2;
98
+ return this.buffer.readUInt16LE(this.offset - 2);
99
+ }
100
+
101
+ readInt24() {
102
+ return this.readInt16() + (this.readInt8() << 16);
103
+ }
104
+
105
+ readInt32() {
106
+ this.offset += 4;
107
+ return this.buffer.readUInt32LE(this.offset - 4);
108
+ }
109
+
110
+ readSInt8() {
111
+ return this.buffer.readInt8(this.offset++);
112
+ }
113
+
114
+ readSInt16() {
115
+ this.offset += 2;
116
+ return this.buffer.readInt16LE(this.offset - 2);
117
+ }
118
+
119
+ readSInt32() {
120
+ this.offset += 4;
121
+ return this.buffer.readInt32LE(this.offset - 4);
122
+ }
123
+
124
+ readInt64JSNumber() {
125
+ const word0 = this.readInt32();
126
+ const word1 = this.readInt32();
127
+ const l = new Long(word0, word1, true);
128
+ return l.toNumber();
129
+ }
130
+
131
+ readSInt64JSNumber() {
132
+ const word0 = this.readInt32();
133
+ const word1 = this.readInt32();
134
+ if (!(word1 & 0x80000000)) {
135
+ return word0 + 0x100000000 * word1;
136
+ }
137
+ const l = new Long(word0, word1, false);
138
+ return l.toNumber();
139
+ }
140
+
141
+ readInt64String() {
142
+ const word0 = this.readInt32();
143
+ const word1 = this.readInt32();
144
+ const res = new Long(word0, word1, true);
145
+ return res.toString();
146
+ }
147
+
148
+ readSInt64String() {
149
+ const word0 = this.readInt32();
150
+ const word1 = this.readInt32();
151
+ const res = new Long(word0, word1, false);
152
+ return res.toString();
153
+ }
154
+
155
+ readInt64() {
156
+ const word0 = this.readInt32();
157
+ const word1 = this.readInt32();
158
+ const res = new Long(word0, word1, true);
159
+ const resNumber = res.toNumber();
160
+ return Number.isSafeInteger(resNumber) ? resNumber : res.toString();
161
+ }
162
+
163
+ readSInt64() {
164
+ const word0 = this.readInt32();
165
+ const word1 = this.readInt32();
166
+ const res = new Long(word0, word1, false);
167
+ const resNumber = res.toNumber();
168
+ return Number.isSafeInteger(resNumber) ? resNumber : res.toString();
169
+ }
170
+
171
+ isEOF() {
172
+ return this.buffer[this.offset] === 0xfe && this.length() < 13;
173
+ }
174
+
175
+ eofStatusFlags() {
176
+ return this.buffer.readInt16LE(this.offset + 3);
177
+ }
178
+
179
+ eofWarningCount() {
180
+ return this.buffer.readInt16LE(this.offset + 1);
181
+ }
182
+
183
+ readLengthCodedNumber(bigNumberStrings, signed) {
184
+ const byte1 = this.buffer[this.offset++];
185
+ if (byte1 < 251) {
186
+ return byte1;
187
+ }
188
+ return this.readLengthCodedNumberExt(byte1, bigNumberStrings, signed);
189
+ }
190
+
191
+ readLengthCodedNumberSigned(bigNumberStrings) {
192
+ return this.readLengthCodedNumber(bigNumberStrings, true);
193
+ }
194
+
195
+ readLengthCodedNumberExt(tag, bigNumberStrings, signed) {
196
+ let word0, word1;
197
+ let res;
198
+ if (tag === 0xfb) {
199
+ return null;
200
+ }
201
+ if (tag === 0xfc) {
202
+ return this.readInt8() + (this.readInt8() << 8);
203
+ }
204
+ if (tag === 0xfd) {
205
+ return this.readInt8() + (this.readInt8() << 8) + (this.readInt8() << 16);
206
+ }
207
+ if (tag === 0xfe) {
208
+ // TODO: check version
209
+ // Up to MySQL 3.22, 0xfe was followed by a 4-byte integer.
210
+ word0 = this.readInt32();
211
+ word1 = this.readInt32();
212
+ if (word1 === 0) {
213
+ return word0; // don't convert to float if possible
214
+ }
215
+ if (word1 < 2097152) {
216
+ // max exact float point int, 2^52 / 2^32
217
+ return word1 * 0x100000000 + word0;
218
+ }
219
+ res = new Long(word0, word1, !signed); // Long need unsigned
220
+ const resNumber = res.toNumber();
221
+ const resString = res.toString();
222
+ if (bigNumberStrings || !Number.isSafeInteger(resNumber)) {
223
+ return resString;
224
+ }
225
+ return resNumber;
226
+ }
227
+
228
+ console.trace();
229
+ throw new Error(`Should not reach here: ${tag}`);
230
+ }
231
+
232
+ readFloat() {
233
+ const res = this.buffer.readFloatLE(this.offset);
234
+ this.offset += 4;
235
+ return res;
236
+ }
237
+
238
+ readDouble() {
239
+ const res = this.buffer.readDoubleLE(this.offset);
240
+ this.offset += 8;
241
+ return res;
242
+ }
243
+
244
+ readBuffer(len) {
245
+ if (typeof len === 'undefined') {
246
+ len = this.end - this.offset;
247
+ }
248
+ this.offset += len;
249
+ return this.buffer.slice(this.offset - len, this.offset);
250
+ }
251
+
252
+ // DATE, DATETIME and TIMESTAMP
253
+ readDateTime(timezone) {
254
+ if (!timezone || timezone === 'Z' || timezone === 'local') {
255
+ const length = this.readInt8();
256
+ if (length === 0xfb) {
257
+ return null;
258
+ }
259
+ let y = 0;
260
+ let m = 0;
261
+ let d = 0;
262
+ let H = 0;
263
+ let M = 0;
264
+ let S = 0;
265
+ let ms = 0;
266
+ if (length > 3) {
267
+ y = this.readInt16();
268
+ m = this.readInt8();
269
+ d = this.readInt8();
270
+ }
271
+ if (length > 6) {
272
+ H = this.readInt8();
273
+ M = this.readInt8();
274
+ S = this.readInt8();
275
+ }
276
+ if (length > 10) {
277
+ ms = this.readInt32() / 1000;
278
+ }
279
+ // NO_ZERO_DATE mode and NO_ZERO_IN_DATE mode are part of the strict
280
+ // default SQL mode used by MySQL 8.0. This means that non-standard
281
+ // dates like '0000-00-00' become NULL. For older versions and other
282
+ // possible MySQL flavours we still need to account for the
283
+ // non-standard behaviour.
284
+ if (y + m + d + H + M + S + ms === 0) {
285
+ return INVALID_DATE;
286
+ }
287
+ if (timezone === 'Z') {
288
+ return new Date(Date.UTC(y, m - 1, d, H, M, S, ms));
289
+ }
290
+ return new Date(y, m - 1, d, H, M, S, ms);
291
+ }
292
+ let str = this.readDateTimeString(6, 'T', null);
293
+ if (!str) {
294
+ return INVALID_DATE;
295
+ }
296
+ if (str.length === 10) {
297
+ str += 'T00:00:00';
298
+ }
299
+ return new Date(str + timezone);
300
+ }
301
+
302
+ readDateTimeString(decimals, timeSep, columnType) {
303
+ const length = this.readInt8();
304
+ let y = 0;
305
+ let m = 0;
306
+ let d = 0;
307
+ let H = 0;
308
+ let M = 0;
309
+ let S = 0;
310
+ let ms = 0;
311
+ let str;
312
+ if (length > 3) {
313
+ y = this.readInt16();
314
+ m = this.readInt8();
315
+ d = this.readInt8();
316
+ str = [leftPad(4, y), leftPad(2, m), leftPad(2, d)].join('-');
317
+ }
318
+ if (length > 6) {
319
+ H = this.readInt8();
320
+ M = this.readInt8();
321
+ S = this.readInt8();
322
+ str += `${timeSep || ' '}${[
323
+ leftPad(2, H),
324
+ leftPad(2, M),
325
+ leftPad(2, S),
326
+ ].join(':')}`;
327
+ } else if (columnType === Types.DATETIME) {
328
+ str += ' 00:00:00';
329
+ }
330
+ if (length > 10) {
331
+ ms = this.readInt32();
332
+ str += '.';
333
+ if (decimals) {
334
+ ms = leftPad(6, ms);
335
+ if (ms.length > decimals) {
336
+ ms = ms.substring(0, decimals); // rounding is done at the MySQL side, only 0 are here
337
+ }
338
+ }
339
+ str += ms;
340
+ }
341
+ return str;
342
+ }
343
+
344
+ // TIME - value as a string, Can be negative
345
+ readTimeString(convertTtoMs) {
346
+ const length = this.readInt8();
347
+ if (length === 0) {
348
+ return '00:00:00';
349
+ }
350
+ const sign = this.readInt8() ? -1 : 1; // 'isNegative' flag byte
351
+ let d = 0;
352
+ let H = 0;
353
+ let M = 0;
354
+ let S = 0;
355
+ let ms = 0;
356
+ if (length > 6) {
357
+ d = this.readInt32();
358
+ H = this.readInt8();
359
+ M = this.readInt8();
360
+ S = this.readInt8();
361
+ }
362
+ if (length > 10) {
363
+ ms = this.readInt32();
364
+ }
365
+ if (convertTtoMs) {
366
+ H += d * 24;
367
+ M += H * 60;
368
+ S += M * 60;
369
+ ms += S * 1000;
370
+ ms *= sign;
371
+ return ms;
372
+ }
373
+ // Format follows mySQL TIME format ([-][h]hh:mm:ss[.u[u[u[u[u[u]]]]]])
374
+ // For positive times below 24 hours, this makes it equal to ISO 8601 times
375
+ return (
376
+ (sign === -1 ? '-' : '') +
377
+ [leftPad(2, d * 24 + H), leftPad(2, M), leftPad(2, S)].join(':') +
378
+ (ms ? `.${ms}`.replace(/0+$/, '') : '')
379
+ );
380
+ }
381
+
382
+ readLengthCodedString(encoding) {
383
+ const len = this.readLengthCodedNumber();
384
+ // TODO: check manually first byte here to avoid polymorphic return type?
385
+ if (len === null) {
386
+ return null;
387
+ }
388
+ this.offset += len;
389
+ // TODO: Use characterSetCode to get proper encoding
390
+ // https://github.com/sidorares/node-mysql2/pull/374
391
+ return StringParser.decode(
392
+ this.buffer,
393
+ encoding,
394
+ this.offset - len,
395
+ this.offset
396
+ );
397
+ }
398
+
399
+ readLengthCodedBuffer() {
400
+ const len = this.readLengthCodedNumber();
401
+ if (len === null) {
402
+ return null;
403
+ }
404
+ return this.readBuffer(len);
405
+ }
406
+
407
+ readNullTerminatedString(encoding) {
408
+ const start = this.offset;
409
+ let end = this.offset;
410
+ while (end < this.end && this.buffer[end] !== 0x00) {
411
+ end = end + 1;
412
+ }
413
+ this.offset = end + 1;
414
+ return StringParser.decode(this.buffer, encoding, start, end);
415
+ }
416
+
417
+ // TODO reuse?
418
+ readString(len, encoding) {
419
+ if (typeof len === 'string' && typeof encoding === 'undefined') {
420
+ encoding = len;
421
+ len = undefined;
422
+ }
423
+ if (typeof len === 'undefined') {
424
+ len = this.end - this.offset;
425
+ }
426
+ this.offset += len;
427
+ return StringParser.decode(
428
+ this.buffer,
429
+ encoding,
430
+ this.offset - len,
431
+ this.offset
432
+ );
433
+ }
434
+
435
+ parseInt(len, supportBigNumbers) {
436
+ if (len === null) {
437
+ return null;
438
+ }
439
+ if (len >= 14 && !supportBigNumbers) {
440
+ const s = this.buffer.toString('ascii', this.offset, this.offset + len);
441
+ this.offset += len;
442
+ return Number(s);
443
+ }
444
+ let result = 0;
445
+ const start = this.offset;
446
+ const end = this.offset + len;
447
+ let sign = 1;
448
+ if (len === 0) {
449
+ return 0; // TODO: assert? exception?
450
+ }
451
+ if (this.buffer[this.offset] === minus) {
452
+ this.offset++;
453
+ sign = -1;
454
+ }
455
+ // max precise int is 9007199254740992
456
+ let str;
457
+ const numDigits = end - this.offset;
458
+ if (supportBigNumbers) {
459
+ if (numDigits >= 15) {
460
+ str = this.readString(end - this.offset, 'binary');
461
+ result = parseInt(str, 10);
462
+ if (Number.isSafeInteger(sign * result)) {
463
+ return sign * result;
464
+ }
465
+ return sign === -1 ? `-${str}` : str;
466
+ }
467
+ if (numDigits > 16) {
468
+ str = this.readString(end - this.offset);
469
+ return sign === -1 ? `-${str}` : str;
470
+ }
471
+ }
472
+ if (this.buffer[this.offset] === plus) {
473
+ this.offset++; // just ignore
474
+ }
475
+ while (this.offset < end) {
476
+ result *= 10;
477
+ result += this.buffer[this.offset] - 48;
478
+ this.offset++;
479
+ }
480
+ const num = result * sign;
481
+ if (!supportBigNumbers) {
482
+ return num;
483
+ }
484
+ if (Number.isSafeInteger(num)) {
485
+ return num;
486
+ }
487
+ return this.buffer.toString('ascii', start, end);
488
+ }
489
+
490
+ // note that if value of inputNumberAsString is bigger than MAX_SAFE_INTEGER
491
+ // ( or smaller than MIN_SAFE_INTEGER ) the parseIntNoBigCheck result might be
492
+ // different from what you would get from Number(inputNumberAsString)
493
+ // String(parseIntNoBigCheck) <> String(Number(inputNumberAsString)) <> inputNumberAsString
494
+ parseIntNoBigCheck(len) {
495
+ if (len === null) {
496
+ return null;
497
+ }
498
+ let result = 0;
499
+ const end = this.offset + len;
500
+ let sign = 1;
501
+ if (len === 0) {
502
+ return 0; // TODO: assert? exception?
503
+ }
504
+ if (this.buffer[this.offset] === minus) {
505
+ this.offset++;
506
+ sign = -1;
507
+ }
508
+ if (this.buffer[this.offset] === plus) {
509
+ this.offset++; // just ignore
510
+ }
511
+ while (this.offset < end) {
512
+ result *= 10;
513
+ result += this.buffer[this.offset] - 48;
514
+ this.offset++;
515
+ }
516
+ return result * sign;
517
+ }
518
+
519
+ // adapted from https://github.com/mysqljs/mysql/blob/dc9c152a87ec51a1f647447268917243d2eab1fd/lib/protocol/Parser.js
520
+ parseGeometryValue() {
521
+ const buffer = this.readLengthCodedBuffer();
522
+ let offset = 4;
523
+ if (buffer === null || !buffer.length) {
524
+ return null;
525
+ }
526
+ const bufferLength = buffer.length;
527
+ function parseGeometry() {
528
+ let x, y, i, j, numPoints, numRings, num, line;
529
+ let result = null;
530
+ if (offset + 5 > bufferLength) {
531
+ return null;
532
+ }
533
+ const byteOrder = buffer.readUInt8(offset);
534
+ offset += 1;
535
+ const wkbType = byteOrder
536
+ ? buffer.readUInt32LE(offset)
537
+ : buffer.readUInt32BE(offset);
538
+ offset += 4;
539
+ switch (wkbType) {
540
+ case 1: // WKBPoint
541
+ if (offset + 16 > bufferLength) {
542
+ return null;
543
+ }
544
+ x = byteOrder
545
+ ? buffer.readDoubleLE(offset)
546
+ : buffer.readDoubleBE(offset);
547
+ offset += 8;
548
+ y = byteOrder
549
+ ? buffer.readDoubleLE(offset)
550
+ : buffer.readDoubleBE(offset);
551
+ offset += 8;
552
+ result = { x: x, y: y };
553
+ break;
554
+ case 2: // WKBLineString
555
+ if (offset + 4 > bufferLength) {
556
+ return null;
557
+ }
558
+ numPoints = byteOrder
559
+ ? buffer.readUInt32LE(offset)
560
+ : buffer.readUInt32BE(offset);
561
+ offset += 4;
562
+ if (numPoints > (bufferLength - offset) / 16) {
563
+ return null;
564
+ }
565
+ result = [];
566
+ for (i = numPoints; i > 0; i--) {
567
+ if (offset + 16 > bufferLength) {
568
+ break;
569
+ }
570
+ x = byteOrder
571
+ ? buffer.readDoubleLE(offset)
572
+ : buffer.readDoubleBE(offset);
573
+ offset += 8;
574
+ y = byteOrder
575
+ ? buffer.readDoubleLE(offset)
576
+ : buffer.readDoubleBE(offset);
577
+ offset += 8;
578
+ result.push({ x: x, y: y });
579
+ }
580
+ break;
581
+ case 3: // WKBPolygon
582
+ if (offset + 4 > bufferLength) {
583
+ return null;
584
+ }
585
+ numRings = byteOrder
586
+ ? buffer.readUInt32LE(offset)
587
+ : buffer.readUInt32BE(offset);
588
+ offset += 4;
589
+ if (numRings > (bufferLength - offset) / 4) {
590
+ return null;
591
+ }
592
+ result = [];
593
+ for (i = numRings; i > 0; i--) {
594
+ if (offset + 4 > bufferLength) {
595
+ break;
596
+ }
597
+ numPoints = byteOrder
598
+ ? buffer.readUInt32LE(offset)
599
+ : buffer.readUInt32BE(offset);
600
+ offset += 4;
601
+ line = [];
602
+ for (j = numPoints; j > 0; j--) {
603
+ if (offset + 16 > bufferLength) {
604
+ break;
605
+ }
606
+ x = byteOrder
607
+ ? buffer.readDoubleLE(offset)
608
+ : buffer.readDoubleBE(offset);
609
+ offset += 8;
610
+ y = byteOrder
611
+ ? buffer.readDoubleLE(offset)
612
+ : buffer.readDoubleBE(offset);
613
+ offset += 8;
614
+ line.push({ x: x, y: y });
615
+ }
616
+ result.push(line);
617
+ }
618
+ break;
619
+ case 4: // WKBMultiPoint
620
+ case 5: // WKBMultiLineString
621
+ case 6: // WKBMultiPolygon
622
+ case 7: // WKBGeometryCollection
623
+ if (offset + 4 > bufferLength) {
624
+ return null;
625
+ }
626
+ num = byteOrder
627
+ ? buffer.readUInt32LE(offset)
628
+ : buffer.readUInt32BE(offset);
629
+ offset += 4;
630
+ if (num > (bufferLength - offset) / 9) {
631
+ return null;
632
+ }
633
+ result = [];
634
+ for (i = num; i > 0; i--) {
635
+ result.push(parseGeometry());
636
+ }
637
+ break;
638
+ }
639
+ return result;
640
+ }
641
+ return parseGeometry();
642
+ }
643
+
644
+ parseVector() {
645
+ const bufLen = this.readLengthCodedNumber();
646
+ const vectorEnd = this.offset + bufLen;
647
+ const result = [];
648
+ while (this.offset < vectorEnd && this.offset < this.end) {
649
+ result.push(this.readFloat());
650
+ }
651
+ return result;
652
+ }
653
+
654
+ parseDate(timezone) {
655
+ const strLen = this.readLengthCodedNumber();
656
+ if (strLen === null) {
657
+ return null;
658
+ }
659
+ if (strLen !== 10) {
660
+ // we expect only YYYY-MM-DD here.
661
+ // if for some reason it's not the case return invalid date
662
+ return new Date(NaN);
663
+ }
664
+ const y = this.parseInt(4);
665
+ this.offset++; // -
666
+ const m = this.parseInt(2);
667
+ this.offset++; // -
668
+ const d = this.parseInt(2);
669
+ if (!timezone || timezone === 'local') {
670
+ return new Date(y, m - 1, d);
671
+ }
672
+ if (timezone === 'Z') {
673
+ return new Date(Date.UTC(y, m - 1, d));
674
+ }
675
+ return new Date(
676
+ `${leftPad(4, y)}-${leftPad(2, m)}-${leftPad(2, d)}T00:00:00${timezone}`
677
+ );
678
+ }
679
+
680
+ parseDateTime(timezone) {
681
+ const str = this.readLengthCodedString('binary');
682
+ if (str === null) {
683
+ return null;
684
+ }
685
+ if (!timezone || timezone === 'local') {
686
+ return new Date(str);
687
+ }
688
+ return new Date(`${str}${timezone}`);
689
+ }
690
+
691
+ parseFloat(len) {
692
+ if (len === null) {
693
+ return null;
694
+ }
695
+ if (len === 0) {
696
+ return 0; // TODO: assert? exception?
697
+ }
698
+
699
+ // For numbers with many digits (>17), use built-in parseFloat to avoid
700
+ // precision loss from accumulated rounding errors in repeated *10 operations.
701
+ // This fixes issues #2928 (MAX_VALUE doubles) and #3690 (DECIMAL(36,18))
702
+ // where very large numbers or numbers with many fractional digits lose precision.
703
+ // The threshold of 17 is based on IEEE 754 double precision (~15-17 significant digits).
704
+ // Testing shows minimal performance impact as most real-world numbers are shorter.
705
+ if (len > 17) {
706
+ const str = this.buffer.toString('utf8', this.offset, this.offset + len);
707
+ this.offset += len;
708
+ return Number.parseFloat(str);
709
+ }
710
+
711
+ let result = 0;
712
+ const end = this.offset + len;
713
+ let factor = 1;
714
+ let pastDot = false;
715
+ let charCode = 0;
716
+ if (this.buffer[this.offset] === minus) {
717
+ this.offset++;
718
+ factor = -1;
719
+ }
720
+ if (this.buffer[this.offset] === plus) {
721
+ this.offset++; // just ignore
722
+ }
723
+ while (this.offset < end) {
724
+ charCode = this.buffer[this.offset];
725
+ if (charCode === dot) {
726
+ pastDot = true;
727
+ this.offset++;
728
+ } else if (charCode === exponent || charCode === exponentCapital) {
729
+ // Scientific notation detected - bail out to parseFloat for exact match.
730
+ // Manual calculation with Math.pow(10, exp) cannot match parseFloat()
731
+ // exactly for most non-zero exponents due to accumulated rounding errors.
732
+ const start = end - len;
733
+ const str = this.buffer.toString('utf8', start, end);
734
+ this.offset = end;
735
+ return Number.parseFloat(str);
736
+ } else {
737
+ result *= 10;
738
+ result += this.buffer[this.offset] - 48;
739
+ this.offset++;
740
+ if (pastDot) {
741
+ factor = factor * 10;
742
+ }
743
+ }
744
+ }
745
+ return result / factor;
746
+ }
747
+
748
+ parseLengthCodedIntNoBigCheck() {
749
+ return this.parseIntNoBigCheck(this.readLengthCodedNumber());
750
+ }
751
+
752
+ parseLengthCodedInt(supportBigNumbers) {
753
+ return this.parseInt(this.readLengthCodedNumber(), supportBigNumbers);
754
+ }
755
+
756
+ parseLengthCodedIntString() {
757
+ return this.readLengthCodedString('binary');
758
+ }
759
+
760
+ parseLengthCodedFloat() {
761
+ return this.parseFloat(this.readLengthCodedNumber());
762
+ }
763
+
764
+ peekByte() {
765
+ return this.buffer[this.offset];
766
+ }
767
+
768
+ // OxFE is often used as "Alt" flag - not ok, not error.
769
+ // For example, it's first byte of AuthSwitchRequest
770
+ isAlt() {
771
+ return this.peekByte() === 0xfe;
772
+ }
773
+
774
+ isError() {
775
+ return this.peekByte() === 0xff;
776
+ }
777
+
778
+ asError(encoding) {
779
+ this.reset();
780
+ this.readInt8(); // fieldCount
781
+ const errorCode = this.readInt16();
782
+ let sqlState = '';
783
+ if (this.buffer[this.offset] === 0x23) {
784
+ this.skip(1);
785
+ sqlState = this.readBuffer(5).toString();
786
+ }
787
+ const message = this.readString(undefined, encoding);
788
+ const err = new Error(message);
789
+ err.code = ErrorCodeToName[errorCode];
790
+ err.errno = errorCode;
791
+ err.sqlState = sqlState;
792
+ err.sqlMessage = message;
793
+ return err;
794
+ }
795
+
796
+ writeInt32(n) {
797
+ this.buffer.writeUInt32LE(n, this.offset);
798
+ this.offset += 4;
799
+ }
800
+
801
+ writeInt24(n) {
802
+ this.writeInt8(n & 0xff);
803
+ this.writeInt16(n >> 8);
804
+ }
805
+
806
+ writeInt16(n) {
807
+ this.buffer.writeUInt16LE(n, this.offset);
808
+ this.offset += 2;
809
+ }
810
+
811
+ writeInt8(n) {
812
+ this.buffer.writeUInt8(n, this.offset);
813
+ this.offset++;
814
+ }
815
+
816
+ writeDouble(n) {
817
+ this.buffer.writeDoubleLE(n, this.offset);
818
+ this.offset += 8;
819
+ }
820
+
821
+ writeBuffer(b) {
822
+ b.copy(this.buffer, this.offset);
823
+ this.offset += b.length;
824
+ }
825
+
826
+ writeNull() {
827
+ this.buffer[this.offset] = 0xfb;
828
+ this.offset++;
829
+ }
830
+
831
+ // TODO: refactor following three?
832
+ writeNullTerminatedString(s, encoding) {
833
+ const buf = StringParser.encode(s, encoding);
834
+ this.buffer.length && buf.copy(this.buffer, this.offset);
835
+ this.offset += buf.length;
836
+ this.writeInt8(0);
837
+ }
838
+
839
+ writeString(s, encoding) {
840
+ if (s === null) {
841
+ this.writeInt8(0xfb);
842
+ return;
843
+ }
844
+ if (s.length === 0) {
845
+ return;
846
+ }
847
+ // const bytes = Buffer.byteLength(s, 'utf8');
848
+ // this.buffer.write(s, this.offset, bytes, 'utf8');
849
+ // this.offset += bytes;
850
+ const buf = StringParser.encode(s, encoding);
851
+ this.buffer.length && buf.copy(this.buffer, this.offset);
852
+ this.offset += buf.length;
853
+ }
854
+
855
+ writeLengthCodedString(s, encoding) {
856
+ const buf = StringParser.encode(s, encoding);
857
+ this.writeLengthCodedNumber(buf.length);
858
+ this.buffer.length && buf.copy(this.buffer, this.offset);
859
+ this.offset += buf.length;
860
+ }
861
+
862
+ writeLengthCodedBuffer(b) {
863
+ this.writeLengthCodedNumber(b.length);
864
+ b.copy(this.buffer, this.offset);
865
+ this.offset += b.length;
866
+ }
867
+
868
+ writeLengthCodedNumber(n) {
869
+ if (n < 0xfb) {
870
+ return this.writeInt8(n);
871
+ }
872
+ if (n < 0xffff) {
873
+ this.writeInt8(0xfc);
874
+ return this.writeInt16(n);
875
+ }
876
+ if (n < 0xffffff) {
877
+ this.writeInt8(0xfd);
878
+ return this.writeInt24(n);
879
+ }
880
+ if (n === null) {
881
+ return this.writeInt8(0xfb);
882
+ }
883
+ this.writeInt8(0xfe);
884
+ this.buffer.writeUInt32LE(n >>> 0, this.offset);
885
+ this.offset += 4;
886
+ this.buffer.writeUInt32LE(Math.floor(n / 0x100000000), this.offset);
887
+ this.offset += 4;
888
+ return this.offset;
889
+ }
890
+
891
+ writeDate(d, timezone) {
892
+ this.buffer.writeUInt8(11, this.offset);
893
+ if (!timezone || timezone === 'local') {
894
+ this.buffer.writeUInt16LE(d.getFullYear(), this.offset + 1);
895
+ this.buffer.writeUInt8(d.getMonth() + 1, this.offset + 3);
896
+ this.buffer.writeUInt8(d.getDate(), this.offset + 4);
897
+ this.buffer.writeUInt8(d.getHours(), this.offset + 5);
898
+ this.buffer.writeUInt8(d.getMinutes(), this.offset + 6);
899
+ this.buffer.writeUInt8(d.getSeconds(), this.offset + 7);
900
+ this.buffer.writeUInt32LE(d.getMilliseconds() * 1000, this.offset + 8);
901
+ } else {
902
+ if (timezone !== 'Z') {
903
+ const offset =
904
+ (timezone[0] === '-' ? -1 : 1) *
905
+ (parseInt(timezone.substring(1, 3), 10) * 60 +
906
+ parseInt(timezone.substring(4), 10));
907
+ if (offset !== 0) {
908
+ d = new Date(d.getTime() + 60000 * offset);
909
+ }
910
+ }
911
+ this.buffer.writeUInt16LE(d.getUTCFullYear(), this.offset + 1);
912
+ this.buffer.writeUInt8(d.getUTCMonth() + 1, this.offset + 3);
913
+ this.buffer.writeUInt8(d.getUTCDate(), this.offset + 4);
914
+ this.buffer.writeUInt8(d.getUTCHours(), this.offset + 5);
915
+ this.buffer.writeUInt8(d.getUTCMinutes(), this.offset + 6);
916
+ this.buffer.writeUInt8(d.getUTCSeconds(), this.offset + 7);
917
+ this.buffer.writeUInt32LE(d.getUTCMilliseconds() * 1000, this.offset + 8);
918
+ }
919
+ this.offset += 12;
920
+ }
921
+
922
+ writeHeader(sequenceId) {
923
+ const offset = this.offset;
924
+ this.offset = 0;
925
+ this.writeInt24(this.buffer.length - 4);
926
+ this.writeInt8(sequenceId);
927
+ this.offset = offset;
928
+ }
929
+
930
+ clone() {
931
+ return new Packet(this.sequenceId, this.buffer, this.start, this.end);
932
+ }
933
+
934
+ type() {
935
+ if (this.isEOF()) {
936
+ return 'EOF';
937
+ }
938
+ if (this.isError()) {
939
+ return 'Error';
940
+ }
941
+ if (this.buffer[this.offset] === 0) {
942
+ return 'maybeOK'; // could be other packet types as well
943
+ }
944
+ return '';
945
+ }
946
+
947
+ static lengthCodedNumberLength(n) {
948
+ if (n < 0xfb) {
949
+ return 1;
950
+ }
951
+ if (n < 0xffff) {
952
+ return 3;
953
+ }
954
+ if (n < 0xffffff) {
955
+ return 5;
956
+ }
957
+ return 9;
958
+ }
959
+
960
+ static lengthCodedStringLength(str, encoding) {
961
+ const buf = StringParser.encode(str, encoding);
962
+ const slen = buf.length;
963
+ return Packet.lengthCodedNumberLength(slen) + slen;
964
+ }
965
+
966
+ static MockBuffer() {
967
+ const noop = function () {};
968
+ const res = Buffer.alloc(0);
969
+ for (const op in NativeBuffer.prototype) {
970
+ if (typeof res[op] === 'function') {
971
+ res[op] = noop;
972
+ }
973
+ }
974
+ return res;
975
+ }
976
+ }
977
+
978
+ module.exports = Packet;