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,205 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CommandCode = require('../constants/commands.js');
|
|
4
|
+
const Errors = require('../constants/errors.js');
|
|
5
|
+
|
|
6
|
+
const Command = require('./command.js');
|
|
7
|
+
const Packets = require('../packets/index.js');
|
|
8
|
+
|
|
9
|
+
class ServerHandshake extends Command {
|
|
10
|
+
constructor(args) {
|
|
11
|
+
super();
|
|
12
|
+
this.args = args;
|
|
13
|
+
/*
|
|
14
|
+
this.protocolVersion = args.protocolVersion || 10;
|
|
15
|
+
this.serverVersion = args.serverVersion;
|
|
16
|
+
this.connectionId = args.connectionId,
|
|
17
|
+
this.statusFlags = args.statusFlags,
|
|
18
|
+
this.characterSet = args.characterSet,
|
|
19
|
+
this.capabilityFlags = args.capabilityFlags || 512;
|
|
20
|
+
*/
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
start(packet, connection) {
|
|
24
|
+
const serverHelloPacket = new Packets.Handshake(this.args);
|
|
25
|
+
this.serverHello = serverHelloPacket;
|
|
26
|
+
serverHelloPacket.setScrambleData((err) => {
|
|
27
|
+
if (err) {
|
|
28
|
+
connection.emit('error', new Error('Error generating random bytes'));
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
connection.writePacket(serverHelloPacket.toPacket(0));
|
|
32
|
+
});
|
|
33
|
+
return ServerHandshake.prototype.readClientReply;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
readClientReply(packet, connection) {
|
|
37
|
+
// check auth here
|
|
38
|
+
const clientHelloReply = Packets.HandshakeResponse.fromPacket(
|
|
39
|
+
packet,
|
|
40
|
+
this.args.capabilityFlags
|
|
41
|
+
);
|
|
42
|
+
// TODO check we don't have something similar already
|
|
43
|
+
connection.clientHelloReply = clientHelloReply;
|
|
44
|
+
if (this.args.authCallback) {
|
|
45
|
+
this.args.authCallback(
|
|
46
|
+
{
|
|
47
|
+
user: clientHelloReply.user,
|
|
48
|
+
database: clientHelloReply.database,
|
|
49
|
+
address: connection.stream.remoteAddress,
|
|
50
|
+
authPluginData1: this.serverHello.authPluginData1,
|
|
51
|
+
authPluginData2: this.serverHello.authPluginData2,
|
|
52
|
+
authToken: clientHelloReply.authToken,
|
|
53
|
+
},
|
|
54
|
+
(err, mysqlError) => {
|
|
55
|
+
// if (err)
|
|
56
|
+
if (!mysqlError) {
|
|
57
|
+
connection.writeOk();
|
|
58
|
+
} else {
|
|
59
|
+
// TODO create constants / errorToCode
|
|
60
|
+
// 1045 = ER_ACCESS_DENIED_ERROR
|
|
61
|
+
connection.writeError({
|
|
62
|
+
message: mysqlError.message || '',
|
|
63
|
+
code: mysqlError.code || 1045,
|
|
64
|
+
});
|
|
65
|
+
connection.close();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
} else {
|
|
70
|
+
connection.writeOk();
|
|
71
|
+
}
|
|
72
|
+
return ServerHandshake.prototype.dispatchCommands;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
_isStatement(query, name) {
|
|
76
|
+
const firstWord = query.split(' ')[0].toUpperCase();
|
|
77
|
+
return firstWord === name;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
dispatchCommands(packet, connection) {
|
|
81
|
+
// command from client to server
|
|
82
|
+
let knownCommand = true;
|
|
83
|
+
const encoding = connection.clientHelloReply.encoding;
|
|
84
|
+
const commandCode = packet.readInt8();
|
|
85
|
+
switch (commandCode) {
|
|
86
|
+
case CommandCode.STMT_PREPARE:
|
|
87
|
+
if (connection.listeners('stmt_prepare').length) {
|
|
88
|
+
const query = packet.readString(undefined, encoding);
|
|
89
|
+
connection.emit('stmt_prepare', query);
|
|
90
|
+
} else {
|
|
91
|
+
connection.writeError({
|
|
92
|
+
code: Errors.HA_ERR_INTERNAL_ERROR,
|
|
93
|
+
message: 'No query handler for prepared statements.',
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case CommandCode.STMT_EXECUTE:
|
|
98
|
+
if (connection.listeners('stmt_execute').length) {
|
|
99
|
+
const { stmtId, flags, iterationCount, values } =
|
|
100
|
+
Packets.Execute.fromPacket(packet, encoding);
|
|
101
|
+
connection.emit(
|
|
102
|
+
'stmt_execute',
|
|
103
|
+
stmtId,
|
|
104
|
+
flags,
|
|
105
|
+
iterationCount,
|
|
106
|
+
values
|
|
107
|
+
);
|
|
108
|
+
} else {
|
|
109
|
+
connection.writeError({
|
|
110
|
+
code: Errors.HA_ERR_INTERNAL_ERROR,
|
|
111
|
+
message: 'No query handler for execute statements.',
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
case CommandCode.QUIT:
|
|
116
|
+
if (connection.listeners('quit').length) {
|
|
117
|
+
connection.emit('quit');
|
|
118
|
+
} else {
|
|
119
|
+
connection.stream.end();
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
122
|
+
case CommandCode.INIT_DB:
|
|
123
|
+
if (connection.listeners('init_db').length) {
|
|
124
|
+
const schemaName = packet.readString(undefined, encoding);
|
|
125
|
+
connection.emit('init_db', schemaName);
|
|
126
|
+
} else {
|
|
127
|
+
connection.writeOk();
|
|
128
|
+
}
|
|
129
|
+
break;
|
|
130
|
+
case CommandCode.QUERY:
|
|
131
|
+
if (connection.listeners('query').length) {
|
|
132
|
+
const query = packet.readString(undefined, encoding);
|
|
133
|
+
if (
|
|
134
|
+
this._isStatement(query, 'PREPARE') ||
|
|
135
|
+
this._isStatement(query, 'SET')
|
|
136
|
+
) {
|
|
137
|
+
connection.emit('stmt_prepare', query);
|
|
138
|
+
} else if (this._isStatement(query, 'EXECUTE')) {
|
|
139
|
+
connection.emit('stmt_execute', null, null, null, null, query);
|
|
140
|
+
} else connection.emit('query', query);
|
|
141
|
+
} else {
|
|
142
|
+
connection.writeError({
|
|
143
|
+
code: Errors.HA_ERR_INTERNAL_ERROR,
|
|
144
|
+
message: 'No query handler',
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
case CommandCode.FIELD_LIST:
|
|
149
|
+
if (connection.listeners('field_list').length) {
|
|
150
|
+
const table = packet.readNullTerminatedString(encoding);
|
|
151
|
+
const fields = packet.readString(undefined, encoding);
|
|
152
|
+
connection.emit('field_list', table, fields);
|
|
153
|
+
} else {
|
|
154
|
+
connection.writeError({
|
|
155
|
+
code: Errors.ER_WARN_DEPRECATED_SYNTAX,
|
|
156
|
+
message:
|
|
157
|
+
'As of MySQL 5.7.11, COM_FIELD_LIST is deprecated and will be removed in a future version of MySQL.',
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
break;
|
|
161
|
+
case CommandCode.PING:
|
|
162
|
+
if (connection.listeners('ping').length) {
|
|
163
|
+
connection.emit('ping');
|
|
164
|
+
} else {
|
|
165
|
+
connection.writeOk();
|
|
166
|
+
}
|
|
167
|
+
break;
|
|
168
|
+
default:
|
|
169
|
+
knownCommand = false;
|
|
170
|
+
}
|
|
171
|
+
if (connection.listeners('packet').length) {
|
|
172
|
+
connection.emit('packet', packet.clone(), knownCommand, commandCode);
|
|
173
|
+
} else if (!knownCommand) {
|
|
174
|
+
console.log('Unknown command:', commandCode);
|
|
175
|
+
}
|
|
176
|
+
return ServerHandshake.prototype.dispatchCommands;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
module.exports = ServerHandshake;
|
|
181
|
+
|
|
182
|
+
// TODO: implement server-side 4.1 authentication
|
|
183
|
+
/*
|
|
184
|
+
4.1 authentication: (http://bazaar.launchpad.net/~mysql/mysql-server/5.5/view/head:/sql/password.c)
|
|
185
|
+
|
|
186
|
+
SERVER: public_seed=create_random_string()
|
|
187
|
+
send(public_seed)
|
|
188
|
+
|
|
189
|
+
CLIENT: recv(public_seed)
|
|
190
|
+
hash_stage1=sha1("password")
|
|
191
|
+
hash_stage2=sha1(hash_stage1)
|
|
192
|
+
reply=xor(hash_stage1, sha1(public_seed,hash_stage2)
|
|
193
|
+
|
|
194
|
+
// this three steps are done in scramble()
|
|
195
|
+
|
|
196
|
+
send(reply)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
SERVER: recv(reply)
|
|
200
|
+
hash_stage1=xor(reply, sha1(public_seed,hash_stage2))
|
|
201
|
+
candidate_hash2=sha1(hash_stage1)
|
|
202
|
+
check(candidate_hash2==hash_stage2)
|
|
203
|
+
|
|
204
|
+
server stores sha1(sha1(password)) ( hash_stag2)
|
|
205
|
+
*/
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// connection mixins
|
|
4
|
+
// implementation of http://dev.mysql.com/doc/internals/en/compression.html
|
|
5
|
+
|
|
6
|
+
const zlib = require('zlib');
|
|
7
|
+
const PacketParser = require('./packet_parser.js');
|
|
8
|
+
|
|
9
|
+
class Queue {
|
|
10
|
+
constructor() {
|
|
11
|
+
this._queue = [];
|
|
12
|
+
this._running = false;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
push(fn) {
|
|
16
|
+
this._queue.push(fn);
|
|
17
|
+
if (!this._running) {
|
|
18
|
+
this._running = true;
|
|
19
|
+
process.nextTick(() => this._next());
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_next() {
|
|
24
|
+
const task = this._queue.shift();
|
|
25
|
+
if (!task) {
|
|
26
|
+
this._running = false;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
task({
|
|
30
|
+
done: () => process.nextTick(() => this._next()),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function handleCompressedPacket(packet) {
|
|
36
|
+
// eslint-disable-next-line consistent-this, no-invalid-this
|
|
37
|
+
const connection = this;
|
|
38
|
+
const deflatedLength = packet.readInt24();
|
|
39
|
+
const body = packet.readBuffer();
|
|
40
|
+
|
|
41
|
+
if (deflatedLength !== 0) {
|
|
42
|
+
connection.inflateQueue.push((task) => {
|
|
43
|
+
zlib.inflate(body, (err, data) => {
|
|
44
|
+
if (err) {
|
|
45
|
+
connection._handleNetworkError(err);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
connection._bumpCompressedSequenceId(packet.numPackets);
|
|
49
|
+
connection._inflatedPacketsParser.execute(data);
|
|
50
|
+
task.done();
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
connection.inflateQueue.push((task) => {
|
|
55
|
+
connection._bumpCompressedSequenceId(packet.numPackets);
|
|
56
|
+
connection._inflatedPacketsParser.execute(body);
|
|
57
|
+
task.done();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function writeCompressed(buffer) {
|
|
63
|
+
// http://dev.mysql.com/doc/internals/en/example-several-mysql-packets.html
|
|
64
|
+
// note: sending a MySQL Packet of the size 2^24−5 to 2^24−1 via compression
|
|
65
|
+
// leads to at least one extra compressed packet.
|
|
66
|
+
// (this is because "length of the packet before compression" need to fit
|
|
67
|
+
// into 3 byte unsigned int. "length of the packet before compression" includes
|
|
68
|
+
// 4 byte packet header, hence 2^24−5)
|
|
69
|
+
const MAX_COMPRESSED_LENGTH = 16777210;
|
|
70
|
+
let start;
|
|
71
|
+
if (buffer.length > MAX_COMPRESSED_LENGTH) {
|
|
72
|
+
for (start = 0; start < buffer.length; start += MAX_COMPRESSED_LENGTH) {
|
|
73
|
+
writeCompressed.call(
|
|
74
|
+
// eslint-disable-next-line no-invalid-this
|
|
75
|
+
this,
|
|
76
|
+
buffer.slice(start, start + MAX_COMPRESSED_LENGTH)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// eslint-disable-next-line no-invalid-this, consistent-this
|
|
83
|
+
const connection = this;
|
|
84
|
+
|
|
85
|
+
let packetLen = buffer.length;
|
|
86
|
+
const compressHeader = Buffer.allocUnsafe(7);
|
|
87
|
+
|
|
88
|
+
// seqqueue is used here because zlib async execution is routed via thread pool
|
|
89
|
+
// internally and when we have multiple compressed packets arriving we need
|
|
90
|
+
// to assemble uncompressed result sequentially
|
|
91
|
+
(function (seqId) {
|
|
92
|
+
connection.deflateQueue.push((task) => {
|
|
93
|
+
zlib.deflate(buffer, (err, compressed) => {
|
|
94
|
+
if (err) {
|
|
95
|
+
connection._handleFatalError(err);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
let compressedLength = compressed.length;
|
|
99
|
+
|
|
100
|
+
if (compressedLength < packetLen) {
|
|
101
|
+
compressHeader.writeUInt8(compressedLength & 0xff, 0);
|
|
102
|
+
compressHeader.writeUInt16LE(compressedLength >> 8, 1);
|
|
103
|
+
compressHeader.writeUInt8(seqId, 3);
|
|
104
|
+
compressHeader.writeUInt8(packetLen & 0xff, 4);
|
|
105
|
+
compressHeader.writeUInt16LE(packetLen >> 8, 5);
|
|
106
|
+
connection.writeUncompressed(compressHeader);
|
|
107
|
+
connection.writeUncompressed(compressed);
|
|
108
|
+
} else {
|
|
109
|
+
// http://dev.mysql.com/doc/internals/en/uncompressed-payload.html
|
|
110
|
+
// To send an uncompressed payload:
|
|
111
|
+
// - set length of payload before compression to 0
|
|
112
|
+
// - the compressed payload contains the uncompressed payload instead.
|
|
113
|
+
compressedLength = packetLen;
|
|
114
|
+
packetLen = 0;
|
|
115
|
+
compressHeader.writeUInt8(compressedLength & 0xff, 0);
|
|
116
|
+
compressHeader.writeUInt16LE(compressedLength >> 8, 1);
|
|
117
|
+
compressHeader.writeUInt8(seqId, 3);
|
|
118
|
+
compressHeader.writeUInt8(packetLen & 0xff, 4);
|
|
119
|
+
compressHeader.writeUInt16LE(packetLen >> 8, 5);
|
|
120
|
+
connection.writeUncompressed(compressHeader);
|
|
121
|
+
connection.writeUncompressed(buffer);
|
|
122
|
+
}
|
|
123
|
+
task.done();
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
})(connection.compressedSequenceId);
|
|
127
|
+
connection._bumpCompressedSequenceId(1);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function enableCompression(connection) {
|
|
131
|
+
connection._lastWrittenPacketId = 0;
|
|
132
|
+
connection._lastReceivedPacketId = 0;
|
|
133
|
+
|
|
134
|
+
connection._handleCompressedPacket = handleCompressedPacket;
|
|
135
|
+
connection._inflatedPacketsParser = new PacketParser((p) => {
|
|
136
|
+
connection.handlePacket(p);
|
|
137
|
+
}, 4);
|
|
138
|
+
connection._inflatedPacketsParser._lastPacket = 0;
|
|
139
|
+
connection.packetParser = new PacketParser((packet) => {
|
|
140
|
+
connection._handleCompressedPacket(packet);
|
|
141
|
+
}, 7);
|
|
142
|
+
|
|
143
|
+
connection.writeUncompressed = connection.write;
|
|
144
|
+
connection.write = writeCompressed;
|
|
145
|
+
|
|
146
|
+
connection.inflateQueue = new Queue();
|
|
147
|
+
connection.deflateQueue = new Queue();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
module.exports = {
|
|
151
|
+
enableCompression: enableCompression,
|
|
152
|
+
Queue: Queue,
|
|
153
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const BaseConnection = require('./base/connection.js');
|
|
4
|
+
|
|
5
|
+
class Connection extends BaseConnection {
|
|
6
|
+
promise(promiseImpl) {
|
|
7
|
+
const PromiseConnection = require('./promise/connection.js');
|
|
8
|
+
return new PromiseConnection(this, promiseImpl);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
module.exports = Connection;
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
// This file was modified by Oracle on September 21, 2021.
|
|
2
|
+
// New connection options for additional authentication factors were
|
|
3
|
+
// introduced.
|
|
4
|
+
// Multi-factor authentication capability is now enabled if one of these
|
|
5
|
+
// options is used.
|
|
6
|
+
// Modifications copyright (c) 2021, Oracle and/or its affiliates.
|
|
7
|
+
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
const { URL } = require('url');
|
|
11
|
+
const ClientConstants = require('./constants/client');
|
|
12
|
+
const Charsets = require('./constants/charsets');
|
|
13
|
+
const { version } = require('../package.json');
|
|
14
|
+
let SSLProfiles = null;
|
|
15
|
+
|
|
16
|
+
const validOptions = {
|
|
17
|
+
authPlugins: 1,
|
|
18
|
+
authSwitchHandler: 1,
|
|
19
|
+
bigNumberStrings: 1,
|
|
20
|
+
charset: 1,
|
|
21
|
+
charsetNumber: 1,
|
|
22
|
+
compress: 1,
|
|
23
|
+
connectAttributes: 1,
|
|
24
|
+
connectTimeout: 1,
|
|
25
|
+
database: 1,
|
|
26
|
+
dateStrings: 1,
|
|
27
|
+
debug: 1,
|
|
28
|
+
decimalNumbers: 1,
|
|
29
|
+
enableKeepAlive: 1,
|
|
30
|
+
flags: 1,
|
|
31
|
+
host: 1,
|
|
32
|
+
insecureAuth: 1,
|
|
33
|
+
infileStreamFactory: 1,
|
|
34
|
+
isServer: 1,
|
|
35
|
+
keepAliveInitialDelay: 1,
|
|
36
|
+
localAddress: 1,
|
|
37
|
+
maxPreparedStatements: 1,
|
|
38
|
+
multipleStatements: 1,
|
|
39
|
+
namedPlaceholders: 1,
|
|
40
|
+
nestTables: 1,
|
|
41
|
+
password: 1,
|
|
42
|
+
// with multi-factor authentication, the main password (used for the first
|
|
43
|
+
// authentication factor) can be provided via password1
|
|
44
|
+
password1: 1,
|
|
45
|
+
password2: 1,
|
|
46
|
+
password3: 1,
|
|
47
|
+
passwordSha1: 1,
|
|
48
|
+
pool: 1,
|
|
49
|
+
port: 1,
|
|
50
|
+
queryFormat: 1,
|
|
51
|
+
rowsAsArray: 1,
|
|
52
|
+
socketPath: 1,
|
|
53
|
+
ssl: 1,
|
|
54
|
+
stream: 1,
|
|
55
|
+
stringifyObjects: 1,
|
|
56
|
+
supportBigNumbers: 1,
|
|
57
|
+
timezone: 1,
|
|
58
|
+
trace: 1,
|
|
59
|
+
typeCast: 1,
|
|
60
|
+
uri: 1,
|
|
61
|
+
user: 1,
|
|
62
|
+
disableEval: 1,
|
|
63
|
+
enableCleartextPlugin: 1,
|
|
64
|
+
// These options are used for Pool
|
|
65
|
+
connectionLimit: 1,
|
|
66
|
+
maxIdle: 1,
|
|
67
|
+
idleTimeout: 1,
|
|
68
|
+
Promise: 1,
|
|
69
|
+
queueLimit: 1,
|
|
70
|
+
waitForConnections: 1,
|
|
71
|
+
jsonStrings: 1,
|
|
72
|
+
gracefulEnd: 1,
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
class ConnectionConfig {
|
|
76
|
+
constructor(options) {
|
|
77
|
+
if (typeof options === 'string') {
|
|
78
|
+
options = ConnectionConfig.parseUrl(options);
|
|
79
|
+
} else if (options && options.uri) {
|
|
80
|
+
const uriOptions = ConnectionConfig.parseUrl(options.uri);
|
|
81
|
+
for (const key in uriOptions) {
|
|
82
|
+
if (!Object.prototype.hasOwnProperty.call(uriOptions, key)) continue;
|
|
83
|
+
if (options[key]) continue;
|
|
84
|
+
options[key] = uriOptions[key];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
for (const key in options) {
|
|
88
|
+
if (!Object.prototype.hasOwnProperty.call(options, key)) continue;
|
|
89
|
+
if (validOptions[key] !== 1) {
|
|
90
|
+
// REVIEW: Should this be emitted somehow?
|
|
91
|
+
console.error(
|
|
92
|
+
`Ignoring invalid configuration option passed to Connection: ${key}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
this.isServer = options.isServer;
|
|
97
|
+
this.stream = options.stream;
|
|
98
|
+
this.host = options.host || 'localhost';
|
|
99
|
+
this.port =
|
|
100
|
+
(typeof options.port === 'string'
|
|
101
|
+
? parseInt(options.port, 10)
|
|
102
|
+
: options.port) || 3306;
|
|
103
|
+
this.localAddress = options.localAddress;
|
|
104
|
+
this.socketPath = options.socketPath;
|
|
105
|
+
this.user = options.user || undefined;
|
|
106
|
+
// for the purpose of multi-factor authentication, or not, the main
|
|
107
|
+
// password (used for the 1st authentication factor) can also be
|
|
108
|
+
// provided via the "password1" option
|
|
109
|
+
this.password = options.password || options.password1 || undefined;
|
|
110
|
+
this.password2 = options.password2 || undefined;
|
|
111
|
+
this.password3 = options.password3 || undefined;
|
|
112
|
+
this.passwordSha1 = options.passwordSha1 || undefined;
|
|
113
|
+
this.database = options.database;
|
|
114
|
+
this.connectTimeout = isNaN(options.connectTimeout)
|
|
115
|
+
? 10 * 1000
|
|
116
|
+
: options.connectTimeout;
|
|
117
|
+
this.insecureAuth = options.insecureAuth || false;
|
|
118
|
+
this.infileStreamFactory = options.infileStreamFactory || undefined;
|
|
119
|
+
this.supportBigNumbers = options.supportBigNumbers || false;
|
|
120
|
+
this.bigNumberStrings = options.bigNumberStrings || false;
|
|
121
|
+
this.decimalNumbers = options.decimalNumbers || false;
|
|
122
|
+
this.dateStrings = options.dateStrings || false;
|
|
123
|
+
this.debug = options.debug;
|
|
124
|
+
this.trace = options.trace !== false;
|
|
125
|
+
this.stringifyObjects = options.stringifyObjects || false;
|
|
126
|
+
this.enableKeepAlive = options.enableKeepAlive !== false;
|
|
127
|
+
this.keepAliveInitialDelay = options.keepAliveInitialDelay;
|
|
128
|
+
if (
|
|
129
|
+
options.timezone &&
|
|
130
|
+
!/^(?:local|Z|[ +-]\d\d:\d\d)$/.test(options.timezone)
|
|
131
|
+
) {
|
|
132
|
+
// strictly supports timezones specified by mysqljs/mysql:
|
|
133
|
+
// https://github.com/mysqljs/mysql#user-content-connection-options
|
|
134
|
+
|
|
135
|
+
console.error(
|
|
136
|
+
`Ignoring invalid timezone passed to Connection: ${options.timezone}. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection`
|
|
137
|
+
);
|
|
138
|
+
// SqlStrings falls back to UTC on invalid timezone
|
|
139
|
+
this.timezone = 'Z';
|
|
140
|
+
} else {
|
|
141
|
+
this.timezone = options.timezone || 'local';
|
|
142
|
+
}
|
|
143
|
+
this.queryFormat = options.queryFormat;
|
|
144
|
+
this.pool = options.pool || undefined;
|
|
145
|
+
this.ssl =
|
|
146
|
+
typeof options.ssl === 'string'
|
|
147
|
+
? ConnectionConfig.getSSLProfile(options.ssl)
|
|
148
|
+
: options.ssl || false;
|
|
149
|
+
this.multipleStatements = options.multipleStatements || false;
|
|
150
|
+
this.rowsAsArray = options.rowsAsArray || false;
|
|
151
|
+
this.namedPlaceholders = options.namedPlaceholders || false;
|
|
152
|
+
this.nestTables =
|
|
153
|
+
options.nestTables === undefined ? undefined : options.nestTables;
|
|
154
|
+
this.typeCast = options.typeCast === undefined ? true : options.typeCast;
|
|
155
|
+
this.disableEval = Boolean(options.disableEval);
|
|
156
|
+
this.enableCleartextPlugin = Boolean(options.enableCleartextPlugin);
|
|
157
|
+
if (this.timezone[0] === ' ') {
|
|
158
|
+
// "+" is a url encoded char for space so it
|
|
159
|
+
// gets translated to space when giving a
|
|
160
|
+
// connection string..
|
|
161
|
+
this.timezone = `+${this.timezone.slice(1)}`;
|
|
162
|
+
}
|
|
163
|
+
if (this.ssl) {
|
|
164
|
+
if (typeof this.ssl !== 'object') {
|
|
165
|
+
throw new TypeError(
|
|
166
|
+
`SSL profile must be an object, instead it's a ${typeof this.ssl}`
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
// Default rejectUnauthorized to true
|
|
170
|
+
this.ssl.rejectUnauthorized = this.ssl.rejectUnauthorized !== false;
|
|
171
|
+
}
|
|
172
|
+
this.maxPacketSize = 0;
|
|
173
|
+
this.charsetNumber = options.charset
|
|
174
|
+
? ConnectionConfig.getCharsetNumber(options.charset)
|
|
175
|
+
: options.charsetNumber || Charsets.UTF8MB4_UNICODE_CI;
|
|
176
|
+
this.compress = options.compress || false;
|
|
177
|
+
this.authPlugins = options.authPlugins;
|
|
178
|
+
this.authSwitchHandler = options.authSwitchHandler;
|
|
179
|
+
this.clientFlags = ConnectionConfig.mergeFlags(
|
|
180
|
+
ConnectionConfig.getDefaultFlags(options),
|
|
181
|
+
options.flags || ''
|
|
182
|
+
);
|
|
183
|
+
// Default connection attributes
|
|
184
|
+
// https://dev.mysql.com/doc/refman/8.0/en/performance-schema-connection-attribute-tables.html
|
|
185
|
+
const defaultConnectAttributes = {
|
|
186
|
+
_client_name: 'Node-MySQL-2',
|
|
187
|
+
_client_version: version,
|
|
188
|
+
};
|
|
189
|
+
this.connectAttributes = {
|
|
190
|
+
...defaultConnectAttributes,
|
|
191
|
+
...(options.connectAttributes || {}),
|
|
192
|
+
};
|
|
193
|
+
this.maxPreparedStatements = options.maxPreparedStatements || 16000;
|
|
194
|
+
this.jsonStrings = options.jsonStrings || false;
|
|
195
|
+
this.gracefulEnd = options.gracefulEnd || false;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
static mergeFlags(default_flags, user_flags) {
|
|
199
|
+
let flags = 0x0,
|
|
200
|
+
i;
|
|
201
|
+
if (!Array.isArray(user_flags)) {
|
|
202
|
+
user_flags = String(user_flags || '')
|
|
203
|
+
.toUpperCase()
|
|
204
|
+
.split(/\s*,+\s*/);
|
|
205
|
+
}
|
|
206
|
+
// add default flags unless "blacklisted"
|
|
207
|
+
for (i in default_flags) {
|
|
208
|
+
if (user_flags.indexOf(`-${default_flags[i]}`) >= 0) {
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
flags |= ClientConstants[default_flags[i]] || 0x0;
|
|
212
|
+
}
|
|
213
|
+
// add user flags unless already already added
|
|
214
|
+
for (i in user_flags) {
|
|
215
|
+
if (user_flags[i][0] === '-') {
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
if (default_flags.indexOf(user_flags[i]) >= 0) {
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
flags |= ClientConstants[user_flags[i]] || 0x0;
|
|
222
|
+
}
|
|
223
|
+
return flags;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static getDefaultFlags(options) {
|
|
227
|
+
const defaultFlags = [
|
|
228
|
+
'LONG_PASSWORD',
|
|
229
|
+
'FOUND_ROWS',
|
|
230
|
+
'LONG_FLAG',
|
|
231
|
+
'CONNECT_WITH_DB',
|
|
232
|
+
'ODBC',
|
|
233
|
+
'LOCAL_FILES',
|
|
234
|
+
'IGNORE_SPACE',
|
|
235
|
+
'PROTOCOL_41',
|
|
236
|
+
'IGNORE_SIGPIPE',
|
|
237
|
+
'TRANSACTIONS',
|
|
238
|
+
'RESERVED',
|
|
239
|
+
'SECURE_CONNECTION',
|
|
240
|
+
'MULTI_RESULTS',
|
|
241
|
+
'TRANSACTIONS',
|
|
242
|
+
'SESSION_TRACK',
|
|
243
|
+
'CONNECT_ATTRS',
|
|
244
|
+
'CLIENT_QUERY_ATTRIBUTES',
|
|
245
|
+
];
|
|
246
|
+
if (options && options.multipleStatements) {
|
|
247
|
+
defaultFlags.push('MULTI_STATEMENTS');
|
|
248
|
+
}
|
|
249
|
+
defaultFlags.push('PLUGIN_AUTH');
|
|
250
|
+
defaultFlags.push('PLUGIN_AUTH_LENENC_CLIENT_DATA');
|
|
251
|
+
|
|
252
|
+
return defaultFlags;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
static getCharsetNumber(charset) {
|
|
256
|
+
const num = Charsets[charset.toUpperCase()];
|
|
257
|
+
if (num === undefined) {
|
|
258
|
+
throw new TypeError(`Unknown charset '${charset}'`);
|
|
259
|
+
}
|
|
260
|
+
return num;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
static getSSLProfile(name) {
|
|
264
|
+
if (!SSLProfiles) {
|
|
265
|
+
SSLProfiles = require('./constants/ssl_profiles.js');
|
|
266
|
+
}
|
|
267
|
+
const ssl = SSLProfiles[name];
|
|
268
|
+
if (ssl === undefined) {
|
|
269
|
+
throw new TypeError(`Unknown SSL profile '${name}'`);
|
|
270
|
+
}
|
|
271
|
+
return ssl;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
static parseUrl(url) {
|
|
275
|
+
const parsedUrl = new URL(url);
|
|
276
|
+
const options = {
|
|
277
|
+
host: decodeURIComponent(parsedUrl.hostname),
|
|
278
|
+
port: parseInt(parsedUrl.port, 10),
|
|
279
|
+
database: decodeURIComponent(parsedUrl.pathname.slice(1)),
|
|
280
|
+
user: decodeURIComponent(parsedUrl.username),
|
|
281
|
+
password: decodeURIComponent(parsedUrl.password),
|
|
282
|
+
};
|
|
283
|
+
for (const [key, value] of parsedUrl.searchParams) {
|
|
284
|
+
if (key in options) {
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
try {
|
|
288
|
+
// Try to parse this as a JSON expression first
|
|
289
|
+
options[key] = JSON.parse(value);
|
|
290
|
+
} catch {
|
|
291
|
+
// Otherwise assume it is a plain string
|
|
292
|
+
options[key] = value;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return options;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
module.exports = ConnectionConfig;
|