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,343 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const process = require('process');
|
|
4
|
+
const SqlString = require('sql-escaper');
|
|
5
|
+
const EventEmitter = require('events').EventEmitter;
|
|
6
|
+
const PoolConnection = require('../pool_connection.js');
|
|
7
|
+
const Queue = require('denque');
|
|
8
|
+
const BaseConnection = require('./connection.js');
|
|
9
|
+
const Errors = require('../constants/errors.js');
|
|
10
|
+
const {
|
|
11
|
+
traceCallback,
|
|
12
|
+
getServerContext,
|
|
13
|
+
poolConnectChannel,
|
|
14
|
+
} = require('../tracing.js');
|
|
15
|
+
|
|
16
|
+
// Source: https://github.com/go-sql-driver/mysql/blob/76c00e35a8d48f8f70f0e7dffe584692bd3fa612/packets.go#L598-L613
|
|
17
|
+
function isReadOnlyError(err) {
|
|
18
|
+
if (!err || !err.errno) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
// 1792: ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION
|
|
22
|
+
// 1290: ER_OPTION_PREVENTS_STATEMENT (returned by Aurora during failover)
|
|
23
|
+
// 1836: ER_READ_ONLY_MODE
|
|
24
|
+
return (
|
|
25
|
+
err.errno === Errors.ER_OPTION_PREVENTS_STATEMENT ||
|
|
26
|
+
err.errno === Errors.ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION ||
|
|
27
|
+
err.errno === Errors.ER_READ_ONLY_MODE
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function spliceConnection(queue, connection) {
|
|
32
|
+
const len = queue.length;
|
|
33
|
+
for (let i = 0; i < len; i++) {
|
|
34
|
+
if (queue.get(i) === connection) {
|
|
35
|
+
queue.removeOne(i);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class BasePool extends EventEmitter {
|
|
42
|
+
constructor(options) {
|
|
43
|
+
super();
|
|
44
|
+
this.config = options.config;
|
|
45
|
+
this.config.connectionConfig.pool = this;
|
|
46
|
+
this._allConnections = new Queue();
|
|
47
|
+
this._freeConnections = new Queue();
|
|
48
|
+
this._connectionQueue = new Queue();
|
|
49
|
+
this._closed = false;
|
|
50
|
+
if (this.config.maxIdle < this.config.connectionLimit) {
|
|
51
|
+
// create idle connection timeout automatically release job
|
|
52
|
+
this._removeIdleTimeoutConnections();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
getConnection(cb) {
|
|
57
|
+
const _getConnection = (cb) => {
|
|
58
|
+
if (this._closed) {
|
|
59
|
+
return process.nextTick(() => cb(new Error('Pool is closed.')));
|
|
60
|
+
}
|
|
61
|
+
let connection;
|
|
62
|
+
if (this._freeConnections.length > 0) {
|
|
63
|
+
connection = this._freeConnections.pop();
|
|
64
|
+
this.emit('acquire', connection);
|
|
65
|
+
return process.nextTick(() => {
|
|
66
|
+
connection._released = false;
|
|
67
|
+
cb(null, connection);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (
|
|
71
|
+
this.config.connectionLimit === 0 ||
|
|
72
|
+
this._allConnections.length < this.config.connectionLimit
|
|
73
|
+
) {
|
|
74
|
+
connection = new PoolConnection(this, {
|
|
75
|
+
config: this.config.connectionConfig,
|
|
76
|
+
});
|
|
77
|
+
this._allConnections.push(connection);
|
|
78
|
+
return connection.connect((err) => {
|
|
79
|
+
if (this._closed) {
|
|
80
|
+
return cb(new Error('Pool is closed.'));
|
|
81
|
+
}
|
|
82
|
+
if (err) {
|
|
83
|
+
return cb(err);
|
|
84
|
+
}
|
|
85
|
+
this.emit('connection', connection);
|
|
86
|
+
this.emit('acquire', connection);
|
|
87
|
+
return cb(null, connection);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
if (!this.config.waitForConnections) {
|
|
91
|
+
return process.nextTick(() =>
|
|
92
|
+
cb(new Error('No connections available.'))
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
if (
|
|
96
|
+
this.config.queueLimit &&
|
|
97
|
+
this._connectionQueue.length >= this.config.queueLimit
|
|
98
|
+
) {
|
|
99
|
+
return cb(new Error('Queue limit reached.'));
|
|
100
|
+
}
|
|
101
|
+
this.emit('enqueue');
|
|
102
|
+
return this._connectionQueue.push(cb);
|
|
103
|
+
};
|
|
104
|
+
const config = this.config.connectionConfig;
|
|
105
|
+
traceCallback(
|
|
106
|
+
poolConnectChannel,
|
|
107
|
+
_getConnection,
|
|
108
|
+
0,
|
|
109
|
+
() => {
|
|
110
|
+
const server = getServerContext(config);
|
|
111
|
+
return {
|
|
112
|
+
database: config.database || '',
|
|
113
|
+
serverAddress: server.serverAddress,
|
|
114
|
+
serverPort: server.serverPort,
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
null,
|
|
118
|
+
cb
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
releaseConnection(connection) {
|
|
123
|
+
let cb;
|
|
124
|
+
if (!connection._pool) {
|
|
125
|
+
// The connection has been removed from the pool and is no longer good.
|
|
126
|
+
if (this._connectionQueue.length) {
|
|
127
|
+
cb = this._connectionQueue.shift();
|
|
128
|
+
process.nextTick(this.getConnection.bind(this, cb));
|
|
129
|
+
}
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Reset connection state if configured
|
|
134
|
+
if (this.config.resetOnRelease && connection.reset) {
|
|
135
|
+
connection.reset((err) => {
|
|
136
|
+
if (err) {
|
|
137
|
+
// If reset fails, remove connection from pool
|
|
138
|
+
connection._pool = null;
|
|
139
|
+
spliceConnection(this._allConnections, connection);
|
|
140
|
+
connection.destroy();
|
|
141
|
+
|
|
142
|
+
// Try to create a new connection for waiting callbacks
|
|
143
|
+
if (this._connectionQueue.length) {
|
|
144
|
+
cb = this._connectionQueue.shift();
|
|
145
|
+
process.nextTick(this.getConnection.bind(this, cb));
|
|
146
|
+
}
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Reset successful, continue with normal release flow
|
|
151
|
+
this._handleSuccessfulRelease(connection);
|
|
152
|
+
});
|
|
153
|
+
} else {
|
|
154
|
+
this._handleSuccessfulRelease(connection);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
_handleSuccessfulRelease(connection) {
|
|
159
|
+
let cb;
|
|
160
|
+
if (this._connectionQueue.length) {
|
|
161
|
+
cb = this._connectionQueue.shift();
|
|
162
|
+
process.nextTick(() => {
|
|
163
|
+
connection._released = false;
|
|
164
|
+
cb(null, connection);
|
|
165
|
+
});
|
|
166
|
+
} else {
|
|
167
|
+
this._freeConnections.push(connection);
|
|
168
|
+
this.emit('release', connection);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
[Symbol.dispose]() {
|
|
173
|
+
if (!this._closed) {
|
|
174
|
+
this.end();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
end(cb) {
|
|
179
|
+
this._closed = true;
|
|
180
|
+
clearTimeout(this._removeIdleTimeoutConnectionsTimer);
|
|
181
|
+
if (typeof cb !== 'function') {
|
|
182
|
+
cb = function (err) {
|
|
183
|
+
if (err) {
|
|
184
|
+
throw err;
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
let calledBack = false;
|
|
189
|
+
let closedConnections = 0;
|
|
190
|
+
let connection;
|
|
191
|
+
const endCB = function (err) {
|
|
192
|
+
if (calledBack) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (err || ++closedConnections >= this._allConnections.length) {
|
|
196
|
+
calledBack = true;
|
|
197
|
+
cb(err);
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
}.bind(this);
|
|
201
|
+
if (this._allConnections.length === 0) {
|
|
202
|
+
endCB();
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
for (let i = 0; i < this._allConnections.length; i++) {
|
|
206
|
+
connection = this._allConnections.get(i);
|
|
207
|
+
connection._realEnd(endCB);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
query(sql, values, cb) {
|
|
212
|
+
const cmdQuery = BaseConnection.createQuery(
|
|
213
|
+
sql,
|
|
214
|
+
values,
|
|
215
|
+
cb,
|
|
216
|
+
this.config.connectionConfig
|
|
217
|
+
);
|
|
218
|
+
if (typeof cmdQuery.namedPlaceholders === 'undefined') {
|
|
219
|
+
cmdQuery.namedPlaceholders =
|
|
220
|
+
this.config.connectionConfig.namedPlaceholders;
|
|
221
|
+
}
|
|
222
|
+
this.getConnection((err, conn) => {
|
|
223
|
+
if (err) {
|
|
224
|
+
if (typeof cmdQuery.onResult === 'function') {
|
|
225
|
+
cmdQuery.onResult(err);
|
|
226
|
+
} else {
|
|
227
|
+
cmdQuery.emit('error', err);
|
|
228
|
+
}
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
try {
|
|
232
|
+
let queryError = null;
|
|
233
|
+
const origOnResult = cmdQuery.onResult;
|
|
234
|
+
if (origOnResult) {
|
|
235
|
+
cmdQuery.onResult = function (err, rows, fields) {
|
|
236
|
+
queryError = err || null;
|
|
237
|
+
origOnResult(err, rows, fields);
|
|
238
|
+
};
|
|
239
|
+
} else {
|
|
240
|
+
cmdQuery.once('error', (err) => {
|
|
241
|
+
queryError = err;
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
conn.query(cmdQuery).once('end', () => {
|
|
245
|
+
if (isReadOnlyError(queryError)) {
|
|
246
|
+
conn.destroy();
|
|
247
|
+
} else {
|
|
248
|
+
conn.release();
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
} catch (e) {
|
|
252
|
+
conn.release();
|
|
253
|
+
throw e;
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
return cmdQuery;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
execute(sql, values, cb) {
|
|
260
|
+
// TODO construct execute command first here and pass it to connection.execute
|
|
261
|
+
// so that polymorphic arguments logic is there in one place
|
|
262
|
+
if (typeof values === 'function') {
|
|
263
|
+
cb = values;
|
|
264
|
+
values = [];
|
|
265
|
+
}
|
|
266
|
+
this.getConnection((err, conn) => {
|
|
267
|
+
if (err) {
|
|
268
|
+
return cb(err);
|
|
269
|
+
}
|
|
270
|
+
try {
|
|
271
|
+
conn
|
|
272
|
+
.execute(sql, values, (err, rows, fields) => {
|
|
273
|
+
if (isReadOnlyError(err)) {
|
|
274
|
+
conn.destroy();
|
|
275
|
+
}
|
|
276
|
+
cb(err, rows, fields);
|
|
277
|
+
})
|
|
278
|
+
.once('end', () => {
|
|
279
|
+
conn.release();
|
|
280
|
+
});
|
|
281
|
+
} catch (e) {
|
|
282
|
+
conn.release();
|
|
283
|
+
return cb(e);
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
_removeConnection(connection) {
|
|
289
|
+
// Remove connection from all connections
|
|
290
|
+
spliceConnection(this._allConnections, connection);
|
|
291
|
+
// Remove connection from free connections
|
|
292
|
+
spliceConnection(this._freeConnections, connection);
|
|
293
|
+
this.releaseConnection(connection);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
_removeIdleTimeoutConnections() {
|
|
297
|
+
if (this._removeIdleTimeoutConnectionsTimer) {
|
|
298
|
+
clearTimeout(this._removeIdleTimeoutConnectionsTimer);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
this._removeIdleTimeoutConnectionsTimer = setTimeout(() => {
|
|
302
|
+
try {
|
|
303
|
+
while (
|
|
304
|
+
this._freeConnections.length > this.config.maxIdle ||
|
|
305
|
+
(this._freeConnections.length > 0 &&
|
|
306
|
+
Date.now() - this._freeConnections.get(0).lastActiveTime >
|
|
307
|
+
this.config.idleTimeout)
|
|
308
|
+
) {
|
|
309
|
+
if (this.config.connectionConfig.gracefulEnd) {
|
|
310
|
+
this._freeConnections.get(0).end();
|
|
311
|
+
} else {
|
|
312
|
+
this._freeConnections.get(0).destroy();
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
} finally {
|
|
316
|
+
this._removeIdleTimeoutConnections();
|
|
317
|
+
}
|
|
318
|
+
}, 1000);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
format(sql, values) {
|
|
322
|
+
return SqlString.format(
|
|
323
|
+
sql,
|
|
324
|
+
values,
|
|
325
|
+
this.config.connectionConfig.stringifyObjects,
|
|
326
|
+
this.config.connectionConfig.timezone
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
escape(value) {
|
|
331
|
+
return SqlString.escape(
|
|
332
|
+
value,
|
|
333
|
+
this.config.connectionConfig.stringifyObjects,
|
|
334
|
+
this.config.connectionConfig.timezone
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
escapeId(value) {
|
|
339
|
+
return SqlString.escapeId(value, false);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
module.exports = BasePool;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// This file was modified by Oracle on July 5, 2021.
|
|
2
|
+
// Errors generated by asynchronous authentication plugins are now being
|
|
3
|
+
// handled and subsequently emitted at the command level.
|
|
4
|
+
// Modifications copyright (c) 2021, Oracle and/or its affiliates.
|
|
5
|
+
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
const Packets = require('../packets/index.js');
|
|
9
|
+
const sha256_password = require('../auth_plugins/sha256_password');
|
|
10
|
+
const caching_sha2_password = require('../auth_plugins/caching_sha2_password.js');
|
|
11
|
+
const mysql_native_password = require('../auth_plugins/mysql_native_password.js');
|
|
12
|
+
const mysql_clear_password = require('../auth_plugins/mysql_clear_password.js');
|
|
13
|
+
|
|
14
|
+
// Use Object.create(null) to avoid prototype pollution
|
|
15
|
+
// This prevents server-controlled pluginName values like "toString" or "__proto__"
|
|
16
|
+
// from resolving to prototype properties
|
|
17
|
+
const standardAuthPlugins = Object.assign(Object.create(null), {
|
|
18
|
+
sha256_password: sha256_password({}),
|
|
19
|
+
caching_sha2_password: caching_sha2_password({}),
|
|
20
|
+
mysql_native_password: mysql_native_password({}),
|
|
21
|
+
mysql_clear_password: mysql_clear_password({}),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// Helper function to get auth plugin (custom or standard)
|
|
25
|
+
function getAuthPlugin(pluginName, connection) {
|
|
26
|
+
const customPlugins = connection.config.authPlugins;
|
|
27
|
+
|
|
28
|
+
// Check custom plugins with hasOwnProperty for safety
|
|
29
|
+
if (
|
|
30
|
+
customPlugins &&
|
|
31
|
+
Object.prototype.hasOwnProperty.call(customPlugins, pluginName)
|
|
32
|
+
) {
|
|
33
|
+
return customPlugins[pluginName];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Safe to access standardAuthPlugins directly since it has no prototype
|
|
37
|
+
return standardAuthPlugins[pluginName];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function warnLegacyAuthSwitch() {
|
|
41
|
+
console.warn(
|
|
42
|
+
'WARNING! authSwitchHandler api is deprecated, please use new authPlugins api'
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function authSwitchPluginError(error, command) {
|
|
47
|
+
// Authentication errors are fatal
|
|
48
|
+
error.code = 'AUTH_SWITCH_PLUGIN_ERROR';
|
|
49
|
+
error.fatal = true;
|
|
50
|
+
|
|
51
|
+
command.emit('error', error);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function authSwitchRequest(packet, connection, command) {
|
|
55
|
+
const { pluginName, pluginData } =
|
|
56
|
+
Packets.AuthSwitchRequest.fromPacket(packet);
|
|
57
|
+
|
|
58
|
+
// legacy plugin api don't allow to override mysql_native_password
|
|
59
|
+
// if pluginName is mysql_native_password it's using standard auth4.1 auth
|
|
60
|
+
if (
|
|
61
|
+
connection.config.authSwitchHandler &&
|
|
62
|
+
pluginName !== 'mysql_native_password'
|
|
63
|
+
) {
|
|
64
|
+
const legacySwitchHandler = connection.config.authSwitchHandler;
|
|
65
|
+
warnLegacyAuthSwitch();
|
|
66
|
+
legacySwitchHandler({ pluginName, pluginData }, (err, data) => {
|
|
67
|
+
if (err) {
|
|
68
|
+
return authSwitchPluginError(err, command);
|
|
69
|
+
}
|
|
70
|
+
connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());
|
|
71
|
+
});
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (pluginName === 'mysql_clear_password') {
|
|
76
|
+
const hasCustomPlugin =
|
|
77
|
+
connection.config.authPlugins &&
|
|
78
|
+
Object.prototype.hasOwnProperty.call(
|
|
79
|
+
connection.config.authPlugins,
|
|
80
|
+
'mysql_clear_password'
|
|
81
|
+
);
|
|
82
|
+
if (!hasCustomPlugin && !connection.config.enableCleartextPlugin) {
|
|
83
|
+
const err = new Error(
|
|
84
|
+
'Server requested authentication using mysql_clear_password, ' +
|
|
85
|
+
'which sends the password in plaintext over the network and is ' +
|
|
86
|
+
'disabled by default. To enable it, set the `enableCleartextPlugin` ' +
|
|
87
|
+
'option to `true` in your connection configuration, or provide a ' +
|
|
88
|
+
'custom `mysql_clear_password` auth plugin via the `authPlugins` ' +
|
|
89
|
+
'option. Only use this over a secure connection (TLS/SSL).'
|
|
90
|
+
);
|
|
91
|
+
err.code = 'MYSQL_CLEAR_PASSWORD_NOT_ENABLED';
|
|
92
|
+
err.fatal = true;
|
|
93
|
+
throw err;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const authPlugin = getAuthPlugin(pluginName, connection);
|
|
98
|
+
if (!authPlugin) {
|
|
99
|
+
throw new Error(
|
|
100
|
+
`Server requests authentication using unknown plugin ${pluginName}. See ${'TODO: add plugins doco here'} on how to configure or author authentication plugins.`
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
connection._authPlugin = authPlugin({ connection, command });
|
|
104
|
+
Promise.resolve(connection._authPlugin(pluginData))
|
|
105
|
+
.then((data) => {
|
|
106
|
+
if (data) {
|
|
107
|
+
connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
.catch((err) => {
|
|
111
|
+
authSwitchPluginError(err, command);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function authSwitchRequestMoreData(packet, connection, command) {
|
|
116
|
+
const { data } = Packets.AuthSwitchRequestMoreData.fromPacket(packet);
|
|
117
|
+
|
|
118
|
+
if (connection.config.authSwitchHandler) {
|
|
119
|
+
const legacySwitchHandler = connection.config.authSwitchHandler;
|
|
120
|
+
warnLegacyAuthSwitch();
|
|
121
|
+
legacySwitchHandler({ pluginData: data }, (err, data) => {
|
|
122
|
+
if (err) {
|
|
123
|
+
return authSwitchPluginError(err, command);
|
|
124
|
+
}
|
|
125
|
+
connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());
|
|
126
|
+
});
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (!connection._authPlugin) {
|
|
131
|
+
throw new Error(
|
|
132
|
+
'AuthPluginMoreData received but no auth plugin instance found'
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
Promise.resolve(connection._authPlugin(data))
|
|
136
|
+
.then((data) => {
|
|
137
|
+
if (data) {
|
|
138
|
+
connection.writePacket(new Packets.AuthSwitchResponse(data).toPacket());
|
|
139
|
+
}
|
|
140
|
+
})
|
|
141
|
+
.catch((err) => {
|
|
142
|
+
authSwitchPluginError(err, command);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
module.exports = {
|
|
147
|
+
authSwitchRequest,
|
|
148
|
+
authSwitchRequestMoreData,
|
|
149
|
+
getAuthPlugin,
|
|
150
|
+
standardAuthPlugins,
|
|
151
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Command = require('./command');
|
|
4
|
+
const Packets = require('../packets');
|
|
5
|
+
|
|
6
|
+
const eventParsers = [];
|
|
7
|
+
|
|
8
|
+
class BinlogEventHeader {
|
|
9
|
+
constructor(packet) {
|
|
10
|
+
this.timestamp = packet.readInt32();
|
|
11
|
+
this.eventType = packet.readInt8();
|
|
12
|
+
this.serverId = packet.readInt32();
|
|
13
|
+
this.eventSize = packet.readInt32();
|
|
14
|
+
this.logPos = packet.readInt32();
|
|
15
|
+
this.flags = packet.readInt16();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class BinlogDump extends Command {
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super();
|
|
22
|
+
// this.onResult = callback;
|
|
23
|
+
this.opts = opts;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
start(packet, connection) {
|
|
27
|
+
const newPacket = new Packets.BinlogDump(this.opts);
|
|
28
|
+
connection.writePacket(newPacket.toPacket(1));
|
|
29
|
+
return BinlogDump.prototype.binlogData;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
binlogData(packet) {
|
|
33
|
+
// ok - continue consuming events
|
|
34
|
+
// error - error
|
|
35
|
+
// eof - end of binlog
|
|
36
|
+
if (packet.isEOF()) {
|
|
37
|
+
this.emit('eof');
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
// binlog event header
|
|
41
|
+
packet.readInt8();
|
|
42
|
+
const header = new BinlogEventHeader(packet);
|
|
43
|
+
const EventParser = eventParsers[header.eventType];
|
|
44
|
+
let event;
|
|
45
|
+
if (EventParser) {
|
|
46
|
+
event = new EventParser(packet);
|
|
47
|
+
} else {
|
|
48
|
+
event = {
|
|
49
|
+
name: 'UNKNOWN',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
event.header = header;
|
|
53
|
+
this.emit('event', event);
|
|
54
|
+
return BinlogDump.prototype.binlogData;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
class RotateEvent {
|
|
59
|
+
constructor(packet) {
|
|
60
|
+
this.pposition = packet.readInt32();
|
|
61
|
+
// TODO: read uint64 here
|
|
62
|
+
packet.readInt32(); // positionDword2
|
|
63
|
+
this.nextBinlog = packet.readString();
|
|
64
|
+
this.name = 'RotateEvent';
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
class FormatDescriptionEvent {
|
|
69
|
+
constructor(packet) {
|
|
70
|
+
this.binlogVersion = packet.readInt16();
|
|
71
|
+
this.serverVersion = packet.readString(50).replace(/\u0000.*/, ''); // eslint-disable-line no-control-regex
|
|
72
|
+
this.createTimestamp = packet.readInt32();
|
|
73
|
+
this.eventHeaderLength = packet.readInt8(); // should be 19
|
|
74
|
+
this.eventsLength = packet.readBuffer();
|
|
75
|
+
this.name = 'FormatDescriptionEvent';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
class QueryEvent {
|
|
80
|
+
constructor(packet) {
|
|
81
|
+
const parseStatusVars = require('../packets/binlog_query_statusvars.js');
|
|
82
|
+
this.slaveProxyId = packet.readInt32();
|
|
83
|
+
this.executionTime = packet.readInt32();
|
|
84
|
+
const schemaLength = packet.readInt8();
|
|
85
|
+
this.errorCode = packet.readInt16();
|
|
86
|
+
const statusVarsLength = packet.readInt16();
|
|
87
|
+
const statusVars = packet.readBuffer(statusVarsLength);
|
|
88
|
+
this.schema = packet.readString(schemaLength);
|
|
89
|
+
packet.readInt8(); // should be zero
|
|
90
|
+
this.statusVars = parseStatusVars(statusVars);
|
|
91
|
+
this.query = packet.readString();
|
|
92
|
+
this.name = 'QueryEvent';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
class XidEvent {
|
|
97
|
+
constructor(packet) {
|
|
98
|
+
this.binlogVersion = packet.readInt16();
|
|
99
|
+
this.xid = packet.readInt64();
|
|
100
|
+
this.name = 'XidEvent';
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
eventParsers[2] = QueryEvent;
|
|
105
|
+
eventParsers[4] = RotateEvent;
|
|
106
|
+
eventParsers[15] = FormatDescriptionEvent;
|
|
107
|
+
eventParsers[16] = XidEvent;
|
|
108
|
+
|
|
109
|
+
module.exports = BinlogDump;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// This file was modified by Oracle on September 21, 2021.
|
|
2
|
+
// The changes involve saving additional authentication factor passwords
|
|
3
|
+
// in the command scope and enabling multi-factor authentication in the
|
|
4
|
+
// client-side when the server supports it.
|
|
5
|
+
// Modifications copyright (c) 2021, Oracle and/or its affiliates.
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
const Command = require('./command.js');
|
|
10
|
+
const Packets = require('../packets/index.js');
|
|
11
|
+
const ClientConstants = require('../constants/client');
|
|
12
|
+
const ClientHandshake = require('./client_handshake.js');
|
|
13
|
+
const CharsetToEncoding = require('../constants/charset_encodings.js');
|
|
14
|
+
|
|
15
|
+
class ChangeUser extends Command {
|
|
16
|
+
constructor(options, callback) {
|
|
17
|
+
super();
|
|
18
|
+
this.onResult = callback;
|
|
19
|
+
this.user = options.user;
|
|
20
|
+
this.password = options.password;
|
|
21
|
+
// "password1" is an alias of "password"
|
|
22
|
+
this.password1 = options.password;
|
|
23
|
+
this.password2 = options.password2;
|
|
24
|
+
this.password3 = options.password3;
|
|
25
|
+
this.database = options.database;
|
|
26
|
+
this.passwordSha1 = options.passwordSha1;
|
|
27
|
+
this.charsetNumber = options.charsetNumber;
|
|
28
|
+
this.currentConfig = options.currentConfig;
|
|
29
|
+
this.authenticationFactor = 0;
|
|
30
|
+
}
|
|
31
|
+
start(packet, connection) {
|
|
32
|
+
const newPacket = new Packets.ChangeUser({
|
|
33
|
+
flags: connection.config.clientFlags,
|
|
34
|
+
user: this.user,
|
|
35
|
+
database: this.database,
|
|
36
|
+
charsetNumber: this.charsetNumber,
|
|
37
|
+
password: this.password,
|
|
38
|
+
passwordSha1: this.passwordSha1,
|
|
39
|
+
authPluginData1: connection._handshakePacket.authPluginData1,
|
|
40
|
+
authPluginData2: connection._handshakePacket.authPluginData2,
|
|
41
|
+
});
|
|
42
|
+
this.currentConfig.user = this.user;
|
|
43
|
+
this.currentConfig.password = this.password;
|
|
44
|
+
this.currentConfig.database = this.database;
|
|
45
|
+
this.currentConfig.charsetNumber = this.charsetNumber;
|
|
46
|
+
connection.clientEncoding = CharsetToEncoding[this.charsetNumber];
|
|
47
|
+
// clear prepared statements cache as all statements become invalid after changeUser
|
|
48
|
+
connection._statements.clear();
|
|
49
|
+
connection.writePacket(newPacket.toPacket());
|
|
50
|
+
// check if the server supports multi-factor authentication
|
|
51
|
+
const multiFactorAuthentication =
|
|
52
|
+
connection.serverCapabilityFlags &
|
|
53
|
+
ClientConstants.MULTI_FACTOR_AUTHENTICATION;
|
|
54
|
+
if (multiFactorAuthentication) {
|
|
55
|
+
// if the server supports multi-factor authentication, we enable it in
|
|
56
|
+
// the client
|
|
57
|
+
this.authenticationFactor = 1;
|
|
58
|
+
}
|
|
59
|
+
return ChangeUser.prototype.handshakeResult;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ChangeUser.prototype.handshakeResult =
|
|
64
|
+
ClientHandshake.prototype.handshakeResult;
|
|
65
|
+
ChangeUser.prototype.calculateNativePasswordAuthToken =
|
|
66
|
+
ClientHandshake.prototype.calculateNativePasswordAuthToken;
|
|
67
|
+
|
|
68
|
+
module.exports = ChangeUser;
|