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,439 @@
|
|
|
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 Buffer = require("buffer").Buffer;
|
|
30
|
+
const constants = require("./constants.js");
|
|
31
|
+
const errors = require("../../errors.js");
|
|
32
|
+
const MAX_CDATA_LEN = 230;
|
|
33
|
+
const NSPCNL = 74;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Connect Packet (NSPTCN)
|
|
37
|
+
* @param {Buffer} connectData Outgoing Connect Data
|
|
38
|
+
* @param {Object} sAtts Session Attributes
|
|
39
|
+
*/
|
|
40
|
+
function ConnectPacket(connectData, sAtts, flags = 0) {
|
|
41
|
+
this.connectData = connectData;
|
|
42
|
+
this.connectDataLen = connectData.length;
|
|
43
|
+
this.overflow = false;
|
|
44
|
+
|
|
45
|
+
let size;
|
|
46
|
+
|
|
47
|
+
if (this.connectDataLen <= MAX_CDATA_LEN) {
|
|
48
|
+
size = NSPCNL + this.connectDataLen;
|
|
49
|
+
} else {
|
|
50
|
+
size = NSPCNL;
|
|
51
|
+
this.overflow = true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Building Connect Packet */
|
|
55
|
+
this.buf = Buffer.allocUnsafe(size).fill(0);
|
|
56
|
+
this.buf.writeUInt16BE(size, constants.NSPHDLEN);
|
|
57
|
+
this.buf.writeUInt8(flags, constants.NSPHDFLGS);
|
|
58
|
+
this.buf.writeUInt8(constants.NSPTCN, constants.NSPHDTYP);
|
|
59
|
+
|
|
60
|
+
this.buf.writeUInt16BE(
|
|
61
|
+
constants.TNS_VERSION_DESIRED,
|
|
62
|
+
constants.NSPCNVSN
|
|
63
|
+
); /* My version */
|
|
64
|
+
this.buf.writeUInt16BE(
|
|
65
|
+
constants.TNS_VERSION_MINIMUM,
|
|
66
|
+
constants.NSPCNLOV
|
|
67
|
+
); /* Lowest version*/
|
|
68
|
+
|
|
69
|
+
/* Options:
|
|
70
|
+
Note : Node JS does not support TCP Out-of-band so not setting NSGSENDATTN or NSGRECVATTN
|
|
71
|
+
*/
|
|
72
|
+
const options = constants.NSGDONTCARE;
|
|
73
|
+
//options = options | constants.NSGUSEVIO /* Vectored I/O support.Uncomment when support is added */
|
|
74
|
+
this.buf.writeUInt16BE(options, constants.NSPCNOPT);
|
|
75
|
+
|
|
76
|
+
/* SDU */
|
|
77
|
+
if (sAtts.sdu > constants.NSPMXSDULN) {
|
|
78
|
+
this.buf.writeUInt16BE(constants.NSPMXSDULN, constants.NSPCNSDU);
|
|
79
|
+
} else {
|
|
80
|
+
this.buf.writeUInt16BE(sAtts.sdu, constants.NSPCNSDU);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* TDU */
|
|
84
|
+
if (sAtts.tdu > constants.NSPMXSDULN) {
|
|
85
|
+
this.buf.writeUInt16BE(constants.NSPMXSDULN, constants.NSPCNTDU);
|
|
86
|
+
} else {
|
|
87
|
+
this.buf.writeUInt16BE(sAtts.tdu, constants.NSPCNTDU);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
this.buf.writeUInt16BE(
|
|
91
|
+
sAtts.ntCha,
|
|
92
|
+
constants.NSPCNNTC
|
|
93
|
+
); /* Protocol characteristics */
|
|
94
|
+
|
|
95
|
+
this.buf.writeUInt16BE(
|
|
96
|
+
1,
|
|
97
|
+
constants.NSPCNONE
|
|
98
|
+
); /* Endianness does not matter for Node */
|
|
99
|
+
|
|
100
|
+
this.buf.writeUInt16BE(
|
|
101
|
+
this.connectDataLen,
|
|
102
|
+
constants.NSPCNLEN
|
|
103
|
+
); /* Connect data Length */
|
|
104
|
+
|
|
105
|
+
this.buf.writeUInt16BE(
|
|
106
|
+
constants.NSPCNDAT,
|
|
107
|
+
constants.NSPCNOFF
|
|
108
|
+
); /* Connect data offset */
|
|
109
|
+
|
|
110
|
+
this.buf.writeUInt8(
|
|
111
|
+
sAtts.NAFlags,
|
|
112
|
+
constants.NSPCNFL0
|
|
113
|
+
); /* NA disabled */
|
|
114
|
+
|
|
115
|
+
this.buf.writeUInt8(
|
|
116
|
+
sAtts.NAFlags,
|
|
117
|
+
constants.NSPCNFL1
|
|
118
|
+
); /* NA disabled *
|
|
119
|
+
|
|
120
|
+
/* Connection Pool is not supported */
|
|
121
|
+
this.buf.writeUInt16BE(0, constants.NSPCNTMO);
|
|
122
|
+
this.buf.writeUInt16BE(0, constants.NSPCNTCK);
|
|
123
|
+
this.buf.writeUInt16BE(0, constants.NSPCNADL);
|
|
124
|
+
this.buf.writeUInt16BE(0, constants.NSPCNAOF);
|
|
125
|
+
|
|
126
|
+
this.buf.writeUInt32BE(sAtts.sdu, constants.NSPCNLSD); /* SDU */
|
|
127
|
+
this.buf.writeUInt32BE(sAtts.tdu, constants.NSPCNLTD); /* TDU */
|
|
128
|
+
let compressionFieldBuilder = 0; // we will be using just the last 2 bytes
|
|
129
|
+
/*
|
|
130
|
+
* For the 2 byte field, the first bit represent ON/OFF , second is empty
|
|
131
|
+
* After that every 4 bits represent a value in the user preference of sch
|
|
132
|
+
eme
|
|
133
|
+
* scheme values are 1 = LZO, 2 = ZLIB, 3 = GZIP ( only ZLIB supported in node-oracledb) */
|
|
134
|
+
|
|
135
|
+
if (sAtts.networkCompression) {
|
|
136
|
+
compressionFieldBuilder = constants.NSPACCFON << 8 ; // set the ON bit
|
|
137
|
+
const schemeShiftCounter = 10; // shifting by 10 puts the 4 bit field in the right place
|
|
138
|
+
if (sAtts.networkCompressionLevels.includes('high'))
|
|
139
|
+
compressionFieldBuilder |= constants.NETWORK_COMPRESSION_ZLIB << schemeShiftCounter;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
this.buf.writeUInt16BE(compressionFieldBuilder, constants.NSPCNCFL); /* Compression field added */
|
|
143
|
+
|
|
144
|
+
this.buf.writeUInt32BE(
|
|
145
|
+
0,
|
|
146
|
+
constants.NSPCNCFL2
|
|
147
|
+
); /* No OOB path check support */
|
|
148
|
+
|
|
149
|
+
if (!this.overflow && this.connectDataLen) {
|
|
150
|
+
this.buf.write(connectData.toString('ascii'), constants.NSPCNDAT, this.connectDataLen, "ascii");
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Data Pakcet (NSPTDA)
|
|
156
|
+
* @param {int} size of Data Packet
|
|
157
|
+
* @param {boolean} isLargeSDU Large SDU
|
|
158
|
+
*/
|
|
159
|
+
function DataPacket(isLargeSDU) {
|
|
160
|
+
this.dataPtr = 0; /* data offset start */
|
|
161
|
+
this.dataLen = 0; /* data offset end */
|
|
162
|
+
this.offset = 0; /* Offset for buffer read/write (fastpath) */
|
|
163
|
+
this.len = 0; /* Length of buffer read/write (fastpath) */
|
|
164
|
+
this.bufLen = 0; /* Length of buffer */
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Create the Data Packet(Internal)
|
|
168
|
+
*/
|
|
169
|
+
this.createPacket = function(len) {
|
|
170
|
+
/* Building Data Packet */
|
|
171
|
+
this.dataPtr = constants.NSPDADAT;
|
|
172
|
+
this.dataLen = constants.NSPDADAT;
|
|
173
|
+
this.buf = Buffer.allocUnsafe(len).fill(0);
|
|
174
|
+
this.buf.writeUInt8(0, constants.NSPHDFLGS);
|
|
175
|
+
this.buf.writeUInt8(constants.NSPTDA, constants.NSPHDTYP);
|
|
176
|
+
this.bufLen = len; /* Length of buffer */
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Populate the Data Packet
|
|
181
|
+
* @param {Buffer} userbuf User Buffer
|
|
182
|
+
* @param {int} offset from which to fill data
|
|
183
|
+
* @param {int} len length of data
|
|
184
|
+
* @returns number of bytes copied
|
|
185
|
+
*/
|
|
186
|
+
this.fillBuf = function(userbuf, offset, len, flags = 0) {
|
|
187
|
+
let bytes2Copy;
|
|
188
|
+
|
|
189
|
+
if (!this.buf) {
|
|
190
|
+
this.createPacket(len + constants.NSPDADAT); //Currently NS data packets are being used only in the connect/disconnect phase
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (len > this.bufLen - this.dataLen) {
|
|
194
|
+
bytes2Copy = this.bufLen - this.dataLen;
|
|
195
|
+
} else {
|
|
196
|
+
bytes2Copy = len;
|
|
197
|
+
}
|
|
198
|
+
if (bytes2Copy) {
|
|
199
|
+
userbuf.copy(this.buf, this.dataLen, offset, offset + bytes2Copy);
|
|
200
|
+
}
|
|
201
|
+
this.dataLen += bytes2Copy;
|
|
202
|
+
|
|
203
|
+
this.prepare2Send(flags);
|
|
204
|
+
|
|
205
|
+
return bytes2Copy;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Prepare Data Packet for send
|
|
210
|
+
* @param {int} flags Data flags
|
|
211
|
+
*/
|
|
212
|
+
this.prepare2Send = function(flags = 0) {
|
|
213
|
+
if (isLargeSDU) {
|
|
214
|
+
this.buf.writeUInt32BE(this.dataLen, constants.NSPHDLEN);
|
|
215
|
+
} else {
|
|
216
|
+
this.buf.writeUInt16BE(this.dataLen, constants.NSPHDLEN);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
this.buf.writeUInt16BE(flags, constants.NSPDAFLG);
|
|
220
|
+
this.dataBuf = this.buf.subarray(0, this.dataLen);
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Construct Data Packet from receive data
|
|
225
|
+
* @param {Packet} packet NS packet
|
|
226
|
+
*/
|
|
227
|
+
this.fromPacket = function(packet) {
|
|
228
|
+
this.buf = packet.buf;
|
|
229
|
+
this.dataLen = packet.buf.length;
|
|
230
|
+
this.dataPtr = constants.NSPDADAT;
|
|
231
|
+
this.offset = this.dataPtr;
|
|
232
|
+
this.len = this.dataLen;
|
|
233
|
+
packet.dataOffset = this.dataPtr;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Accept Packet (NSPTAC)
|
|
239
|
+
* @param {Packet} packet NS packet
|
|
240
|
+
* @param {*} sAtts session Attributes
|
|
241
|
+
*/
|
|
242
|
+
function AcceptPacket(packet, sAtts) {
|
|
243
|
+
this.buf = packet.buf;
|
|
244
|
+
this.len = packet.buf.length;
|
|
245
|
+
|
|
246
|
+
/* Set negotiated values */
|
|
247
|
+
sAtts.version = packet.buf.readUInt16BE(constants.NSPACVSN);
|
|
248
|
+
sAtts.options = packet.buf.readUInt16BE(constants.NSPACOPT);
|
|
249
|
+
sAtts.sdu = packet.buf.readUInt16BE(constants.NSPACSDU);
|
|
250
|
+
sAtts.tdu = packet.buf.readUInt16BE(constants.NSPACTDU);
|
|
251
|
+
|
|
252
|
+
if (sAtts.version >= 315) {
|
|
253
|
+
/* Large SDU Support */
|
|
254
|
+
sAtts.sdu = packet.buf.readUInt32BE(constants.NSPACLSD);
|
|
255
|
+
sAtts.tdu = packet.buf.readUInt32BE(constants.NSPACLTD);
|
|
256
|
+
sAtts.largeSDU = true;
|
|
257
|
+
this.cflag = packet.buf.readUInt8(constants.NSPACCFL); // 00001000
|
|
258
|
+
if ((this.cflag & constants.NSPACCFON) != 0) { // compression ON
|
|
259
|
+
sAtts.negotiatedNetworkCompressionScheme = (this.cflag & 0x3c) >> 2; // 0x3c
|
|
260
|
+
sAtts.networkCompressionEnabled = true;
|
|
261
|
+
sAtts.firstRecvCompressedPacket = true;
|
|
262
|
+
sAtts.firstSendCompressedPacket = true;
|
|
263
|
+
} else {
|
|
264
|
+
sAtts.networkCompressionEnabled = false;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* Accept flags */
|
|
269
|
+
this.flag0 = packet.buf.readUInt8(constants.NSPACFL0);
|
|
270
|
+
this.flag1 = packet.buf.readUInt8(constants.NSPACFL1);
|
|
271
|
+
|
|
272
|
+
sAtts.noNA = ((this.flag1 & constants.NSINANOSERVICES) == constants.NSINANOSERVICES);
|
|
273
|
+
if (!sAtts.noNA)
|
|
274
|
+
sAtts.noNA = ((this.flag0 & constants.NSINADISABLEDFORCONNECTION) == constants.NSINADISABLEDFORCONNECTION);
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
if (sAtts.version >= constants.TNS_VERSION_MIN_DATA_FLAGS) {
|
|
278
|
+
packet.flags = packet.buf.readUInt32BE(constants.NSPACFL2);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Refuse Packet
|
|
284
|
+
* @param {*} packet NS packet
|
|
285
|
+
*/
|
|
286
|
+
function RefusePacket(packet) {
|
|
287
|
+
this.buf = packet.buf;
|
|
288
|
+
this.len = packet.buf.length;
|
|
289
|
+
this.userReason = packet.buf.readUInt8(constants.NSPRFURS);
|
|
290
|
+
this.systemReason = packet.buf.readUInt8(constants.NSPRFURS);
|
|
291
|
+
this.dataLen = packet.buf.readUInt16BE(constants.NSPRFLEN);
|
|
292
|
+
this.dataOff = constants.NSPRFDAT;
|
|
293
|
+
|
|
294
|
+
if (this.len > this.dataOff) {
|
|
295
|
+
this.dataBuf = this.buf.toString('ascii', this.dataOff, this.len);
|
|
296
|
+
this.overflow = false;
|
|
297
|
+
} else {
|
|
298
|
+
this.overflow = true;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Redirect Packet (NSPTRD)
|
|
304
|
+
* @param {*} packet NS packet
|
|
305
|
+
*/
|
|
306
|
+
function RedirectPacket(packet) {
|
|
307
|
+
this.buf = packet.buf;
|
|
308
|
+
this.len = packet.buf.length;
|
|
309
|
+
this.flags = packet.flags;
|
|
310
|
+
this.dataLen = packet.buf.readUInt16BE(constants.NSPRDLEN);
|
|
311
|
+
this.dataOff = constants.NSPRDDAT;
|
|
312
|
+
|
|
313
|
+
if (this.len > this.dataOff) {
|
|
314
|
+
this.dataBuf = this.buf.subarray(this.dataOff, this.len);
|
|
315
|
+
this.overflow = false;
|
|
316
|
+
} else {
|
|
317
|
+
this.overflow = true;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Marker Packet (NSPTMK)
|
|
323
|
+
* @param {int} isLargeSDU Large SDU
|
|
324
|
+
*/
|
|
325
|
+
function MarkerPacket(isLargeSDU) {
|
|
326
|
+
this.len = constants.NSPMKDAT + 1; /* Packet length */
|
|
327
|
+
|
|
328
|
+
// Packet Buffer
|
|
329
|
+
this.buf = Buffer.allocUnsafe(constants.NSPMKDAT + 1).fill(0);
|
|
330
|
+
|
|
331
|
+
if (isLargeSDU) {
|
|
332
|
+
this.buf.writeUInt32BE(this.len, constants.NSPHDLEN);
|
|
333
|
+
} else {
|
|
334
|
+
this.buf.writeUInt16BE(this.len, constants.NSPHDLEN);
|
|
335
|
+
}
|
|
336
|
+
this.buf.writeUInt8(0, constants.NSPHDFLGS);
|
|
337
|
+
this.buf.writeUInt8(constants.NSPTMK, constants.NSPHDTYP);
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Prepare Marker packet for write
|
|
341
|
+
* @param {Uint8} type of Marker
|
|
342
|
+
* @param {Uint8} data Marker byte
|
|
343
|
+
*/
|
|
344
|
+
this.prepare = function(type, data) {
|
|
345
|
+
this.buf.writeUInt8(type, constants.NSPMKTYP);
|
|
346
|
+
this.buf.writeUInt8(data, constants.NSPMKDAT);
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Marker Packet receive
|
|
351
|
+
* @param {Packet} packet NS packet
|
|
352
|
+
* @param {NetworkSession} nsi Network Session
|
|
353
|
+
*/
|
|
354
|
+
this.fromPacket = function(packet, nsi) {
|
|
355
|
+
this.type = packet.buf.readUInt8(constants.NSPMKTYP);
|
|
356
|
+
|
|
357
|
+
switch (this.type) {
|
|
358
|
+
case constants.NSPMKTD0:
|
|
359
|
+
nsi.isBreak = true;
|
|
360
|
+
break;
|
|
361
|
+
case constants.NSPMKTD1:
|
|
362
|
+
this.data = packet.buf.readUInt8(constants.NSPMKDAT);
|
|
363
|
+
nsi.isBreak = true;
|
|
364
|
+
if (this.data == constants.NIQRMARK) {
|
|
365
|
+
nsi.isReset = true;
|
|
366
|
+
nsi.isBreak = true;
|
|
367
|
+
}
|
|
368
|
+
break;
|
|
369
|
+
default:
|
|
370
|
+
errors.throwErr(errors.ERR_INVALID_PACKET);
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Control Packet NSPTCTL
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
function ControlPacket() {
|
|
380
|
+
/**
|
|
381
|
+
* Clear(reset) the packet
|
|
382
|
+
*/
|
|
383
|
+
this.clear = function() {
|
|
384
|
+
this.errno = 0;
|
|
385
|
+
this.notif = null;
|
|
386
|
+
this.notifLen = 0;
|
|
387
|
+
this.cmd = 0;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Control Packet receive
|
|
392
|
+
* @param {*} packet NS packet
|
|
393
|
+
*/
|
|
394
|
+
this.fromPacket = function(packet) {
|
|
395
|
+
const NSECMANSHUT = 12572; // CMAN SHUTDOWN
|
|
396
|
+
const NSESENDMESG = 12573; // SEND MESSAGE
|
|
397
|
+
const ORA_ERROR_EMFI_NUMBER = 22; //ORA -error
|
|
398
|
+
let emfi;
|
|
399
|
+
let err1;
|
|
400
|
+
let err2;
|
|
401
|
+
|
|
402
|
+
this.cmd = packet.buf.readUInt16BE(constants.NSPCTLCMD);
|
|
403
|
+
switch (this.cmd) {
|
|
404
|
+
case constants.NSPCTL_SERR:
|
|
405
|
+
emfi = packet.buf.readUInt32BE(constants.NSPCTLDAT);
|
|
406
|
+
err1 = packet.buf.readUInt32BE(constants.NSPCTLDAT + 4);
|
|
407
|
+
err2 = packet.buf.readUInt32BE(constants.NSPCTLDAT + 8);
|
|
408
|
+
|
|
409
|
+
if (err1 == NSECMANSHUT) {
|
|
410
|
+
this.errno = err1;
|
|
411
|
+
} else if (err1 == NSESENDMESG) {
|
|
412
|
+
this.errno = err1;
|
|
413
|
+
this.notifLen = err2;
|
|
414
|
+
this.notif = Buffer.allocUnsafe(err2 + 1).fill(0);
|
|
415
|
+
this.buf.copy(this.notif, 0, constants.NSPCTLDAT + 12, constants.NSPCTLDAT + 12 + err2);
|
|
416
|
+
} else {
|
|
417
|
+
this.errno = err1;
|
|
418
|
+
if (emfi == ORA_ERROR_EMFI_NUMBER) {
|
|
419
|
+
errors.throwErr(errors.ERR_CONNECTION_INBAND, "ORA" + "-" + err1);
|
|
420
|
+
} else {
|
|
421
|
+
errors.throwErr(errors.ERR_CONNECTION_INBAND, "TNS" + "-" + err1);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
break;
|
|
425
|
+
default:
|
|
426
|
+
errors.throwErr(errors.ERR_INVALID_PACKET);
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
module.exports = {
|
|
432
|
+
ConnectPacket,
|
|
433
|
+
DataPacket,
|
|
434
|
+
AcceptPacket,
|
|
435
|
+
RefusePacket,
|
|
436
|
+
RedirectPacket,
|
|
437
|
+
MarkerPacket,
|
|
438
|
+
ControlPacket
|
|
439
|
+
};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
// Copyright (c) 2022, 2024, 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 {createNVPair} = require("./nvStrToNvPair.js");
|
|
30
|
+
const fs = require('fs');
|
|
31
|
+
const process = require('process');
|
|
32
|
+
const readline = require('readline');
|
|
33
|
+
const errors = require("../../errors.js");
|
|
34
|
+
|
|
35
|
+
const MAX_IFILE_DEPTH = 4;
|
|
36
|
+
/**
|
|
37
|
+
* Returns File path of the tnsnames.ora if it exists.
|
|
38
|
+
*/
|
|
39
|
+
function tnsnamesFilePath(configDir) {
|
|
40
|
+
let filePathVal = null;
|
|
41
|
+
const tnsAdminVal = process.env.TNS_ADMIN;
|
|
42
|
+
if (configDir) {
|
|
43
|
+
filePathVal = configDir + '/tnsnames.ora';
|
|
44
|
+
if (fs.existsSync(filePathVal)) {
|
|
45
|
+
return filePathVal;
|
|
46
|
+
} else {
|
|
47
|
+
errors.throwErr(errors.ERR_TNS_NAMES_FILE_MISSING, configDir);
|
|
48
|
+
}
|
|
49
|
+
} else {
|
|
50
|
+
if (!tnsAdminVal) {
|
|
51
|
+
errors.throwErr(errors.ERR_NO_CONFIG_DIR);
|
|
52
|
+
} else {
|
|
53
|
+
filePathVal = tnsAdminVal;
|
|
54
|
+
filePathVal += '/tnsnames.ora';
|
|
55
|
+
if (!fs.existsSync(filePathVal)) {
|
|
56
|
+
errors.throwErr(errors.ERR_TNS_NAMES_FILE_MISSING, tnsAdminVal);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return filePathVal;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//Structure for each tnsnames.ora file
|
|
63
|
+
class tnsnamesElement {
|
|
64
|
+
|
|
65
|
+
constructor() {
|
|
66
|
+
this.readInProgress = false;
|
|
67
|
+
this.waiters = [];
|
|
68
|
+
this.aliasht = new Map(); // It will have key as alias and value as its aliases value
|
|
69
|
+
this.modTime = new Map(); // It will have tnsnames filename and also all its ifile and its modified time
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
class NLParamParser {
|
|
73
|
+
|
|
74
|
+
constructor() {
|
|
75
|
+
// key as tnsnames.ora(file_name) and value will be tnsnamesStruct<ht(alias key and value), modTime>
|
|
76
|
+
this.tnsnamesHT = new Map();
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Reads the given file line by line and stores the
|
|
80
|
+
* network service names mapped to connect descriptors in the hashtable.
|
|
81
|
+
* @param {string} file_path
|
|
82
|
+
* @returns {Promise}
|
|
83
|
+
*/
|
|
84
|
+
async initializeNlpa(file_path) {
|
|
85
|
+
let tnsFileStruct;
|
|
86
|
+
if (this.tnsnamesHT.has(file_path))
|
|
87
|
+
tnsFileStruct = this.tnsnamesHT.get(file_path);
|
|
88
|
+
else
|
|
89
|
+
tnsFileStruct = new tnsnamesElement();
|
|
90
|
+
if (tnsFileStruct.readInProgress) {
|
|
91
|
+
await new Promise((resolve) => {
|
|
92
|
+
tnsFileStruct.waiters.push(resolve);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/* check modification time of all files in the cache
|
|
96
|
+
including the file_path */
|
|
97
|
+
if (!this.checkModfTime(tnsFileStruct)) {
|
|
98
|
+
/* No File has been modified */
|
|
99
|
+
return tnsFileStruct.aliasht;
|
|
100
|
+
}
|
|
101
|
+
tnsFileStruct.readInProgress = true;
|
|
102
|
+
await this.start(file_path, 0, tnsFileStruct); //start with 0 depth (tnsnames.ora)
|
|
103
|
+
this.tnsnamesHT.set(file_path, tnsFileStruct);
|
|
104
|
+
return tnsFileStruct.aliasht;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
async start(file_path, depth, tnsFileStruct) {
|
|
108
|
+
|
|
109
|
+
if (depth > MAX_IFILE_DEPTH)
|
|
110
|
+
return; //ignore after max depth
|
|
111
|
+
const stat = fs.statSync(file_path);
|
|
112
|
+
// store file path and its modified time.
|
|
113
|
+
tnsFileStruct.modTime.set(file_path, stat.mtime);
|
|
114
|
+
// Creating a readable stream from file
|
|
115
|
+
// readline module reads line by line
|
|
116
|
+
// but from a readable stream only.
|
|
117
|
+
const file = readline.createInterface({
|
|
118
|
+
input: fs.createReadStream(file_path),
|
|
119
|
+
output: process.stdout,
|
|
120
|
+
terminal: false
|
|
121
|
+
});
|
|
122
|
+
let nvElem = "";
|
|
123
|
+
for await (let line of file) {
|
|
124
|
+
if (line.length == 0) { // ignore empty lines
|
|
125
|
+
continue;
|
|
126
|
+
} else if (line[0] == '#') { // comment line
|
|
127
|
+
continue;
|
|
128
|
+
} else if ((line[0] == ' ') || // continued input on new line
|
|
129
|
+
(line[0] == '\t') ||
|
|
130
|
+
(line[0] == ')') ||
|
|
131
|
+
(line[0] == '(')) {
|
|
132
|
+
line = line.replace(/\s+/g, '');
|
|
133
|
+
line = this.checkNLPforComments(line);
|
|
134
|
+
if (line.length == 0)
|
|
135
|
+
continue;
|
|
136
|
+
else {
|
|
137
|
+
nvElem = nvElem + line;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
} else { // new NV Element starting here
|
|
141
|
+
if (nvElem.length == 0) {
|
|
142
|
+
|
|
143
|
+
line = this.checkNLPforComments(line);
|
|
144
|
+
nvElem = nvElem + line;
|
|
145
|
+
|
|
146
|
+
} else if (nvElem.length != 0) {
|
|
147
|
+
await this.addNLPListElement(nvElem, depth, tnsFileStruct); // Add Parameter to Hashtable
|
|
148
|
+
nvElem = ""; // Clear first, before storing current line
|
|
149
|
+
|
|
150
|
+
line = this.checkNLPforComments(line);
|
|
151
|
+
nvElem = nvElem + line;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (nvElem.length != 0) { // at eof, still one more parameter to read
|
|
156
|
+
await this.addNLPListElement(nvElem, depth, tnsFileStruct);
|
|
157
|
+
nvElem = ""; // clear nvElem buffer after added
|
|
158
|
+
}
|
|
159
|
+
tnsFileStruct.readInProgress = false;
|
|
160
|
+
let waiter;
|
|
161
|
+
while ((waiter = tnsFileStruct.waiters.pop())) {
|
|
162
|
+
waiter();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Given a string, this method looks if the '#' character is present.
|
|
167
|
+
* If true, the line is truncated from that point onwards until the end
|
|
168
|
+
* of the line; else, the original line is returned unchanged.
|
|
169
|
+
*
|
|
170
|
+
* @param str The String that is going to be tested for inline comments
|
|
171
|
+
* @return String The modified String returned
|
|
172
|
+
*/
|
|
173
|
+
checkNLPforComments(str) {
|
|
174
|
+
const str1 = new Array(str.length);
|
|
175
|
+
|
|
176
|
+
for (let i = 0; i < str.length; i++) {
|
|
177
|
+
const current_char = str[i];
|
|
178
|
+
if (current_char == '#') {
|
|
179
|
+
if (i != 0) {
|
|
180
|
+
break; // No need to continue. Return the line
|
|
181
|
+
} else {
|
|
182
|
+
// Entire line is a comment
|
|
183
|
+
return "";
|
|
184
|
+
}
|
|
185
|
+
} else
|
|
186
|
+
str1.push(current_char);
|
|
187
|
+
}
|
|
188
|
+
return str1.join('');
|
|
189
|
+
}
|
|
190
|
+
// check if any of the IFiles has been changed
|
|
191
|
+
checkModfTime(tnsFileStruct) {
|
|
192
|
+
// There may be multiple tnsnames.ora files. So check if the tnsnames.ora
|
|
193
|
+
// in question is already cached
|
|
194
|
+
if (tnsFileStruct.modTime.size != 0) {
|
|
195
|
+
for (const [key, value] of tnsFileStruct.modTime) {
|
|
196
|
+
if (fs.existsSync(key)) {
|
|
197
|
+
const stat = fs.statSync(key);
|
|
198
|
+
if ((stat.mtime - value > 0)) {
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
} else
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
} else {
|
|
205
|
+
return true;
|
|
206
|
+
}
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* adds name value pairs from the input buffer into the hash table.
|
|
211
|
+
* @param {string} ibuf
|
|
212
|
+
*/
|
|
213
|
+
async addNLPListElement(ibuf, depth, tnsFileStruct) {
|
|
214
|
+
const res = ibuf.split(/\r?\n/).filter(element => element);
|
|
215
|
+
for (let i = 0; i < res.length; i++) {
|
|
216
|
+
if (res[i].charAt(0) != '(') {
|
|
217
|
+
res[i] = '(' + res[i] + ')';
|
|
218
|
+
}
|
|
219
|
+
const nvp = createNVPair(res[i]);
|
|
220
|
+
const name = nvp.name;
|
|
221
|
+
const uname = name.toUpperCase();
|
|
222
|
+
nvp.name = uname;
|
|
223
|
+
// support for ifile
|
|
224
|
+
if (uname == 'IFILE') {
|
|
225
|
+
await this.start(nvp.atom, depth + 1, tnsFileStruct);
|
|
226
|
+
} else {
|
|
227
|
+
const unames = uname.split(","); //multiple aliases (alias1, alias2, alias3)
|
|
228
|
+
for (let i = 0; i < unames.length; i++) {
|
|
229
|
+
tnsFileStruct.aliasht.set(unames[i], nvp);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
module.exports = {
|
|
237
|
+
NLParamParser,
|
|
238
|
+
tnsnamesFilePath
|
|
239
|
+
};
|