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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/4by6-f6q.js +982 -0
- package/.output/public/_nuxt/8Ppmjv9D.js +1 -0
- package/.output/public/_nuxt/B1qjkRVO.js +1 -0
- package/.output/public/_nuxt/B3KEisfc.js +1 -0
- package/.output/public/_nuxt/B4ebLeWY.js +9 -0
- package/.output/public/_nuxt/{IitECNfD.js → B6hH0qos.js} +1 -1
- package/.output/public/_nuxt/{BUDtG__q.js → B7HEMfgt.js} +1 -1
- package/.output/public/_nuxt/B84SvUzr.js +1 -0
- package/.output/public/_nuxt/BDXvbRNW.js +1 -0
- package/.output/public/_nuxt/BGRcizqy.js +1 -0
- package/.output/public/_nuxt/{ClYziJpO.js → BGVGiigU.js} +1 -1
- package/.output/public/_nuxt/{ZdjmUBoX.js → BJYf67_H.js} +1 -1
- package/.output/public/_nuxt/BOK5ZFNK.js +1 -0
- package/.output/public/_nuxt/BPY2ud8g.js +1 -0
- package/.output/public/_nuxt/BSONoRG4.js +2 -0
- package/.output/public/_nuxt/BT53m-su.js +1 -0
- package/.output/public/_nuxt/BTJSh8in.js +2 -0
- package/.output/public/_nuxt/BVpt8J3a.js +1 -0
- package/.output/public/_nuxt/{BhUkpIlA.js → BdDEVolW.js} +1 -1
- package/.output/public/_nuxt/{C27bL9Es.js → BeNILdbT.js} +1 -1
- package/.output/public/_nuxt/{Dnx67EG9.js → BmU9CNkM.js} +1 -1
- package/.output/public/_nuxt/{DLHYqHwF.js → BnFDcr74.js} +1 -1
- package/.output/public/_nuxt/{sE-55p4e.js → BprXyYdv.js} +1 -1
- package/.output/public/_nuxt/{BCcTASq_.js → Bq7otXBA.js} +1 -1
- package/.output/public/_nuxt/{B_PBOfFN.js → BqyO8OjC.js} +93 -93
- package/.output/public/_nuxt/Bs1og3h1.js +10 -0
- package/.output/public/_nuxt/Bs2DgR_z.js +1 -0
- package/.output/public/_nuxt/{BsoQBloB.js → BvUhrUEH.js} +1 -1
- package/.output/public/_nuxt/{DkggUtNN.js → BxDrCsPf.js} +1 -1
- package/.output/public/_nuxt/BxrwrGYE.js +1 -0
- package/.output/public/_nuxt/By0aUn7N.js +1 -0
- package/.output/public/_nuxt/{C07rlnlv.js → ByOuUnNS.js} +1 -1
- package/.output/public/_nuxt/C177_GoB.js +1 -0
- package/.output/public/_nuxt/{DcfsxCxL.js → C1jMZ4hc.js} +1 -1
- package/.output/public/_nuxt/C5bgdIOp.js +1 -0
- package/.output/public/_nuxt/C69a9jD3.js +67 -0
- package/.output/public/_nuxt/C8AyZ3_X.js +2 -0
- package/.output/public/_nuxt/C8KplD68.js +1 -0
- package/.output/public/_nuxt/CA99KAte.js +3 -0
- package/.output/public/_nuxt/{CvTHaPAO.js → CE8aasoy.js} +1 -1
- package/.output/public/_nuxt/{DkY69STm.js → CEvNlevo.js} +1 -1
- package/.output/public/_nuxt/{B8JnYxjr.js → CKqvNpN3.js} +1 -1
- package/.output/public/_nuxt/CNF1h1lI.js +1 -0
- package/.output/public/_nuxt/COAycMg4.js +1 -0
- package/.output/public/_nuxt/CR6_eO9a.js +6 -0
- package/.output/public/_nuxt/{D4jn2f-6.js → CREZ9f0O.js} +4 -4
- package/.output/public/_nuxt/CS5ItJPR.js +39 -0
- package/.output/public/_nuxt/CcK14gfI.js +1 -0
- package/.output/public/_nuxt/{DnxDSFih.js → Ci43mke5.js} +3 -3
- package/.output/public/_nuxt/CjouDEjz.js +1 -0
- package/.output/public/_nuxt/Cp5lMcfd.js +1 -0
- package/.output/public/_nuxt/CpYiq1Wv.js +1 -0
- package/.output/public/_nuxt/{DVxTxYP4.js → CrLqg4B0.js} +1 -1
- package/.output/public/_nuxt/{BJxYuvXF.js → CvcedJeQ.js} +1 -1
- package/.output/public/_nuxt/{FIJP2AmN.js → Cvq07PgE.js} +1 -1
- package/.output/public/_nuxt/CwmbX4-U.js +1 -0
- package/.output/public/_nuxt/{B27ECqWz.js → Cx6s86aR.js} +1 -1
- package/.output/public/_nuxt/{DDYV6jDr.js → CybtvDjH.js} +1 -1
- package/.output/public/_nuxt/CzB2y8br.js +18 -0
- package/.output/public/_nuxt/{-p9JbKy8.js → D-YUpbah.js} +3 -3
- package/.output/public/_nuxt/D60Pzl_V.js +1 -0
- package/.output/public/_nuxt/D9BYd7AV.js +1 -0
- package/.output/public/_nuxt/D9dEqMyH.js +152 -0
- package/.output/public/_nuxt/DCJ49Fnq.js +1 -0
- package/.output/public/_nuxt/{gO22NLpn.js → DESYlybj.js} +1 -1
- package/.output/public/_nuxt/DFM-aCBX.js +1 -0
- package/.output/public/_nuxt/{DRKnK1N_.js → DHnNoguE.js} +1 -1
- package/.output/public/_nuxt/{ChkFTcxr.js → DJqZzQsX.js} +1 -1
- package/.output/public/_nuxt/DNNdcUH4.js +1 -0
- package/.output/public/_nuxt/{LFK46Fls.js → DNdM2ZyK.js} +1 -1
- package/.output/public/_nuxt/{CVliJ52o.js → DQT4eICL.js} +1 -1
- package/.output/public/_nuxt/{CffFK_qY.js → DWBoXz89.js} +1 -1
- package/.output/public/_nuxt/DXp9fCib.js +20 -0
- package/.output/public/_nuxt/{ACOLmAuq.js → DaKikgWm.js} +1 -1
- package/.output/public/_nuxt/{B9zSkyFO.js → DaMyovpr.js} +1 -1
- package/.output/public/_nuxt/DeBdxlx0.js +1 -0
- package/.output/public/_nuxt/{trZyeId5.js → DhKwXzSk.js} +1 -1
- package/.output/public/_nuxt/{C6Vqzp-9.js → DkadXn5U.js} +1 -1
- package/.output/public/_nuxt/Dkikh2OC.js +22 -0
- package/.output/public/_nuxt/DlOyXrKK.js +1 -0
- package/.output/public/_nuxt/{UqWhjgOc.js → Dpl6-lqE.js} +1 -1
- package/.output/public/_nuxt/DqA_edEU.js +1 -0
- package/.output/public/_nuxt/DqxL2Lpl.js +1 -0
- package/.output/public/_nuxt/Dt3rfvTn.js +1 -0
- package/.output/public/_nuxt/Dt5h0Tys.js +1 -0
- package/.output/public/_nuxt/DwrSZ8Vj.js +1 -0
- package/.output/public/_nuxt/DwyFZZT6.js +1 -0
- package/.output/public/_nuxt/EM8J-XL1.js +7 -0
- package/.output/public/_nuxt/ESKvsKwc.js +1 -0
- package/.output/public/_nuxt/{CWGdTiOD.js → F5lCgNdb.js} +1 -1
- package/.output/public/_nuxt/H5m89x1B.js +1 -0
- package/.output/public/_nuxt/{CwdIiq6J.js → PUe8M07P.js} +2 -2
- package/.output/public/_nuxt/{Cjgqfl1g.js → TEF-nDfP.js} +1 -1
- package/.output/public/_nuxt/{DNZpxuwM.js → TuKV3Ilv.js} +1 -1
- package/.output/public/_nuxt/V5LvXMJl.js +1 -0
- package/.output/public/_nuxt/{c_huf6xz.js → YJvNy3iu.js} +27 -27
- package/.output/public/_nuxt/{C7C8tPlA.js → ZObQcd0X.js} +1 -1
- package/.output/public/_nuxt/{CHOD7i6O.js → b_MfGg1c.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/455d4da4-6357-4478-8703-78a79ccbbc0f.json +1 -0
- package/.output/public/_nuxt/entry.qdzR7QFr.css +1 -0
- package/.output/public/_nuxt/fpuEgQ7C.js +12 -0
- package/.output/public/_nuxt/jU7fkvuR.js +1 -0
- package/.output/public/_nuxt/{CSTzT9hP.js → lHkFwi3L.js} +1 -1
- package/.output/public/_nuxt/{BQOaPJzs.js → minLMBmY.js} +1 -1
- package/.output/public/_nuxt/pQ8l8BR2.js +1 -0
- package/.output/public/_nuxt/xYXqL1eV.js +1 -0
- package/.output/public/_nuxt/xxfb8w7n.js +1 -0
- package/.output/server/chunks/_/create-adapter.mjs +36 -7
- package/.output/server/chunks/_/create-adapter.mjs.map +1 -1
- package/.output/server/chunks/_/database-error.mjs +10 -0
- package/.output/server/chunks/_/database-error.mjs.map +1 -1
- package/.output/server/chunks/_/database-roles.factory.mjs +126 -22
- package/.output/server/chunks/_/database-roles.factory.mjs.map +1 -1
- package/.output/server/chunks/_/db-connection.mjs +721 -81
- package/.output/server/chunks/_/db-connection.mjs.map +1 -1
- package/.output/server/chunks/_/functions.factory.mjs +97 -6
- package/.output/server/chunks/_/functions.factory.mjs.map +1 -1
- package/.output/server/chunks/_/instance-insights.factory.mjs +106 -7
- package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
- package/.output/server/chunks/_/metadata.factory.mjs +912 -43
- package/.output/server/chunks/_/metadata.factory.mjs.map +1 -1
- package/.output/server/chunks/_/native-backup-jobs.mjs +1302 -0
- package/.output/server/chunks/_/native-backup-jobs.mjs.map +1 -0
- package/.output/server/chunks/_/query.factory.mjs +536 -14
- package/.output/server/chunks/_/query.factory.mjs.map +1 -1
- package/.output/server/chunks/_/schemaMeta.type.mjs +13 -0
- package/.output/server/chunks/_/schemaMeta.type.mjs.map +1 -0
- package/.output/server/chunks/_/tables.factory.mjs +905 -37
- package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
- package/.output/server/chunks/_/type-alias.constants.mjs +242 -0
- package/.output/server/chunks/_/type-alias.constants.mjs.map +1 -0
- package/.output/server/chunks/_/views.factory.mjs +106 -8
- package/.output/server/chunks/_/views.factory.mjs.map +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +676 -672
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +1046 -751
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/ai/agent.mjs +30 -79
- package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/export-database.mjs +26 -124
- package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +52 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +43 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-import/import-database.mjs +69 -134
- package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +43 -0
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/update.post.mjs +24 -6
- package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +63 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +10 -4
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +80 -7
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/export.post.mjs +4 -2
- package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/meta.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/definition.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/explain.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/indexes.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/meta.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/overview.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/aws-ssl-profiles/lib/index.js +13 -0
- package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/defaults.js +2888 -0
- package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/proxies.js +111 -0
- package/.output/server/node_modules/aws-ssl-profiles/package.json +52 -0
- package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
- package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
- package/.output/server/node_modules/better-sqlite3/package.json +59 -0
- package/.output/server/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
- package/.output/server/node_modules/cpu-features/lib/index.js +5 -0
- package/.output/server/node_modules/cpu-features/package.json +40 -0
- package/.output/server/node_modules/denque/index.js +481 -0
- package/.output/server/node_modules/denque/package.json +58 -0
- package/.output/server/node_modules/generate-function/index.js +181 -0
- package/.output/server/node_modules/generate-function/package.json +32 -0
- package/.output/server/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/.output/server/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/.output/server/node_modules/iconv-lite/encodings/index.js +23 -0
- package/.output/server/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/.output/server/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/.output/server/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/.output/server/node_modules/iconv-lite/lib/index.js +182 -0
- package/.output/server/node_modules/iconv-lite/lib/streams.js +105 -0
- package/.output/server/node_modules/iconv-lite/package.json +70 -0
- package/.output/server/node_modules/is-property/is-property.js +5 -0
- package/.output/server/node_modules/is-property/package.json +36 -0
- package/.output/server/node_modules/long/package.json +58 -0
- package/.output/server/node_modules/long/umd/index.js +1622 -0
- package/.output/server/node_modules/long/umd/package.json +3 -0
- package/.output/server/node_modules/lru.min/lib/index.js +248 -0
- package/.output/server/node_modules/lru.min/package.json +87 -0
- package/.output/server/node_modules/mysql2/index.js +77 -0
- package/.output/server/node_modules/mysql2/lib/auth_41.js +95 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js +115 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/index.js +8 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_clear_password.js +17 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_native_password.js +34 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/sha256_password.js +74 -0
- package/.output/server/node_modules/mysql2/lib/base/connection.js +1139 -0
- package/.output/server/node_modules/mysql2/lib/base/pool.js +343 -0
- package/.output/server/node_modules/mysql2/lib/commands/auth_switch.js +151 -0
- package/.output/server/node_modules/mysql2/lib/commands/binlog_dump.js +109 -0
- package/.output/server/node_modules/mysql2/lib/commands/change_user.js +68 -0
- package/.output/server/node_modules/mysql2/lib/commands/client_handshake.js +386 -0
- package/.output/server/node_modules/mysql2/lib/commands/close_statement.js +18 -0
- package/.output/server/node_modules/mysql2/lib/commands/command.js +54 -0
- package/.output/server/node_modules/mysql2/lib/commands/execute.js +116 -0
- package/.output/server/node_modules/mysql2/lib/commands/index.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/ping.js +36 -0
- package/.output/server/node_modules/mysql2/lib/commands/prepare.js +143 -0
- package/.output/server/node_modules/mysql2/lib/commands/query.js +365 -0
- package/.output/server/node_modules/mysql2/lib/commands/quit.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/register_slave.js +27 -0
- package/.output/server/node_modules/mysql2/lib/commands/reset_connection.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/server_handshake.js +205 -0
- package/.output/server/node_modules/mysql2/lib/compressed_protocol.js +153 -0
- package/.output/server/node_modules/mysql2/lib/connection.js +12 -0
- package/.output/server/node_modules/mysql2/lib/connection_config.js +299 -0
- package/.output/server/node_modules/mysql2/lib/constants/charset_encodings.js +317 -0
- package/.output/server/node_modules/mysql2/lib/constants/charsets.js +317 -0
- package/.output/server/node_modules/mysql2/lib/constants/client.js +39 -0
- package/.output/server/node_modules/mysql2/lib/constants/commands.js +37 -0
- package/.output/server/node_modules/mysql2/lib/constants/cursor.js +9 -0
- package/.output/server/node_modules/mysql2/lib/constants/encoding_charset.js +50 -0
- package/.output/server/node_modules/mysql2/lib/constants/errors.js +3973 -0
- package/.output/server/node_modules/mysql2/lib/constants/field_flags.js +20 -0
- package/.output/server/node_modules/mysql2/lib/constants/server_status.js +44 -0
- package/.output/server/node_modules/mysql2/lib/constants/session_track.js +11 -0
- package/.output/server/node_modules/mysql2/lib/constants/ssl_profiles.js +11 -0
- package/.output/server/node_modules/mysql2/lib/constants/types.js +64 -0
- package/.output/server/node_modules/mysql2/lib/create_connection.js +10 -0
- package/.output/server/node_modules/mysql2/lib/create_pool.js +10 -0
- package/.output/server/node_modules/mysql2/lib/create_pool_cluster.js +9 -0
- package/.output/server/node_modules/mysql2/lib/helpers.js +83 -0
- package/.output/server/node_modules/mysql2/lib/packet_parser.js +195 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_next_factor.js +35 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request.js +38 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request_more_data.js +33 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_response.js +30 -0
- package/.output/server/node_modules/mysql2/lib/packets/binary_row.js +95 -0
- package/.output/server/node_modules/mysql2/lib/packets/binlog_dump.js +33 -0
- package/.output/server/node_modules/mysql2/lib/packets/binlog_query_statusvars.js +115 -0
- package/.output/server/node_modules/mysql2/lib/packets/change_user.js +97 -0
- package/.output/server/node_modules/mysql2/lib/packets/close_statement.js +21 -0
- package/.output/server/node_modules/mysql2/lib/packets/column_definition.js +291 -0
- package/.output/server/node_modules/mysql2/lib/packets/encode_parameter.js +69 -0
- package/.output/server/node_modules/mysql2/lib/packets/execute.js +177 -0
- package/.output/server/node_modules/mysql2/lib/packets/handshake.js +112 -0
- package/.output/server/node_modules/mysql2/lib/packets/handshake_response.js +173 -0
- package/.output/server/node_modules/mysql2/lib/packets/index.js +154 -0
- package/.output/server/node_modules/mysql2/lib/packets/packet.js +978 -0
- package/.output/server/node_modules/mysql2/lib/packets/prepare_statement.js +27 -0
- package/.output/server/node_modules/mysql2/lib/packets/prepared_statement_header.js +16 -0
- package/.output/server/node_modules/mysql2/lib/packets/query.js +102 -0
- package/.output/server/node_modules/mysql2/lib/packets/register_slave.js +46 -0
- package/.output/server/node_modules/mysql2/lib/packets/reset_connection.js +17 -0
- package/.output/server/node_modules/mysql2/lib/packets/resultset_header.js +124 -0
- package/.output/server/node_modules/mysql2/lib/packets/ssl_request.js +25 -0
- package/.output/server/node_modules/mysql2/lib/packets/text_row.js +47 -0
- package/.output/server/node_modules/mysql2/lib/parsers/binary_parser.js +235 -0
- package/.output/server/node_modules/mysql2/lib/parsers/parser_cache.js +68 -0
- package/.output/server/node_modules/mysql2/lib/parsers/static_binary_parser.js +213 -0
- package/.output/server/node_modules/mysql2/lib/parsers/static_text_parser.js +152 -0
- package/.output/server/node_modules/mysql2/lib/parsers/string.js +50 -0
- package/.output/server/node_modules/mysql2/lib/parsers/text_parser.js +214 -0
- package/.output/server/node_modules/mysql2/lib/pool.js +12 -0
- package/.output/server/node_modules/mysql2/lib/pool_cluster.js +375 -0
- package/.output/server/node_modules/mysql2/lib/pool_config.js +34 -0
- package/.output/server/node_modules/mysql2/lib/pool_connection.js +81 -0
- package/.output/server/node_modules/mysql2/lib/promise/capture_local_err.js +25 -0
- package/.output/server/node_modules/mysql2/lib/promise/connection.js +237 -0
- package/.output/server/node_modules/mysql2/lib/promise/inherit_events.js +27 -0
- package/.output/server/node_modules/mysql2/lib/promise/make_done_cb.js +16 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool.js +118 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool_cluster.js +59 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool_connection.js +19 -0
- package/.output/server/node_modules/mysql2/lib/promise/prepared_statement_info.js +35 -0
- package/.output/server/node_modules/mysql2/lib/server.js +37 -0
- package/.output/server/node_modules/mysql2/lib/tracing.js +81 -0
- package/.output/server/node_modules/mysql2/package.json +95 -0
- package/.output/server/node_modules/mysql2/promise.js +209 -0
- package/.output/server/node_modules/named-placeholders/index.js +179 -0
- package/.output/server/node_modules/named-placeholders/package.json +36 -0
- package/.output/server/node_modules/oracledb/index.js +27 -0
- package/.output/server/node_modules/oracledb/lib/aqDeqOptions.js +186 -0
- package/.output/server/node_modules/oracledb/lib/aqEnqOptions.js +81 -0
- package/.output/server/node_modules/oracledb/lib/aqMessage.js +149 -0
- package/.output/server/node_modules/oracledb/lib/aqQueue.js +293 -0
- package/.output/server/node_modules/oracledb/lib/connection.js +1842 -0
- package/.output/server/node_modules/oracledb/lib/constants.js +210 -0
- package/.output/server/node_modules/oracledb/lib/dbObject.js +606 -0
- package/.output/server/node_modules/oracledb/lib/errors.js +1046 -0
- package/.output/server/node_modules/oracledb/lib/future.js +53 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqDeqOptions.js +206 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqEnqOptions.js +89 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqMessage.js +134 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqQueue.js +82 -0
- package/.output/server/node_modules/oracledb/lib/impl/base.js +45 -0
- package/.output/server/node_modules/oracledb/lib/impl/connection.js +671 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/buffer.js +1214 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/constants.js +110 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/oson.js +852 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/vector.js +197 -0
- package/.output/server/node_modules/oracledb/lib/impl/dbObject.js +159 -0
- package/.output/server/node_modules/oracledb/lib/impl/index.js +59 -0
- package/.output/server/node_modules/oracledb/lib/impl/lob.js +113 -0
- package/.output/server/node_modules/oracledb/lib/impl/pool.js +230 -0
- package/.output/server/node_modules/oracledb/lib/impl/resultset.js +307 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaCollection.js +175 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDatabase.js +82 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDocCursor.js +64 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDocument.js +89 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaOperation.js +110 -0
- package/.output/server/node_modules/oracledb/lib/lob.js +315 -0
- package/.output/server/node_modules/oracledb/lib/oracledb.js +1716 -0
- package/.output/server/node_modules/oracledb/lib/pool.js +873 -0
- package/.output/server/node_modules/oracledb/lib/poolStatistics.js +143 -0
- package/.output/server/node_modules/oracledb/lib/queryStream.js +119 -0
- package/.output/server/node_modules/oracledb/lib/resultset.js +368 -0
- package/.output/server/node_modules/oracledb/lib/settings.js +221 -0
- package/.output/server/node_modules/oracledb/lib/sodaCollection.js +284 -0
- package/.output/server/node_modules/oracledb/lib/sodaDatabase.js +176 -0
- package/.output/server/node_modules/oracledb/lib/sodaDocCursor.js +82 -0
- package/.output/server/node_modules/oracledb/lib/sodaDocument.js +125 -0
- package/.output/server/node_modules/oracledb/lib/sodaOperation.js +236 -0
- package/.output/server/node_modules/oracledb/lib/thin/aq.js +475 -0
- package/.output/server/node_modules/oracledb/lib/thin/connection.js +1504 -0
- package/.output/server/node_modules/oracledb/lib/thin/dbObject.js +737 -0
- package/.output/server/node_modules/oracledb/lib/thin/index.js +40 -0
- package/.output/server/node_modules/oracledb/lib/thin/lob.js +380 -0
- package/.output/server/node_modules/oracledb/lib/thin/pool.js +738 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/capabilities.js +145 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/constants.js +872 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/encryptDecrypt.js +197 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqArray.js +238 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqBase.js +305 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqDeq.js +164 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqEnq.js +135 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/auth.js +376 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/base.js +568 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/commit.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/dataType.js +401 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/execute.js +358 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fastAuth.js +83 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fetch.js +64 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/index.js +59 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/lobOp.js +195 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/logOff.js +52 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/ping.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/protocol.js +97 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/rollback.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/sessionRelease.js +60 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionChangeState.js +99 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionSwitch.js +147 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/withData.js +920 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/packet.js +631 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/protocol.js +240 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/utils.js +82 -0
- package/.output/server/node_modules/oracledb/lib/thin/resultSet.js +122 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ANO.js +438 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/connStrategy.js +316 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/constants.js +210 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ezConnectResolver.js +466 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/navNodes.js +904 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/networkSession.js +733 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js +609 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/nvStrToNvPair.js +780 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/packet.js +439 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/paramParser.js +239 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/sessionAtts.js +198 -0
- package/.output/server/node_modules/oracledb/lib/thin/statement.js +573 -0
- package/.output/server/node_modules/oracledb/lib/thin/statementCache.js +195 -0
- package/.output/server/node_modules/oracledb/lib/thin/util.js +254 -0
- package/.output/server/node_modules/oracledb/lib/traceHandler.js +133 -0
- package/.output/server/node_modules/oracledb/lib/transformer.js +279 -0
- package/.output/server/node_modules/oracledb/lib/types.js +592 -0
- package/.output/server/node_modules/oracledb/lib/util.js +648 -0
- package/.output/server/node_modules/oracledb/lib/version.js +36 -0
- package/.output/server/node_modules/oracledb/package.json +48 -0
- package/.output/server/node_modules/sql-escaper/lib/index.js +398 -0
- package/.output/server/node_modules/sql-escaper/package.json +81 -0
- package/.output/server/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
- package/.output/server/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- package/.output/server/package.json +14 -18
- package/package.json +2 -2
- package/.output/public/_nuxt/019vQzZn.js +0 -1
- package/.output/public/_nuxt/0lRW_xjL.js +0 -1
- package/.output/public/_nuxt/B6EI6PpE.js +0 -1
- package/.output/public/_nuxt/B9Mt45db.js +0 -1
- package/.output/public/_nuxt/BKltSiU0.js +0 -1
- package/.output/public/_nuxt/BM4vnZvX.js +0 -732
- package/.output/public/_nuxt/BNYR501z.js +0 -1
- package/.output/public/_nuxt/BVLVn__t.js +0 -9
- package/.output/public/_nuxt/BY1l0S_M.js +0 -1
- package/.output/public/_nuxt/BaseCodeEditor.SAr2eD8R.css +0 -1
- package/.output/public/_nuxt/BcvJQkv0.js +0 -1
- package/.output/public/_nuxt/BdN9B2_l.js +0 -160
- package/.output/public/_nuxt/BflvengI.js +0 -1
- package/.output/public/_nuxt/BgolbRTO.js +0 -1
- package/.output/public/_nuxt/BwISH3M4.js +0 -1
- package/.output/public/_nuxt/C-M4q4KX.js +0 -1
- package/.output/public/_nuxt/C2Ziircr.js +0 -1
- package/.output/public/_nuxt/C3NWXcpd.js +0 -39
- package/.output/public/_nuxt/C5p44jKD.js +0 -1
- package/.output/public/_nuxt/C617vhDd.js +0 -1
- package/.output/public/_nuxt/C8S0o4Gy.js +0 -1
- package/.output/public/_nuxt/CNlsVoWh.js +0 -1
- package/.output/public/_nuxt/CWkPMmwS.js +0 -2
- package/.output/public/_nuxt/Cgy4ijjN.js +0 -67
- package/.output/public/_nuxt/ClBBUcFW.js +0 -1
- package/.output/public/_nuxt/CuRyxljq.js +0 -1
- package/.output/public/_nuxt/Cx4Bnfq1.js +0 -2
- package/.output/public/_nuxt/D-H6_V16.js +0 -1
- package/.output/public/_nuxt/D-SDqguC.js +0 -1
- package/.output/public/_nuxt/D-XwprNU.js +0 -6
- package/.output/public/_nuxt/D3G5Xy_-.js +0 -1
- package/.output/public/_nuxt/D9o5Pdvp.js +0 -1
- package/.output/public/_nuxt/DFArp87o.js +0 -1
- package/.output/public/_nuxt/DFZIXzfU.js +0 -1
- package/.output/public/_nuxt/DHRNt0p9.js +0 -1
- package/.output/public/_nuxt/DLKku6fV.js +0 -1
- package/.output/public/_nuxt/DWgjNKGq.js +0 -152
- package/.output/public/_nuxt/DYm57BZk.js +0 -2
- package/.output/public/_nuxt/DaQw8gVp.js +0 -1
- package/.output/public/_nuxt/DgnsV5Qb.js +0 -1
- package/.output/public/_nuxt/Do5Fyo7J.js +0 -1
- package/.output/public/_nuxt/Dqirx7MF.js +0 -1
- package/.output/public/_nuxt/GoTwJjoS.js +0 -39
- package/.output/public/_nuxt/Hs25HoUO.js +0 -22
- package/.output/public/_nuxt/J2CvNR3L.js +0 -1
- package/.output/public/_nuxt/LK6Q8l0D.js +0 -1
- package/.output/public/_nuxt/Oh9SO2qg.js +0 -1
- package/.output/public/_nuxt/P_8UoGnr.js +0 -72
- package/.output/public/_nuxt/V5yaR3hv.js +0 -2
- package/.output/public/_nuxt/XWTuAj6n.js +0 -1
- package/.output/public/_nuxt/XqwbcqcW.js +0 -1
- package/.output/public/_nuxt/Yzrsuije.js +0 -1
- package/.output/public/_nuxt/_8UrUcVF.js +0 -1
- package/.output/public/_nuxt/builds/meta/27a307c3-bfc5-4ccd-94b8-387eb94981bb.json +0 -1
- package/.output/public/_nuxt/cKBf5-av.js +0 -1
- package/.output/public/_nuxt/entry.DeK5kcSi.css +0 -1
- package/.output/public/_nuxt/kc-op4gz.js +0 -12
- package/.output/public/_nuxt/kehy-5uo.js +0 -1
- package/.output/public/_nuxt/lSaGvORn.js +0 -10
- package/.output/public/_nuxt/lY3EyFEK.js +0 -1
- package/.output/public/_nuxt/tMhdAKU2.js +0 -3
- package/.output/public/_nuxt/uyCIL8xw.js +0 -1
- package/.output/server/node_modules/cross-spawn/index.js +0 -39
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/.output/server/node_modules/cross-spawn/package.json +0 -73
- package/.output/server/node_modules/execa/index.js +0 -268
- package/.output/server/node_modules/execa/lib/command.js +0 -52
- package/.output/server/node_modules/execa/lib/error.js +0 -88
- package/.output/server/node_modules/execa/lib/kill.js +0 -115
- package/.output/server/node_modules/execa/lib/promise.js +0 -46
- package/.output/server/node_modules/execa/lib/stdio.js +0 -52
- package/.output/server/node_modules/execa/lib/stream.js +0 -97
- package/.output/server/node_modules/execa/package.json +0 -74
- package/.output/server/node_modules/get-stream/buffer-stream.js +0 -52
- package/.output/server/node_modules/get-stream/index.js +0 -61
- package/.output/server/node_modules/get-stream/package.json +0 -47
- package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
- package/.output/server/node_modules/human-signals/build/src/main.js +0 -71
- package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
- package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
- package/.output/server/node_modules/human-signals/package.json +0 -64
- package/.output/server/node_modules/is-stream/index.js +0 -28
- package/.output/server/node_modules/is-stream/package.json +0 -42
- package/.output/server/node_modules/isexe/index.js +0 -57
- package/.output/server/node_modules/isexe/mode.js +0 -41
- package/.output/server/node_modules/isexe/package.json +0 -31
- package/.output/server/node_modules/isexe/windows.js +0 -42
- package/.output/server/node_modules/merge-stream/index.js +0 -41
- package/.output/server/node_modules/merge-stream/package.json +0 -19
- package/.output/server/node_modules/mimic-fn/index.js +0 -13
- package/.output/server/node_modules/mimic-fn/package.json +0 -42
- package/.output/server/node_modules/npm-run-path/index.js +0 -47
- package/.output/server/node_modules/npm-run-path/package.json +0 -44
- package/.output/server/node_modules/onetime/index.js +0 -44
- package/.output/server/node_modules/onetime/package.json +0 -43
- package/.output/server/node_modules/path-key/index.js +0 -16
- package/.output/server/node_modules/path-key/package.json +0 -39
- package/.output/server/node_modules/pg-dump-restore/lib/common.js +0 -33
- package/.output/server/node_modules/pg-dump-restore/lib/index.js +0 -9
- package/.output/server/node_modules/pg-dump-restore/lib/pg-dump.js +0 -95
- package/.output/server/node_modules/pg-dump-restore/lib/pg-restore.js +0 -87
- package/.output/server/node_modules/pg-dump-restore/package.json +0 -66
- package/.output/server/node_modules/shebang-command/index.js +0 -19
- package/.output/server/node_modules/shebang-command/package.json +0 -34
- package/.output/server/node_modules/shebang-regex/index.js +0 -2
- package/.output/server/node_modules/shebang-regex/package.json +0 -35
- package/.output/server/node_modules/signal-exit/index.js +0 -202
- package/.output/server/node_modules/signal-exit/package.json +0 -38
- package/.output/server/node_modules/signal-exit/signals.js +0 -53
- package/.output/server/node_modules/strip-final-newline/index.js +0 -16
- package/.output/server/node_modules/strip-final-newline/package.json +0 -40
- package/.output/server/node_modules/which/package.json +0 -43
- package/.output/server/node_modules/which/which.js +0 -125
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Packet = require('../packets/packet');
|
|
4
|
+
const CommandCodes = require('../constants/commands');
|
|
5
|
+
const StringParser = require('../parsers/string.js');
|
|
6
|
+
const CharsetToEncoding = require('../constants/charset_encodings.js');
|
|
7
|
+
|
|
8
|
+
class PrepareStatement {
|
|
9
|
+
constructor(sql, charsetNumber) {
|
|
10
|
+
this.query = sql;
|
|
11
|
+
this.charsetNumber = charsetNumber;
|
|
12
|
+
this.encoding = CharsetToEncoding[charsetNumber];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
toPacket() {
|
|
16
|
+
const buf = StringParser.encode(this.query, this.encoding);
|
|
17
|
+
const length = 5 + buf.length;
|
|
18
|
+
const buffer = Buffer.allocUnsafe(length);
|
|
19
|
+
const packet = new Packet(0, buffer, 0, length);
|
|
20
|
+
packet.offset = 4;
|
|
21
|
+
packet.writeInt8(CommandCodes.STMT_PREPARE);
|
|
22
|
+
packet.writeBuffer(buf);
|
|
23
|
+
return packet;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = PrepareStatement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
class PreparedStatementHeader {
|
|
4
|
+
constructor(packet) {
|
|
5
|
+
packet.skip(1); // should be 0
|
|
6
|
+
this.id = packet.readInt32();
|
|
7
|
+
this.fieldCount = packet.readInt16();
|
|
8
|
+
this.parameterCount = packet.readInt16();
|
|
9
|
+
packet.skip(1); // should be 0
|
|
10
|
+
this.warningCount = packet.readInt16();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// TODO: toPacket
|
|
15
|
+
|
|
16
|
+
module.exports = PreparedStatementHeader;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Packet = require('../packets/packet.js');
|
|
4
|
+
const CommandCode = require('../constants/commands.js');
|
|
5
|
+
const StringParser = require('../parsers/string.js');
|
|
6
|
+
const CharsetToEncoding = require('../constants/charset_encodings.js');
|
|
7
|
+
const ClientConstants = require('../constants/client.js');
|
|
8
|
+
const Types = require('../constants/types.js');
|
|
9
|
+
const { toParameter } = require('./encode_parameter.js');
|
|
10
|
+
|
|
11
|
+
class Query {
|
|
12
|
+
constructor(sql, charsetNumber, attributes, clientFlags) {
|
|
13
|
+
this.query = sql;
|
|
14
|
+
this.charsetNumber = charsetNumber;
|
|
15
|
+
this.encoding = CharsetToEncoding[charsetNumber];
|
|
16
|
+
this.attributes = attributes;
|
|
17
|
+
this.clientFlags = clientFlags || 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
serializeToBuffer(buffer) {
|
|
21
|
+
const useQueryAttributes =
|
|
22
|
+
this.clientFlags & ClientConstants.CLIENT_QUERY_ATTRIBUTES;
|
|
23
|
+
const sqlBuf = StringParser.encode(this.query, this.encoding);
|
|
24
|
+
const packet = new Packet(0, buffer, 0, buffer.length);
|
|
25
|
+
packet.offset = 4;
|
|
26
|
+
packet.writeInt8(CommandCode.QUERY);
|
|
27
|
+
|
|
28
|
+
if (useQueryAttributes) {
|
|
29
|
+
const attrs = this.attributes;
|
|
30
|
+
const names = attrs ? Object.keys(attrs) : [];
|
|
31
|
+
const paramCount = names.length;
|
|
32
|
+
|
|
33
|
+
packet.writeLengthCodedNumber(paramCount);
|
|
34
|
+
packet.writeLengthCodedNumber(1); // parameter_set_count, always 1
|
|
35
|
+
|
|
36
|
+
if (paramCount > 0) {
|
|
37
|
+
const parameters = names.map((name) =>
|
|
38
|
+
toParameter(attrs[name], this.encoding, 'local')
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
// null bitmap
|
|
42
|
+
let bitmap = 0;
|
|
43
|
+
let bitValue = 1;
|
|
44
|
+
parameters.forEach((parameter) => {
|
|
45
|
+
if (parameter.type === Types.NULL) {
|
|
46
|
+
bitmap += bitValue;
|
|
47
|
+
}
|
|
48
|
+
bitValue *= 2;
|
|
49
|
+
if (bitValue === 256) {
|
|
50
|
+
packet.writeInt8(bitmap);
|
|
51
|
+
bitmap = 0;
|
|
52
|
+
bitValue = 1;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
if (bitValue !== 1) {
|
|
56
|
+
packet.writeInt8(bitmap);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
packet.writeInt8(1); // new_params_bind_flag
|
|
60
|
+
|
|
61
|
+
// types and names
|
|
62
|
+
for (let i = 0; i < paramCount; i++) {
|
|
63
|
+
packet.writeInt8(parameters[i].type);
|
|
64
|
+
packet.writeInt8(0); // unsigned flag
|
|
65
|
+
packet.writeLengthCodedString(names[i], this.encoding);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// values
|
|
69
|
+
parameters.forEach((parameter) => {
|
|
70
|
+
if (parameter.type !== Types.NULL) {
|
|
71
|
+
parameter.writer.call(packet, parameter.value);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
packet.writeBuffer(sqlBuf);
|
|
78
|
+
return packet;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
toPacket() {
|
|
82
|
+
const useQueryAttributes =
|
|
83
|
+
this.clientFlags & ClientConstants.CLIENT_QUERY_ATTRIBUTES;
|
|
84
|
+
|
|
85
|
+
if (!useQueryAttributes) {
|
|
86
|
+
const buf = StringParser.encode(this.query, this.encoding);
|
|
87
|
+
const length = 5 + buf.length;
|
|
88
|
+
const buffer = Buffer.allocUnsafe(length);
|
|
89
|
+
const packet = new Packet(0, buffer, 0, length);
|
|
90
|
+
packet.offset = 4;
|
|
91
|
+
packet.writeInt8(CommandCode.QUERY);
|
|
92
|
+
packet.writeBuffer(buf);
|
|
93
|
+
return packet;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// dry run to calculate required buffer length
|
|
97
|
+
const p = this.serializeToBuffer(Packet.MockBuffer());
|
|
98
|
+
return this.serializeToBuffer(Buffer.allocUnsafe(p.offset));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
module.exports = Query;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// http://dev.mysql.com/doc/internals/en/com-register-slave.html
|
|
4
|
+
// note that documentation is incorrect, for example command code is actually 0x15 but documented as 0x14
|
|
5
|
+
|
|
6
|
+
const Packet = require('../packets/packet');
|
|
7
|
+
const CommandCodes = require('../constants/commands');
|
|
8
|
+
|
|
9
|
+
class RegisterSlave {
|
|
10
|
+
constructor(opts) {
|
|
11
|
+
this.serverId = opts.serverId || 0;
|
|
12
|
+
this.slaveHostname = opts.slaveHostname || '';
|
|
13
|
+
this.slaveUser = opts.slaveUser || '';
|
|
14
|
+
this.slavePassword = opts.slavePassword || '';
|
|
15
|
+
this.slavePort = opts.slavePort || 0;
|
|
16
|
+
this.replicationRank = opts.replicationRank || 0;
|
|
17
|
+
this.masterId = opts.masterId || 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
toPacket() {
|
|
21
|
+
const length =
|
|
22
|
+
15 + // TODO: should be ascii?
|
|
23
|
+
Buffer.byteLength(this.slaveHostname, 'utf8') +
|
|
24
|
+
Buffer.byteLength(this.slaveUser, 'utf8') +
|
|
25
|
+
Buffer.byteLength(this.slavePassword, 'utf8') +
|
|
26
|
+
3 +
|
|
27
|
+
4;
|
|
28
|
+
const buffer = Buffer.allocUnsafe(length);
|
|
29
|
+
const packet = new Packet(0, buffer, 0, length);
|
|
30
|
+
packet.offset = 4;
|
|
31
|
+
packet.writeInt8(CommandCodes.REGISTER_SLAVE);
|
|
32
|
+
packet.writeInt32(this.serverId);
|
|
33
|
+
packet.writeInt8(Buffer.byteLength(this.slaveHostname, 'utf8'));
|
|
34
|
+
packet.writeString(this.slaveHostname);
|
|
35
|
+
packet.writeInt8(Buffer.byteLength(this.slaveUser, 'utf8'));
|
|
36
|
+
packet.writeString(this.slaveUser);
|
|
37
|
+
packet.writeInt8(Buffer.byteLength(this.slavePassword, 'utf8'));
|
|
38
|
+
packet.writeString(this.slavePassword);
|
|
39
|
+
packet.writeInt16(this.slavePort);
|
|
40
|
+
packet.writeInt32(this.replicationRank);
|
|
41
|
+
packet.writeInt32(this.masterId);
|
|
42
|
+
return packet;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
module.exports = RegisterSlave;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Packet = require('../packets/packet');
|
|
4
|
+
const CommandCodes = require('../constants/commands');
|
|
5
|
+
|
|
6
|
+
class ResetConnection {
|
|
7
|
+
constructor() {}
|
|
8
|
+
|
|
9
|
+
toPacket() {
|
|
10
|
+
const packet = new Packet(0, Buffer.alloc(5), 0, 5);
|
|
11
|
+
packet.offset = 4;
|
|
12
|
+
packet.writeInt8(CommandCodes.RESET_CONNECTION);
|
|
13
|
+
return packet;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = ResetConnection;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// TODO: rename to OK packet
|
|
4
|
+
// https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html
|
|
5
|
+
|
|
6
|
+
const Packet = require('./packet.js');
|
|
7
|
+
const ClientConstants = require('../constants/client.js');
|
|
8
|
+
const ServerSatusFlags = require('../constants/server_status.js');
|
|
9
|
+
|
|
10
|
+
const EncodingToCharset = require('../constants/encoding_charset.js');
|
|
11
|
+
const sessionInfoTypes = require('../constants/session_track.js');
|
|
12
|
+
|
|
13
|
+
class ResultSetHeader {
|
|
14
|
+
constructor(packet, connection) {
|
|
15
|
+
const bigNumberStrings = connection.config.bigNumberStrings;
|
|
16
|
+
const encoding = connection.serverEncoding;
|
|
17
|
+
const flags = connection._handshakePacket.capabilityFlags;
|
|
18
|
+
const isSet = function (flag) {
|
|
19
|
+
return flags & ClientConstants[flag];
|
|
20
|
+
};
|
|
21
|
+
if (packet.buffer[packet.offset] !== 0) {
|
|
22
|
+
this.fieldCount = packet.readLengthCodedNumber();
|
|
23
|
+
if (this.fieldCount === null) {
|
|
24
|
+
this.infileName = packet.readString(undefined, encoding);
|
|
25
|
+
}
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this.fieldCount = packet.readInt8(); // skip OK byte
|
|
29
|
+
this.affectedRows = packet.readLengthCodedNumber(bigNumberStrings);
|
|
30
|
+
this.insertId = packet.readLengthCodedNumberSigned(bigNumberStrings);
|
|
31
|
+
this.info = '';
|
|
32
|
+
if (isSet('PROTOCOL_41')) {
|
|
33
|
+
this.serverStatus = packet.readInt16();
|
|
34
|
+
this.warningStatus = packet.readInt16();
|
|
35
|
+
} else if (isSet('TRANSACTIONS')) {
|
|
36
|
+
this.serverStatus = packet.readInt16();
|
|
37
|
+
}
|
|
38
|
+
let stateChanges = null;
|
|
39
|
+
if (isSet('SESSION_TRACK') && packet.offset < packet.end) {
|
|
40
|
+
this.info = packet.readLengthCodedString(encoding);
|
|
41
|
+
|
|
42
|
+
if (this.serverStatus & ServerSatusFlags.SERVER_SESSION_STATE_CHANGED) {
|
|
43
|
+
// session change info record - see
|
|
44
|
+
// https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html#cs-sect-packet-ok-sessioninfo
|
|
45
|
+
let len =
|
|
46
|
+
packet.offset < packet.end ? packet.readLengthCodedNumber() : 0;
|
|
47
|
+
const end = packet.offset + len;
|
|
48
|
+
let type, key, stateEnd;
|
|
49
|
+
if (len > 0) {
|
|
50
|
+
stateChanges = {
|
|
51
|
+
systemVariables: {},
|
|
52
|
+
schema: null,
|
|
53
|
+
gtids: [],
|
|
54
|
+
trackStateChange: null,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
while (packet.offset < end) {
|
|
58
|
+
type = packet.readInt8();
|
|
59
|
+
len = packet.readLengthCodedNumber();
|
|
60
|
+
stateEnd = packet.offset + len;
|
|
61
|
+
if (type === sessionInfoTypes.SYSTEM_VARIABLES) {
|
|
62
|
+
key = packet.readLengthCodedString(encoding);
|
|
63
|
+
const val = packet.readLengthCodedString(encoding);
|
|
64
|
+
stateChanges.systemVariables[key] = val;
|
|
65
|
+
if (key === 'character_set_client') {
|
|
66
|
+
const charsetNumber = EncodingToCharset[val];
|
|
67
|
+
// TODO - better api for driver users to handle unknown encodings?
|
|
68
|
+
// maybe custom coverter in the config?
|
|
69
|
+
// For now just ignore character_set_client command if there is
|
|
70
|
+
// no known mapping from reported encoding to a charset code
|
|
71
|
+
if (typeof charsetNumber !== 'undefined') {
|
|
72
|
+
connection.config.charsetNumber = charsetNumber;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
} else if (type === sessionInfoTypes.SCHEMA) {
|
|
76
|
+
key = packet.readLengthCodedString(encoding);
|
|
77
|
+
stateChanges.schema = key;
|
|
78
|
+
} else if (type === sessionInfoTypes.STATE_CHANGE) {
|
|
79
|
+
stateChanges.trackStateChange =
|
|
80
|
+
packet.readLengthCodedString(encoding);
|
|
81
|
+
} else if (type === sessionInfoTypes.STATE_GTIDS) {
|
|
82
|
+
// TODO: find if the first length coded string means anything. Usually comes as empty
|
|
83
|
+
// eslint-disable-next-line no-unused-vars
|
|
84
|
+
const _unknownString = packet.readLengthCodedString(encoding);
|
|
85
|
+
const gtid = packet.readLengthCodedString(encoding);
|
|
86
|
+
stateChanges.gtids = gtid.split(',');
|
|
87
|
+
} else {
|
|
88
|
+
// unsupported session track type. For now just ignore
|
|
89
|
+
}
|
|
90
|
+
packet.offset = stateEnd;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
this.info = packet.readString(undefined, encoding);
|
|
95
|
+
}
|
|
96
|
+
if (stateChanges) {
|
|
97
|
+
this.stateChanges = stateChanges;
|
|
98
|
+
}
|
|
99
|
+
const m = this.info.match(/\schanged:\s*(\d+)/i);
|
|
100
|
+
if (m !== null) {
|
|
101
|
+
this.changedRows = parseInt(m[1], 10);
|
|
102
|
+
} else {
|
|
103
|
+
this.changedRows = 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// TODO: should be consistent instance member, but it's just easier here to have just function
|
|
108
|
+
static toPacket(fieldCount, insertId) {
|
|
109
|
+
let length = 4 + Packet.lengthCodedNumberLength(fieldCount);
|
|
110
|
+
if (typeof insertId !== 'undefined') {
|
|
111
|
+
length += Packet.lengthCodedNumberLength(insertId);
|
|
112
|
+
}
|
|
113
|
+
const buffer = Buffer.allocUnsafe(length);
|
|
114
|
+
const packet = new Packet(0, buffer, 0, length);
|
|
115
|
+
packet.offset = 4;
|
|
116
|
+
packet.writeLengthCodedNumber(fieldCount);
|
|
117
|
+
if (typeof insertId !== 'undefined') {
|
|
118
|
+
packet.writeLengthCodedNumber(insertId);
|
|
119
|
+
}
|
|
120
|
+
return packet;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
module.exports = ResultSetHeader;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ClientConstants = require('../constants/client');
|
|
4
|
+
const Packet = require('../packets/packet');
|
|
5
|
+
|
|
6
|
+
class SSLRequest {
|
|
7
|
+
constructor(flags, charset) {
|
|
8
|
+
this.clientFlags = flags | ClientConstants.SSL;
|
|
9
|
+
this.charset = charset;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
toPacket() {
|
|
13
|
+
const length = 36;
|
|
14
|
+
const buffer = Buffer.allocUnsafe(length);
|
|
15
|
+
const packet = new Packet(0, buffer, 0, length);
|
|
16
|
+
buffer.fill(0);
|
|
17
|
+
packet.offset = 4;
|
|
18
|
+
packet.writeInt32(this.clientFlags);
|
|
19
|
+
packet.writeInt32(0); // max packet size. todo: move to config
|
|
20
|
+
packet.writeInt8(this.charset);
|
|
21
|
+
return packet;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
module.exports = SSLRequest;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Packet = require('../packets/packet');
|
|
4
|
+
|
|
5
|
+
class TextRow {
|
|
6
|
+
constructor(columns) {
|
|
7
|
+
this.columns = columns || [];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static fromPacket(packet) {
|
|
11
|
+
// packet.reset(); // set offset to starting point?
|
|
12
|
+
const columns = [];
|
|
13
|
+
while (packet.haveMoreData()) {
|
|
14
|
+
columns.push(packet.readLengthCodedString());
|
|
15
|
+
}
|
|
16
|
+
return new TextRow(columns);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static toPacket(columns, encoding) {
|
|
20
|
+
const sequenceId = 0; // TODO remove, this is calculated now in connecton
|
|
21
|
+
let length = 0;
|
|
22
|
+
columns.forEach((val) => {
|
|
23
|
+
if (val === null || typeof val === 'undefined') {
|
|
24
|
+
++length;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
length += Packet.lengthCodedStringLength(val.toString(10), encoding);
|
|
28
|
+
});
|
|
29
|
+
const buffer = Buffer.allocUnsafe(length + 4);
|
|
30
|
+
const packet = new Packet(sequenceId, buffer, 0, length + 4);
|
|
31
|
+
packet.offset = 4;
|
|
32
|
+
columns.forEach((val) => {
|
|
33
|
+
if (val === null) {
|
|
34
|
+
packet.writeNull();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (typeof val === 'undefined') {
|
|
38
|
+
packet.writeInt8(0);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
packet.writeLengthCodedString(val.toString(10), encoding);
|
|
42
|
+
});
|
|
43
|
+
return packet;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
module.exports = TextRow;
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const FieldFlags = require('../constants/field_flags.js');
|
|
4
|
+
const Charsets = require('../constants/charsets.js');
|
|
5
|
+
const Types = require('../constants/types.js');
|
|
6
|
+
const helpers = require('../helpers');
|
|
7
|
+
const genFunc = require('generate-function');
|
|
8
|
+
const parserCache = require('./parser_cache.js');
|
|
9
|
+
const typeNames = [];
|
|
10
|
+
for (const t in Types) {
|
|
11
|
+
typeNames[Types[t]] = t;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function readCodeFor(field, config, options, fieldNum) {
|
|
15
|
+
const supportBigNumbers = Boolean(
|
|
16
|
+
options.supportBigNumbers || config.supportBigNumbers
|
|
17
|
+
);
|
|
18
|
+
const bigNumberStrings = Boolean(
|
|
19
|
+
options.bigNumberStrings || config.bigNumberStrings
|
|
20
|
+
);
|
|
21
|
+
const timezone = options.timezone || config.timezone;
|
|
22
|
+
const dateStrings = options.dateStrings || config.dateStrings;
|
|
23
|
+
const unsigned = field.flags & FieldFlags.UNSIGNED;
|
|
24
|
+
switch (field.columnType) {
|
|
25
|
+
case Types.TINY:
|
|
26
|
+
return unsigned ? 'packet.readInt8();' : 'packet.readSInt8();';
|
|
27
|
+
case Types.SHORT:
|
|
28
|
+
return unsigned ? 'packet.readInt16();' : 'packet.readSInt16();';
|
|
29
|
+
case Types.LONG:
|
|
30
|
+
case Types.INT24: // in binary protocol int24 is encoded in 4 bytes int32
|
|
31
|
+
return unsigned ? 'packet.readInt32();' : 'packet.readSInt32();';
|
|
32
|
+
case Types.YEAR:
|
|
33
|
+
return 'packet.readInt16()';
|
|
34
|
+
case Types.FLOAT:
|
|
35
|
+
return 'packet.readFloat();';
|
|
36
|
+
case Types.DOUBLE:
|
|
37
|
+
return 'packet.readDouble();';
|
|
38
|
+
case Types.NULL:
|
|
39
|
+
return 'null;';
|
|
40
|
+
case Types.DATE:
|
|
41
|
+
case Types.DATETIME:
|
|
42
|
+
case Types.TIMESTAMP:
|
|
43
|
+
case Types.NEWDATE:
|
|
44
|
+
if (helpers.typeMatch(field.columnType, dateStrings, Types)) {
|
|
45
|
+
return `packet.readDateTimeString(${parseInt(field.decimals, 10)}, ${null}, ${field.columnType});`;
|
|
46
|
+
}
|
|
47
|
+
return `packet.readDateTime(${helpers.srcEscape(timezone)});`;
|
|
48
|
+
case Types.TIME:
|
|
49
|
+
return 'packet.readTimeString()';
|
|
50
|
+
case Types.DECIMAL:
|
|
51
|
+
case Types.NEWDECIMAL:
|
|
52
|
+
if (config.decimalNumbers) {
|
|
53
|
+
return 'packet.parseLengthCodedFloat();';
|
|
54
|
+
}
|
|
55
|
+
return 'packet.readLengthCodedString("ascii");';
|
|
56
|
+
case Types.GEOMETRY:
|
|
57
|
+
return 'packet.parseGeometryValue();';
|
|
58
|
+
case Types.VECTOR:
|
|
59
|
+
return 'packet.parseVector()';
|
|
60
|
+
case Types.JSON:
|
|
61
|
+
// Since for JSON columns mysql always returns charset 63 (BINARY),
|
|
62
|
+
// we have to handle it according to JSON specs and use "utf8",
|
|
63
|
+
// see https://github.com/sidorares/node-mysql2/issues/409
|
|
64
|
+
return config.jsonStrings
|
|
65
|
+
? 'packet.readLengthCodedString("utf8")'
|
|
66
|
+
: 'JSON.parse(packet.readLengthCodedString("utf8"));';
|
|
67
|
+
case Types.LONGLONG:
|
|
68
|
+
if (!supportBigNumbers) {
|
|
69
|
+
return unsigned
|
|
70
|
+
? 'packet.readInt64JSNumber();'
|
|
71
|
+
: 'packet.readSInt64JSNumber();';
|
|
72
|
+
}
|
|
73
|
+
if (bigNumberStrings) {
|
|
74
|
+
return unsigned
|
|
75
|
+
? 'packet.readInt64String();'
|
|
76
|
+
: 'packet.readSInt64String();';
|
|
77
|
+
}
|
|
78
|
+
return unsigned ? 'packet.readInt64();' : 'packet.readSInt64();';
|
|
79
|
+
|
|
80
|
+
default:
|
|
81
|
+
if (field.characterSet === Charsets.BINARY) {
|
|
82
|
+
return 'packet.readLengthCodedBuffer();';
|
|
83
|
+
}
|
|
84
|
+
return `packet.readLengthCodedString(fields[${fieldNum}].encoding)`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function compile(fields, options, config) {
|
|
89
|
+
const parserFn = genFunc();
|
|
90
|
+
const nullBitmapLength = Math.floor((fields.length + 7 + 2) / 8);
|
|
91
|
+
|
|
92
|
+
function wrap(field, packet) {
|
|
93
|
+
return {
|
|
94
|
+
type: typeNames[field.columnType],
|
|
95
|
+
length: field.columnLength,
|
|
96
|
+
db: field.schema,
|
|
97
|
+
table: field.table,
|
|
98
|
+
name: field.name,
|
|
99
|
+
string: function (encoding = field.encoding) {
|
|
100
|
+
if (field.columnType === Types.JSON && encoding === field.encoding) {
|
|
101
|
+
// Since for JSON columns mysql always returns charset 63 (BINARY),
|
|
102
|
+
// we have to handle it according to JSON specs and use "utf8",
|
|
103
|
+
// see https://github.com/sidorares/node-mysql2/issues/1661
|
|
104
|
+
console.warn(
|
|
105
|
+
`typeCast: JSON column "${field.name}" is interpreted as BINARY by default, recommended to manually set utf8 encoding: \`field.string("utf8")\``
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (
|
|
110
|
+
[Types.DATETIME, Types.NEWDATE, Types.TIMESTAMP, Types.DATE].includes(
|
|
111
|
+
field.columnType
|
|
112
|
+
)
|
|
113
|
+
) {
|
|
114
|
+
return packet.readDateTimeString(
|
|
115
|
+
parseInt(field.decimals, 10),
|
|
116
|
+
' ',
|
|
117
|
+
field.columnType
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (field.columnType === Types.TINY) {
|
|
122
|
+
const unsigned = field.flags & FieldFlags.UNSIGNED;
|
|
123
|
+
|
|
124
|
+
return String(unsigned ? packet.readInt8() : packet.readSInt8());
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (field.columnType === Types.TIME) {
|
|
128
|
+
return packet.readTimeString();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return packet.readLengthCodedString(encoding);
|
|
132
|
+
},
|
|
133
|
+
buffer: function () {
|
|
134
|
+
return packet.readLengthCodedBuffer();
|
|
135
|
+
},
|
|
136
|
+
geometry: function () {
|
|
137
|
+
return packet.parseGeometryValue();
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
parserFn('(function(){');
|
|
143
|
+
parserFn('return class BinaryRow {');
|
|
144
|
+
parserFn('constructor() {');
|
|
145
|
+
parserFn('}');
|
|
146
|
+
|
|
147
|
+
parserFn('next(packet, fields, options) {');
|
|
148
|
+
if (options.rowsAsArray) {
|
|
149
|
+
parserFn(`const result = new Array(${fields.length});`);
|
|
150
|
+
} else {
|
|
151
|
+
parserFn('const result = {};');
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// Global typeCast
|
|
155
|
+
if (
|
|
156
|
+
typeof config.typeCast === 'function' &&
|
|
157
|
+
typeof options.typeCast !== 'function'
|
|
158
|
+
) {
|
|
159
|
+
options.typeCast = config.typeCast;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
parserFn('packet.readInt8();'); // status byte
|
|
163
|
+
for (let i = 0; i < nullBitmapLength; ++i) {
|
|
164
|
+
parserFn(`const nullBitmaskByte${i} = packet.readInt8();`);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
let lvalue = '';
|
|
168
|
+
let currentFieldNullBit = 4;
|
|
169
|
+
let nullByteIndex = 0;
|
|
170
|
+
let fieldName = '';
|
|
171
|
+
let tableName = '';
|
|
172
|
+
|
|
173
|
+
for (let i = 0; i < fields.length; i++) {
|
|
174
|
+
fieldName = helpers.fieldEscape(fields[i].name);
|
|
175
|
+
// parserFn(`// ${fieldName}: ${typeNames[fields[i].columnType]}`);
|
|
176
|
+
|
|
177
|
+
if (typeof options.nestTables === 'string') {
|
|
178
|
+
lvalue = `result[${helpers.fieldEscape(fields[i].table + options.nestTables + fields[i].name)}]`;
|
|
179
|
+
} else if (options.nestTables === true) {
|
|
180
|
+
tableName = helpers.fieldEscape(fields[i].table);
|
|
181
|
+
|
|
182
|
+
parserFn(`if (!result[${tableName}]) result[${tableName}] = {};`);
|
|
183
|
+
lvalue = `result[${tableName}][${fieldName}]`;
|
|
184
|
+
} else if (options.rowsAsArray) {
|
|
185
|
+
lvalue = `result[${i.toString(10)}]`;
|
|
186
|
+
} else {
|
|
187
|
+
lvalue = `result[${fieldName}]`;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
parserFn(`if (nullBitmaskByte${nullByteIndex} & ${currentFieldNullBit}) `);
|
|
191
|
+
parserFn(`${lvalue} = null;`);
|
|
192
|
+
parserFn('else {');
|
|
193
|
+
|
|
194
|
+
if (options.typeCast === false) {
|
|
195
|
+
parserFn(`${lvalue} = packet.readLengthCodedBuffer();`);
|
|
196
|
+
} else {
|
|
197
|
+
const fieldWrapperVar = `fieldWrapper${i}`;
|
|
198
|
+
parserFn(`const ${fieldWrapperVar} = wrap(fields[${i}], packet);`);
|
|
199
|
+
const readCode = readCodeFor(fields[i], config, options, i);
|
|
200
|
+
|
|
201
|
+
if (typeof options.typeCast === 'function') {
|
|
202
|
+
parserFn(
|
|
203
|
+
`${lvalue} = options.typeCast(${fieldWrapperVar}, function() { return ${readCode} });`
|
|
204
|
+
);
|
|
205
|
+
} else {
|
|
206
|
+
parserFn(`${lvalue} = ${readCode};`);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
parserFn('}');
|
|
210
|
+
|
|
211
|
+
currentFieldNullBit *= 2;
|
|
212
|
+
if (currentFieldNullBit === 0x100) {
|
|
213
|
+
currentFieldNullBit = 1;
|
|
214
|
+
nullByteIndex++;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
parserFn('return result;');
|
|
219
|
+
parserFn('}');
|
|
220
|
+
parserFn('};')('})()');
|
|
221
|
+
|
|
222
|
+
if (config.debug) {
|
|
223
|
+
helpers.printDebugWithCode(
|
|
224
|
+
'Compiled binary protocol row parser',
|
|
225
|
+
parserFn.toString()
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
return parserFn.toFunction({ wrap });
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function getBinaryParser(fields, options, config) {
|
|
232
|
+
return parserCache.getParser('binary', fields, options, config, compile);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
module.exports = getBinaryParser;
|