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,738 @@
|
|
|
1
|
+
// Copyright (c) 2022, 2025, Oracle and/or its affiliates.
|
|
2
|
+
|
|
3
|
+
//-----------------------------------------------------------------------------
|
|
4
|
+
//
|
|
5
|
+
// This software is dual-licensed to you under the Universal Permissive License
|
|
6
|
+
// (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
|
|
7
|
+
// 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
|
|
8
|
+
// either license.
|
|
9
|
+
//
|
|
10
|
+
// If you elect to accept the software under the Apache License, Version 2.0,
|
|
11
|
+
// the following applies:
|
|
12
|
+
//
|
|
13
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
+
// you may not use this file except in compliance with the License.
|
|
15
|
+
// You may obtain a copy of the License at
|
|
16
|
+
//
|
|
17
|
+
// https://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
+
//
|
|
19
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
20
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
+
// See the License for the specific language governing permissions and
|
|
23
|
+
// limitations under the License.
|
|
24
|
+
//
|
|
25
|
+
//-----------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
'use strict';
|
|
28
|
+
|
|
29
|
+
const PoolImpl = require('../impl/pool.js');
|
|
30
|
+
const ThinConnectionImpl = require('./connection.js');
|
|
31
|
+
const protocolUtil = require('./protocol/utils.js');
|
|
32
|
+
const errors = require('../errors.js');
|
|
33
|
+
const settings = require('../settings.js');
|
|
34
|
+
const util = require('../util.js');
|
|
35
|
+
const thinUtil = require('./util.js');
|
|
36
|
+
const {getConnectionInfo} = require('./sqlnet/networkSession.js');
|
|
37
|
+
const crypto = require('crypto');
|
|
38
|
+
const Timers = require('timers');
|
|
39
|
+
|
|
40
|
+
class ThinPoolImpl extends PoolImpl {
|
|
41
|
+
|
|
42
|
+
_init(params) {
|
|
43
|
+
if (!params.homogeneous) {
|
|
44
|
+
errors.throwErr(errors.ERR_NOT_IMPLEMENTED, 'Heterogeneous Pooling');
|
|
45
|
+
}
|
|
46
|
+
if (!params.connectString) {
|
|
47
|
+
errors.throwErr(errors.ERR_EMPTY_CONNECT_STRING);
|
|
48
|
+
}
|
|
49
|
+
thinUtil.checkCredentials(params);
|
|
50
|
+
|
|
51
|
+
this._availableObjects = [];
|
|
52
|
+
this._name = 'node-thin';
|
|
53
|
+
this._poolMin = params.poolMin;
|
|
54
|
+
this._poolMax = params.poolMax;
|
|
55
|
+
this._poolIncrement = params.poolIncrement;
|
|
56
|
+
this._poolTimeout = params.poolTimeout;
|
|
57
|
+
this._poolPingInterval = params.poolPingInterval;
|
|
58
|
+
this._poolPingTimeout = params.poolPingTimeout;
|
|
59
|
+
this._maxLifetimeSession = params.maxLifetimeSession || 0;
|
|
60
|
+
this._stmtCacheSize = params.stmtCacheSize;
|
|
61
|
+
|
|
62
|
+
// The user Config filterd from common layer is cached except
|
|
63
|
+
// sensitive data as sensitive data is obfuscated in the pool
|
|
64
|
+
// and de-obfuscated as necessary.
|
|
65
|
+
this._userConfig = params;
|
|
66
|
+
this._freeConnectionList = [];
|
|
67
|
+
this._usedConnectionList = new Set();
|
|
68
|
+
this._password = params.password;
|
|
69
|
+
this._walletPassword = params.walletPassword;
|
|
70
|
+
this._walletContent = params.walletContent;
|
|
71
|
+
this._obfuscatedPassword = [];
|
|
72
|
+
this._obfuscatedWalletPassword = [];
|
|
73
|
+
this._token = params.token;
|
|
74
|
+
this._obfuscatedToken = [];
|
|
75
|
+
this._privateKey = params.privateKey;
|
|
76
|
+
this._obfuscatedPrivateKey = [];
|
|
77
|
+
this._schedulerJob = null;
|
|
78
|
+
this._poolCloseWaiter = null;
|
|
79
|
+
this._pendingRequests = [];
|
|
80
|
+
this._connsToDrop = [];
|
|
81
|
+
this._bgCleaner = null;
|
|
82
|
+
this._poolCloseCleaner = null;
|
|
83
|
+
|
|
84
|
+
// password obfuscation
|
|
85
|
+
if (this._password !== undefined) {
|
|
86
|
+
const obj = protocolUtil.setObfuscatedValue(this._password);
|
|
87
|
+
this._password = obj.value;
|
|
88
|
+
this._obfuscatedPassword = obj.obfuscatedValue;
|
|
89
|
+
this._userConfig.password = null;
|
|
90
|
+
}
|
|
91
|
+
// wallet password obfuscation
|
|
92
|
+
if (this._walletPassword !== undefined) {
|
|
93
|
+
const obj = protocolUtil.setObfuscatedValue(this._walletPassword);
|
|
94
|
+
this._walletPassword = obj.value;
|
|
95
|
+
this._obfuscatedWalletPassword = obj.obfuscatedValue;
|
|
96
|
+
this._userConfig.walletPassword = null;
|
|
97
|
+
}
|
|
98
|
+
// wallet content obfuscation
|
|
99
|
+
if (this._walletContent !== undefined) {
|
|
100
|
+
const obj = protocolUtil.setObfuscatedValue(this._walletContent);
|
|
101
|
+
this._walletContent = obj.value;
|
|
102
|
+
this._obfuscatedWalletContent = obj.obfuscatedValue;
|
|
103
|
+
this._userConfig.walletConent = null;
|
|
104
|
+
}
|
|
105
|
+
// token obfuscation
|
|
106
|
+
if (this._token !== undefined) {
|
|
107
|
+
const obj = protocolUtil.setObfuscatedValue(this._token);
|
|
108
|
+
this._token = obj.value;
|
|
109
|
+
this._obfuscatedToken = obj.obfuscatedValue;
|
|
110
|
+
this._userConfig.token = null;
|
|
111
|
+
}
|
|
112
|
+
// privateKey obfuscation
|
|
113
|
+
if (this._privateKey !== undefined) {
|
|
114
|
+
const obj = protocolUtil.setObfuscatedValue(this._privateKey);
|
|
115
|
+
this._privateKey = obj.value;
|
|
116
|
+
this._obfuscatedPrivateKey = obj.obfuscatedValue;
|
|
117
|
+
this._userConfig.privateKey = null;
|
|
118
|
+
}
|
|
119
|
+
this._accessTokenFn = params.accessTokenFn;
|
|
120
|
+
this._accessTokenConfig = params.accessTokenConfig;
|
|
121
|
+
this._isDRCPEnabled = false;
|
|
122
|
+
this._implicitPool = null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
//---------------------------------------------------------------------------
|
|
126
|
+
// create pool with specified parameters and miminum number of connections as
|
|
127
|
+
// specified by poolMin
|
|
128
|
+
//---------------------------------------------------------------------------
|
|
129
|
+
async create(params) {
|
|
130
|
+
this._init(params);
|
|
131
|
+
this._userConfig._connInfo =
|
|
132
|
+
await getConnectionInfo(params);
|
|
133
|
+
this._isDRCPEnabled =
|
|
134
|
+
String(this._userConfig._connInfo[0]).toLowerCase() === 'pooled';
|
|
135
|
+
// generate connection class when none is provided by user
|
|
136
|
+
if (this._isDRCPEnabled && settings.connectionClass === '') {
|
|
137
|
+
this._generateConnectionClass();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// create a background task. It will create minimum connections in the pool
|
|
141
|
+
// and expand the pool as required.
|
|
142
|
+
this.bgThreadFunc();
|
|
143
|
+
// create a background task to remove connections that are to in
|
|
144
|
+
// _connsToDrop, reason for dropping may be poolTimeout or poolMax decrease
|
|
145
|
+
this._bgConnCleaner();
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
//---------------------------------------------------------------------------
|
|
149
|
+
// set new token and private key in pool
|
|
150
|
+
//---------------------------------------------------------------------------
|
|
151
|
+
setAccessToken(params) {
|
|
152
|
+
if (params.token) {
|
|
153
|
+
this._token = params.token;
|
|
154
|
+
const objToken = protocolUtil.setObfuscatedValue(this._token);
|
|
155
|
+
this._token = objToken.value;
|
|
156
|
+
this._obfuscatedToken = objToken.obfuscatedValue;
|
|
157
|
+
}
|
|
158
|
+
if (params.privateKey) {
|
|
159
|
+
this._privateKey = params.privateKey;
|
|
160
|
+
const objKey = protocolUtil.setObfuscatedValue(this._privateKey);
|
|
161
|
+
this._privateKey = objKey.value;
|
|
162
|
+
this._obfuscatedPrivateKey = objKey.obfuscatedValue;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
//---------------------------------------------------------------------------
|
|
167
|
+
// credentials are obfuscated and stored in an object(userConfig) during
|
|
168
|
+
// pool creation. _getConnAttrs() method is used to deobfuscate encrypted
|
|
169
|
+
// credentials for creating new connections
|
|
170
|
+
//---------------------------------------------------------------------------
|
|
171
|
+
async _getConnAttrs() {
|
|
172
|
+
let accessToken;
|
|
173
|
+
const clonedAttrs = Object.assign({}, this._userConfig);
|
|
174
|
+
// deobfuscate password
|
|
175
|
+
if (clonedAttrs.password === null) {
|
|
176
|
+
clonedAttrs.password = protocolUtil.getDeobfuscatedValue(this._password,
|
|
177
|
+
this._obfuscatedPassword);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// deobfuscate wallet password
|
|
181
|
+
if (clonedAttrs.walletPassword === null) {
|
|
182
|
+
clonedAttrs.walletPassword =
|
|
183
|
+
protocolUtil.getDeobfuscatedValue(this._walletPassword,
|
|
184
|
+
this._obfuscatedWalletPassword);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// deobfuscate wallet content
|
|
188
|
+
if (clonedAttrs.walletContent === null) {
|
|
189
|
+
clonedAttrs.walletContent =
|
|
190
|
+
protocolUtil.getDeobfuscatedValue(this._walletContent,
|
|
191
|
+
this._obfuscatedWalletContent);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// deobfuscate token and private key
|
|
195
|
+
// check for token expiry
|
|
196
|
+
if (clonedAttrs.token === null) {
|
|
197
|
+
clonedAttrs.token =
|
|
198
|
+
protocolUtil.getDeobfuscatedValue(this._token, this._obfuscatedToken);
|
|
199
|
+
if (util.isTokenExpired(clonedAttrs.token)) {
|
|
200
|
+
if (typeof this._accessTokenFn === 'function') {
|
|
201
|
+
try {
|
|
202
|
+
accessToken = await this._accessTokenFn(true, this._accessTokenConfig);
|
|
203
|
+
} catch (error) {
|
|
204
|
+
errors.throwWrapErr(error, errors.ERR_ACCESS_TOKEN);
|
|
205
|
+
}
|
|
206
|
+
if (typeof accessToken === 'string') {
|
|
207
|
+
clonedAttrs.token = accessToken;
|
|
208
|
+
if (util.isTokenExpired(clonedAttrs.token)) {
|
|
209
|
+
// OAuth2 token is expired
|
|
210
|
+
errors.throwErr(errors.ERR_TOKEN_HAS_EXPIRED);
|
|
211
|
+
} else {
|
|
212
|
+
// update pool with OAuth2 token
|
|
213
|
+
const obj = protocolUtil.setObfuscatedValue(clonedAttrs.token);
|
|
214
|
+
this._token = obj.value;
|
|
215
|
+
this._obfuscatedToken = obj.obfuscatedValue;
|
|
216
|
+
}
|
|
217
|
+
} else if (typeof accessToken === 'object') {
|
|
218
|
+
clonedAttrs.token = accessToken.token;
|
|
219
|
+
clonedAttrs.privateKey = util.denormalizePrivateKey(accessToken.privateKey);
|
|
220
|
+
if (util.isTokenExpired(clonedAttrs.token)) {
|
|
221
|
+
// IAM token is expired
|
|
222
|
+
errors.throwErr(errors.ERR_TOKEN_HAS_EXPIRED);
|
|
223
|
+
} else {
|
|
224
|
+
// update pool with IAM token and private key
|
|
225
|
+
const objToken = protocolUtil.setObfuscatedValue(clonedAttrs.token);
|
|
226
|
+
this._token = objToken.value;
|
|
227
|
+
this._obfuscatedToken = objToken.obfuscatedValue;
|
|
228
|
+
const objKey = protocolUtil.setObfuscatedValue(clonedAttrs.privateKey);
|
|
229
|
+
this._privateKey = objKey.value;
|
|
230
|
+
this._obfuscatedPrivateKey = objKey.obfuscatedValue;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
} else {
|
|
234
|
+
errors.throwErr(errors.ERR_TOKEN_HAS_EXPIRED);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
if (clonedAttrs.privateKey === null) {
|
|
239
|
+
clonedAttrs.privateKey =
|
|
240
|
+
protocolUtil.getDeobfuscatedValue(this._privateKey,
|
|
241
|
+
this._obfuscatedPrivateKey);
|
|
242
|
+
}
|
|
243
|
+
return clonedAttrs;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
//---------------------------------------------------------------------------
|
|
247
|
+
// return available connection if present in pool else
|
|
248
|
+
// create new connection and return it
|
|
249
|
+
//---------------------------------------------------------------------------
|
|
250
|
+
async getConnection() {
|
|
251
|
+
return await this.acquire();
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
//---------------------------------------------------------------------------
|
|
255
|
+
// destroy connection when pool close operation is called
|
|
256
|
+
//---------------------------------------------------------------------------
|
|
257
|
+
async _destroy(connection) {
|
|
258
|
+
try {
|
|
259
|
+
if (connection.nscon.ntAdapter.connected) {
|
|
260
|
+
connection._dropSess = true;
|
|
261
|
+
await connection.close();
|
|
262
|
+
}
|
|
263
|
+
} catch (err) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
//---------------------------------------------------------------------------
|
|
269
|
+
// close pool by destroying available connections
|
|
270
|
+
//---------------------------------------------------------------------------
|
|
271
|
+
async close() {
|
|
272
|
+
|
|
273
|
+
// wait till background task for pool expansion is finished; if it is not
|
|
274
|
+
// currently running, wake it up!
|
|
275
|
+
await new Promise((resolve) => {
|
|
276
|
+
this._poolCloseWaiter = resolve;
|
|
277
|
+
if (this.bgWaiter) {
|
|
278
|
+
this.bgWaiter();
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
// clear scheduled job
|
|
283
|
+
if (this._schedulerJob) {
|
|
284
|
+
clearTimeout(this._schedulerJob);
|
|
285
|
+
this._schedulerJob = null;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// destroy all free connections
|
|
289
|
+
for (const conn of this._freeConnectionList) {
|
|
290
|
+
await this._destroy(conn);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// destroy all used connections
|
|
294
|
+
for (const conn of this._usedConnectionList) {
|
|
295
|
+
await this._destroy(conn);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// Let the bgCleaner destroy all connsToDrop and stop
|
|
299
|
+
await new Promise((resolve) => {
|
|
300
|
+
this._poolCloseCleaner = resolve;
|
|
301
|
+
if (this._bgCleaner)
|
|
302
|
+
this._bgCleaner();
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
//---------------------------------------------------------------------------
|
|
307
|
+
// returns poolMax from configuration
|
|
308
|
+
//---------------------------------------------------------------------------
|
|
309
|
+
getPoolMax() {
|
|
310
|
+
return this._poolMax;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
//---------------------------------------------------------------------------
|
|
314
|
+
// returns poolMin from configuration
|
|
315
|
+
//---------------------------------------------------------------------------
|
|
316
|
+
getPoolMin() {
|
|
317
|
+
return this._poolMin;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
//---------------------------------------------------------------------------
|
|
321
|
+
// get number of used connection
|
|
322
|
+
//---------------------------------------------------------------------------
|
|
323
|
+
getConnectionsInUse() {
|
|
324
|
+
return this._usedConnectionList.size;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
//---------------------------------------------------------------------------
|
|
328
|
+
// get number of free connection
|
|
329
|
+
//---------------------------------------------------------------------------
|
|
330
|
+
getConnectionsOpen() {
|
|
331
|
+
return this._freeConnectionList.length + this._usedConnectionList.size;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
//---------------------------------------------------------------------------
|
|
335
|
+
// returns poolIncrement from configuration
|
|
336
|
+
//---------------------------------------------------------------------------
|
|
337
|
+
getPoolIncrement() {
|
|
338
|
+
return this._poolIncrement;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
//---------------------------------------------------------------------------
|
|
342
|
+
// returns maximum number of connections allowed per shard in the pool
|
|
343
|
+
//---------------------------------------------------------------------------
|
|
344
|
+
getPoolMaxPerShard() {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
//---------------------------------------------------------------------------
|
|
349
|
+
// returns the pool ping interval (seconds)
|
|
350
|
+
//---------------------------------------------------------------------------
|
|
351
|
+
getPoolPingInterval() {
|
|
352
|
+
return this._poolPingInterval;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
//---------------------------------------------------------------------------
|
|
356
|
+
// returns the pool ping Timeout (milliseconds)
|
|
357
|
+
//---------------------------------------------------------------------------
|
|
358
|
+
getPoolPingTimeout() {
|
|
359
|
+
return this._poolPingTimeout;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
//---------------------------------------------------------------------------
|
|
363
|
+
// returns the pool timeout
|
|
364
|
+
//---------------------------------------------------------------------------
|
|
365
|
+
getPoolTimeout() {
|
|
366
|
+
return this._poolTimeout;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
//---------------------------------------------------------------------------
|
|
370
|
+
// returns the pool max lifetime for a session (seconds)
|
|
371
|
+
//---------------------------------------------------------------------------
|
|
372
|
+
getMaxLifetimeSession() {
|
|
373
|
+
return this._maxLifetimeSession;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
//---------------------------------------------------------------------------
|
|
377
|
+
// returns whether the SODA metadata cache is enabled or not
|
|
378
|
+
//---------------------------------------------------------------------------
|
|
379
|
+
getSodaMetaDataCache() {
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
//---------------------------------------------------------------------------
|
|
384
|
+
// returns the statement cache size associate with the pool
|
|
385
|
+
//---------------------------------------------------------------------------
|
|
386
|
+
getStmtCacheSize() {
|
|
387
|
+
return this._stmtCacheSize;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
//---------------------------------------------------------------------------
|
|
391
|
+
// _setScheduler()
|
|
392
|
+
//
|
|
393
|
+
// set scheduler to scan and remove idle connections
|
|
394
|
+
//---------------------------------------------------------------------------
|
|
395
|
+
_setScheduler() {
|
|
396
|
+
if (!this._schedulerJob && this._poolTimeout > 0 &&
|
|
397
|
+
this._freeConnectionList.length > 0 &&
|
|
398
|
+
(this._freeConnectionList.length + this._usedConnectionList.size >
|
|
399
|
+
this._poolMin)) {
|
|
400
|
+
this._schedulerJob = setTimeout(() => {
|
|
401
|
+
this._scanIdleConnection();
|
|
402
|
+
}, this._poolTimeout * 1000);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
//---------------------------------------------------------------------------
|
|
407
|
+
// scanIdleConnection()
|
|
408
|
+
//
|
|
409
|
+
// scan connection list and removes idle connections from pool
|
|
410
|
+
//---------------------------------------------------------------------------
|
|
411
|
+
_scanIdleConnection() {
|
|
412
|
+
while ((this._usedConnectionList.size + this._freeConnectionList.length) >
|
|
413
|
+
this._poolMin && this._freeConnectionList.length > 0) {
|
|
414
|
+
const conn = this._freeConnectionList[0];
|
|
415
|
+
if (Date.now() - conn._lastTimeUsed < this._poolTimeout * 1000) {
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
this._connsToDrop.push(conn);
|
|
420
|
+
this._freeConnectionList.shift();
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// call cleaner for destroying connections added to _connsToDrop
|
|
424
|
+
if (this._bgCleaner)
|
|
425
|
+
this._bgCleaner();
|
|
426
|
+
this._schedulerJob = null;
|
|
427
|
+
this._setScheduler();
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
//---------------------------------------------------------------------------
|
|
431
|
+
// _getNumConnsToCreate()
|
|
432
|
+
//
|
|
433
|
+
// get number of connections need to be created
|
|
434
|
+
//---------------------------------------------------------------------------
|
|
435
|
+
_getNumConnsToCreate() {
|
|
436
|
+
const usedConns = this._freeConnectionList.length + this._usedConnectionList.size;
|
|
437
|
+
// less connections in the pool than poolMin? restore to poolMin
|
|
438
|
+
if (usedConns < this._poolMin) {
|
|
439
|
+
return this._poolMin - usedConns;
|
|
440
|
+
// connections need to be created? create up to poolIncrement without exceeding poolMax
|
|
441
|
+
} else if (this._pendingRequests.length > 0) {
|
|
442
|
+
return Math.min(this._poolIncrement, this._poolMax - usedConns);
|
|
443
|
+
// no pending requests and we are already at poolMin so nothing to do!
|
|
444
|
+
} else {
|
|
445
|
+
return 0;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
//---------------------------------------------------------------------------
|
|
450
|
+
// bgThreadFunc()
|
|
451
|
+
//
|
|
452
|
+
// method which runs in a background thread and is used to create connections.
|
|
453
|
+
// When first started, it creates poolMin connections. After that, it creates
|
|
454
|
+
// poolIncrement connections up to the value of poolMax when needed.
|
|
455
|
+
// The thread terminates automatically when the pool is closed.
|
|
456
|
+
//---------------------------------------------------------------------------
|
|
457
|
+
async bgThreadFunc() {
|
|
458
|
+
|
|
459
|
+
// continue until a close request is received
|
|
460
|
+
while (!this._poolCloseWaiter) {
|
|
461
|
+
|
|
462
|
+
const numToCreate = this._getNumConnsToCreate();
|
|
463
|
+
// connection creation is going on serially and not concurrently
|
|
464
|
+
for (let i = 0; i < numToCreate; i++) {
|
|
465
|
+
try {
|
|
466
|
+
// get deobfuscated value
|
|
467
|
+
const config = await this._getConnAttrs();
|
|
468
|
+
const conn = new ThinConnectionImpl();
|
|
469
|
+
conn._pool = this;
|
|
470
|
+
await conn.connect(config);
|
|
471
|
+
conn._newSession = true;
|
|
472
|
+
conn._dropSess = false;
|
|
473
|
+
conn._creationTime = Date.now();
|
|
474
|
+
conn._lastTimeUsed = Date.now();
|
|
475
|
+
this._freeConnectionList.push(conn);
|
|
476
|
+
} catch (err) {
|
|
477
|
+
this._bgErr = err;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
if (this._poolIncrement > 1 && (this._poolMax - this._usedConnectionList.size
|
|
481
|
+
- this._freeConnectionList.length) > 1) {
|
|
482
|
+
this._setScheduler();
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// resolve pending request
|
|
486
|
+
if (this._pendingRequests.length > 0) {
|
|
487
|
+
const payload = this._pendingRequests.shift();
|
|
488
|
+
payload.resolve();
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// give an opportunity for other "threads" to do their work.
|
|
492
|
+
await new Promise((resolve) => Timers.setImmediate(resolve));
|
|
493
|
+
|
|
494
|
+
// break loop when pool is closing
|
|
495
|
+
if (this._poolCloseWaiter) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
// when pool is closing, break from while loop
|
|
501
|
+
if (this._poolCloseWaiter) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// if no pending requests, wait for pending requests to appear!
|
|
506
|
+
if ((this._pendingRequests.length == 0 || this._bgErr) &&
|
|
507
|
+
this.getConnectionsOpen() >= this._poolMin) {
|
|
508
|
+
await new Promise((resolve) => {
|
|
509
|
+
this.bgWaiter = resolve;
|
|
510
|
+
});
|
|
511
|
+
this.bgWaiter = null;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
// notify the closer that the close can actually take place
|
|
516
|
+
this._poolCloseWaiter();
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
//---------------------------------------------------------------------------
|
|
520
|
+
// _bgConnCleaner()
|
|
521
|
+
// Method which stays in the stack and performs cleanup whenever a connection
|
|
522
|
+
// gets added for cleanup to _connsToDrop
|
|
523
|
+
// acquire a connection from connection pool
|
|
524
|
+
//---------------------------------------------------------------------------
|
|
525
|
+
async _bgConnCleaner() {
|
|
526
|
+
// run until a pool.close() is issued
|
|
527
|
+
while (!this._poolCloseCleaner) {
|
|
528
|
+
|
|
529
|
+
// wait for _bgCleaner to be called for cleanup
|
|
530
|
+
if (this._connsToDrop.length == 0)
|
|
531
|
+
await new Promise(resolve => this._bgCleaner = resolve);
|
|
532
|
+
|
|
533
|
+
// destroy connections in _connsToDrop
|
|
534
|
+
while (this._connsToDrop.length)
|
|
535
|
+
await this._destroy(this._connsToDrop.pop());
|
|
536
|
+
}
|
|
537
|
+
this._poolCloseCleaner();
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
//---------------------------------------------------------------------------
|
|
541
|
+
// acquire()
|
|
542
|
+
//
|
|
543
|
+
// acquire a connection from connection pool
|
|
544
|
+
//---------------------------------------------------------------------------
|
|
545
|
+
async acquire() {
|
|
546
|
+
|
|
547
|
+
// return first connection from the free list that passes health checks
|
|
548
|
+
while (this._freeConnectionList.length > 0) {
|
|
549
|
+
const conn = this._freeConnectionList.pop();
|
|
550
|
+
|
|
551
|
+
// drop from the pool if the connection is unhealthy, or if the
|
|
552
|
+
// connection's lifetime exceeds maxLifetimeSession
|
|
553
|
+
if (!this._shouldRetainInPool(conn)) {
|
|
554
|
+
this._invokeBgCleaner(conn);
|
|
555
|
+
continue;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// perform a ping, if necessary; a ping interval less than 0 disables
|
|
559
|
+
// pings; a ping interval of 0 forces a ping for each use of the
|
|
560
|
+
// connection and a value greater than 0 will be performed if the
|
|
561
|
+
// connection has not been used for that period of time; if the ping is
|
|
562
|
+
// unsuccessful, drop the connection from the pool
|
|
563
|
+
let requiresPing = false;
|
|
564
|
+
if (this._poolPingInterval === 0) {
|
|
565
|
+
requiresPing = true;
|
|
566
|
+
} else if (this._poolPingInterval > 0) {
|
|
567
|
+
const elapsed = Date.now() - conn._lastTimeUsed;
|
|
568
|
+
if (elapsed > this._poolPingInterval * 1000)
|
|
569
|
+
requiresPing = true;
|
|
570
|
+
}
|
|
571
|
+
if (requiresPing) {
|
|
572
|
+
let pingTimer;
|
|
573
|
+
try {
|
|
574
|
+
if (this._poolPingTimeout) {
|
|
575
|
+
pingTimer = setTimeout(() => {
|
|
576
|
+
// force disconnect causes ping task to unblock
|
|
577
|
+
// and return.
|
|
578
|
+
conn.nscon.forceDisconnect();
|
|
579
|
+
}, this._poolPingTimeout);
|
|
580
|
+
}
|
|
581
|
+
await conn.ping();
|
|
582
|
+
} catch {
|
|
583
|
+
conn.nscon.forceDisconnect();
|
|
584
|
+
continue;
|
|
585
|
+
} finally {
|
|
586
|
+
clearTimeout(pingTimer);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// connection has passed health checks, return it immediately
|
|
591
|
+
this._usedConnectionList.add(conn);
|
|
592
|
+
return conn;
|
|
593
|
+
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// no free connections exist at this point; if less than poolMin
|
|
597
|
+
// connections exist, grow the pool to poolMin again; otherwise, increase
|
|
598
|
+
// the pool by poolIncrement up to poolMax. We are deferring this
|
|
599
|
+
// to the background thread function!
|
|
600
|
+
await new Promise((resolve) => {
|
|
601
|
+
this._pendingRequests.push({resolve: resolve});
|
|
602
|
+
if (this.bgWaiter) {
|
|
603
|
+
// this wakes up the function to do some more work
|
|
604
|
+
this.bgWaiter();
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
if (this._bgErr) {
|
|
609
|
+
const err = this._bgErr;
|
|
610
|
+
this._bgErr = null;
|
|
611
|
+
|
|
612
|
+
// if an error has occurred in the background thread we clear it and then,
|
|
613
|
+
// if there are more pending requests we request the background thread
|
|
614
|
+
// function to try again.
|
|
615
|
+
if (this._pendingRequests.length > 0 && this.bgWaiter) {
|
|
616
|
+
this.bgWaiter();
|
|
617
|
+
}
|
|
618
|
+
throw err;
|
|
619
|
+
}
|
|
620
|
+
// return a connection from the ones that were just built
|
|
621
|
+
const conn = this._freeConnectionList.pop();
|
|
622
|
+
this._usedConnectionList.add(conn);
|
|
623
|
+
return conn;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
// release connection to connection pool
|
|
627
|
+
release(conn) {
|
|
628
|
+
conn.warning = undefined;
|
|
629
|
+
this._usedConnectionList.delete(conn);
|
|
630
|
+
if (conn.nscon.connected) {
|
|
631
|
+
conn._lastTimeUsed = Date.now();
|
|
632
|
+
conn._newSession = false;
|
|
633
|
+
if ((this.getConnectionsOpen() < this._poolMax) &&
|
|
634
|
+
this._shouldRetainInPool(conn)) {
|
|
635
|
+
this._freeConnectionList.push(conn);
|
|
636
|
+
} else {
|
|
637
|
+
this._invokeBgCleaner(conn);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
this._setScheduler();
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
//---------------------------------------------------------------------------
|
|
645
|
+
// _generateConnectionClass()
|
|
646
|
+
//
|
|
647
|
+
// generate connection class for drcp if none is provided by user
|
|
648
|
+
//---------------------------------------------------------------------------
|
|
649
|
+
_generateConnectionClass() {
|
|
650
|
+
this._userConfig.connectionClass = crypto.randomBytes(16).toString('base64');
|
|
651
|
+
this._userConfig.connectionClass = "NJS:" + this._userConfig.connectionClass;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
//---------------------------------------------------------------------------
|
|
655
|
+
// reconfigure()
|
|
656
|
+
//
|
|
657
|
+
// Reconfigures the pool with new parameters
|
|
658
|
+
//---------------------------------------------------------------------------
|
|
659
|
+
reconfigure(params) {
|
|
660
|
+
if (params.poolIncrement !== undefined) {
|
|
661
|
+
this._poolIncrement = params.poolIncrement;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
if (params.poolTimeout !== undefined &&
|
|
665
|
+
this._poolTimeout !== params.poolTimeout) {
|
|
666
|
+
this._poolTimeout = params.poolTimeout;
|
|
667
|
+
// clear scheduled job
|
|
668
|
+
if (this._schedulerJob) {
|
|
669
|
+
clearTimeout(this._schedulerJob);
|
|
670
|
+
this._schedulerJob = null;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
if (params.poolPingInterval !== undefined) {
|
|
675
|
+
this._poolPingInterval = params.poolPingInterval;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if (params.stmtCacheSize !== undefined) {
|
|
679
|
+
this._stmtCacheSize = params.stmtCacheSize;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
if (params.poolMax !== undefined) {
|
|
683
|
+
this._poolMax = params.poolMax;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
if (params.poolMin !== undefined) {
|
|
687
|
+
this._poolMin = params.poolMin;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
if (params.maxLifetimeSession !== undefined) {
|
|
691
|
+
this._maxLifetimeSession = params.maxLifetimeSession;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
let numToDestroy = this.getConnectionsOpen() - this._poolMax;
|
|
695
|
+
while (this._freeConnectionList.length && numToDestroy > 0) {
|
|
696
|
+
const conn = this._freeConnectionList.pop();
|
|
697
|
+
this._connsToDrop.push(conn);
|
|
698
|
+
numToDestroy--;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
// call cleanup for destroying connections in _connsToDrop
|
|
702
|
+
if (this._bgCleaner)
|
|
703
|
+
this._bgCleaner();
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
//---------------------------------------------------------------------------
|
|
707
|
+
// _invokeBgCleaner()
|
|
708
|
+
//
|
|
709
|
+
// drop conn and invoke the bgCleaner while also ensuring min connections
|
|
710
|
+
//---------------------------------------------------------------------------
|
|
711
|
+
_invokeBgCleaner(conn) {
|
|
712
|
+
this._connsToDrop.push(conn);
|
|
713
|
+
if (this._bgCleaner)
|
|
714
|
+
this._bgCleaner();
|
|
715
|
+
|
|
716
|
+
// ensure min connections are maintained in pool
|
|
717
|
+
if ((this.getConnectionsOpen() < this._poolMin) && this.bgWaiter)
|
|
718
|
+
this.bgWaiter();
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
//---------------------------------------------------------------------------
|
|
722
|
+
// _shouldRetainInPool()
|
|
723
|
+
//
|
|
724
|
+
// returns true if the connection should be retained in pool
|
|
725
|
+
//---------------------------------------------------------------------------
|
|
726
|
+
_shouldRetainInPool(conn) {
|
|
727
|
+
if (!conn.isHealthy())
|
|
728
|
+
return false;
|
|
729
|
+
// check if maxLifetimeSession of conn has expired
|
|
730
|
+
if (this._maxLifetimeSession !== 0) {
|
|
731
|
+
if ((Date.now() - conn._creationTime) > (this._maxLifetimeSession * 1000))
|
|
732
|
+
return false;
|
|
733
|
+
}
|
|
734
|
+
return true;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
module.exports = ThinPoolImpl;
|