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
|
@@ -1,59 +1,180 @@
|
|
|
1
1
|
import { e as createSshTunnel } from '../nitro/nitro.mjs';
|
|
2
2
|
import knex from 'knex';
|
|
3
|
+
import * as oracledb from 'oracledb';
|
|
3
4
|
import pg from 'pg';
|
|
5
|
+
import { accessSync, constants } from 'node:fs';
|
|
6
|
+
import { Readable } from 'node:stream';
|
|
4
7
|
|
|
5
8
|
var DatabaseClientType = /* @__PURE__ */ ((DatabaseClientType2) => {
|
|
6
9
|
DatabaseClientType2["POSTGRES"] = "postgres";
|
|
7
10
|
DatabaseClientType2["MYSQL"] = "mysql";
|
|
11
|
+
DatabaseClientType2["MARIADB"] = "mariadb";
|
|
8
12
|
DatabaseClientType2["MYSQL2"] = "mysql2";
|
|
13
|
+
DatabaseClientType2["MONGODB"] = "mongodb";
|
|
14
|
+
DatabaseClientType2["REDIS"] = "redis";
|
|
9
15
|
DatabaseClientType2["SQLITE3"] = "sqlite3";
|
|
16
|
+
DatabaseClientType2["SNOWFLAKE"] = "snowflake";
|
|
10
17
|
DatabaseClientType2["BETTER_SQLITE3"] = "better-sqlite3";
|
|
11
18
|
DatabaseClientType2["MSSQL"] = "mssql";
|
|
12
19
|
DatabaseClientType2["ORACLE"] = "oracledb";
|
|
13
20
|
return DatabaseClientType2;
|
|
14
21
|
})(DatabaseClientType || {});
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
23
|
+
const DEFAULT_RENDER_LIMIT = 100;
|
|
24
|
+
const MAX_RENDER_LIMIT = 500;
|
|
25
|
+
const MAX_EXPORT_LIMIT = 1e5;
|
|
26
|
+
const SELECT_PATTERN = /^(select|with|values|table)\b/i;
|
|
27
|
+
const MUTATION_PATTERN = /^(insert|update|delete|drop|truncate|alter|create|grant|revoke|comment|refresh|vacuum)\b/i;
|
|
28
|
+
const POSTGRES_OID_TYPE_MAP = {
|
|
29
|
+
16: "bool",
|
|
30
|
+
20: "int8",
|
|
31
|
+
21: "int2",
|
|
32
|
+
23: "int4",
|
|
33
|
+
25: "text",
|
|
34
|
+
114: "json",
|
|
35
|
+
700: "float4",
|
|
36
|
+
701: "float8",
|
|
37
|
+
1043: "varchar",
|
|
38
|
+
1082: "date",
|
|
39
|
+
1114: "timestamp",
|
|
40
|
+
1184: "timestamptz",
|
|
41
|
+
1700: "numeric",
|
|
42
|
+
2950: "uuid",
|
|
43
|
+
3802: "jsonb"
|
|
44
|
+
};
|
|
45
|
+
function stripSqlComments(sql) {
|
|
46
|
+
return sql.replace(/\/\*[\s\S]*?\*\//g, "").replace(/--.*$/gm, "");
|
|
47
|
+
}
|
|
48
|
+
function replaceSqlComments(sql, replacer) {
|
|
49
|
+
let index = 0;
|
|
50
|
+
let nextSql = "";
|
|
51
|
+
while (index < sql.length) {
|
|
52
|
+
const current = sql[index];
|
|
53
|
+
const next = sql[index + 1];
|
|
54
|
+
if (current === "'") {
|
|
55
|
+
nextSql += current;
|
|
56
|
+
index += 1;
|
|
57
|
+
while (index < sql.length) {
|
|
58
|
+
const quotedChar = sql[index];
|
|
59
|
+
nextSql += quotedChar;
|
|
60
|
+
if (quotedChar === "'" && sql[index + 1] === "'") {
|
|
61
|
+
nextSql += sql[index + 1];
|
|
62
|
+
index += 2;
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
index += 1;
|
|
66
|
+
if (quotedChar === "'") {
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (current === '"') {
|
|
73
|
+
nextSql += current;
|
|
74
|
+
index += 1;
|
|
75
|
+
while (index < sql.length) {
|
|
76
|
+
const quotedChar = sql[index];
|
|
77
|
+
nextSql += quotedChar;
|
|
78
|
+
if (quotedChar === '"' && sql[index + 1] === '"') {
|
|
79
|
+
nextSql += sql[index + 1];
|
|
80
|
+
index += 2;
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
index += 1;
|
|
84
|
+
if (quotedChar === '"') {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
if (current === "-" && next === "-") {
|
|
91
|
+
const start = index;
|
|
92
|
+
index += 2;
|
|
93
|
+
while (index < sql.length && sql[index] !== "\n") {
|
|
94
|
+
index += 1;
|
|
95
|
+
}
|
|
96
|
+
nextSql += replacer(sql.slice(start, index));
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
if (current === "/" && next === "*") {
|
|
100
|
+
const start = index;
|
|
101
|
+
index += 2;
|
|
102
|
+
while (index < sql.length) {
|
|
103
|
+
if (sql[index] === "*" && sql[index + 1] === "/") {
|
|
104
|
+
index += 2;
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
index += 1;
|
|
108
|
+
}
|
|
109
|
+
nextSql += replacer(sql.slice(start, index));
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
nextSql += current;
|
|
113
|
+
index += 1;
|
|
45
114
|
}
|
|
46
|
-
|
|
47
|
-
|
|
115
|
+
return nextSql;
|
|
116
|
+
}
|
|
117
|
+
const COMMENT_NAMED_BIND_PATTERN = /(^|[^A-Za-z0-9_:]):([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
118
|
+
function maskNamedBindParametersInComments(sql) {
|
|
119
|
+
return replaceSqlComments(
|
|
120
|
+
sql,
|
|
121
|
+
(comment) => comment.replace(
|
|
122
|
+
COMMENT_NAMED_BIND_PATTERN,
|
|
123
|
+
(_, prefix, name) => `${prefix}__heraq_comment_bind_${name}__`
|
|
124
|
+
)
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
function stripMarkdownCodeFence(sql) {
|
|
128
|
+
var _a;
|
|
129
|
+
const trimmed = sql.trim();
|
|
130
|
+
const match = trimmed.match(/^```(?:sql)?\s*([\s\S]*?)```$/i);
|
|
131
|
+
return ((_a = match == null ? void 0 : match[1]) == null ? void 0 : _a.trim()) || trimmed;
|
|
132
|
+
}
|
|
133
|
+
function normalizeSql(sql) {
|
|
134
|
+
return stripSqlComments(stripMarkdownCodeFence(sql)).trim().replace(/;+\s*$/, "");
|
|
135
|
+
}
|
|
136
|
+
function isSelectLikeSql(sql) {
|
|
137
|
+
return SELECT_PATTERN.test(normalizeSql(sql));
|
|
138
|
+
}
|
|
139
|
+
function isMutationSql(sql) {
|
|
140
|
+
return MUTATION_PATTERN.test(normalizeSql(sql));
|
|
141
|
+
}
|
|
142
|
+
function clampLimit(limit) {
|
|
143
|
+
if (!limit || Number.isNaN(limit)) {
|
|
144
|
+
return DEFAULT_RENDER_LIMIT;
|
|
48
145
|
}
|
|
49
|
-
|
|
50
|
-
|
|
146
|
+
return Math.max(1, Math.min(limit, MAX_RENDER_LIMIT));
|
|
147
|
+
}
|
|
148
|
+
function quoteIdentifier(identifier) {
|
|
149
|
+
if (!/^[A-Za-z_][A-Za-z0-9_$]*$/.test(identifier)) {
|
|
150
|
+
throw new Error(`Invalid SQL identifier: ${identifier}`);
|
|
51
151
|
}
|
|
152
|
+
return `"${identifier.replace(/"/g, '""')}"`;
|
|
153
|
+
}
|
|
154
|
+
function getQualifiedTableName(schemaName, tableName) {
|
|
155
|
+
return `${quoteIdentifier(schemaName)}.${quoteIdentifier(tableName)}`;
|
|
156
|
+
}
|
|
157
|
+
function resolveFieldType(field) {
|
|
158
|
+
const oid = Number(field.dataTypeID);
|
|
159
|
+
return POSTGRES_OID_TYPE_MAP[oid] || String(field.dataTypeID || "unknown");
|
|
52
160
|
}
|
|
53
161
|
|
|
162
|
+
var EConnectionMethod = /* @__PURE__ */ ((EConnectionMethod2) => {
|
|
163
|
+
EConnectionMethod2["STRING"] = "string";
|
|
164
|
+
EConnectionMethod2["FORM"] = "form";
|
|
165
|
+
EConnectionMethod2["FILE"] = "file";
|
|
166
|
+
return EConnectionMethod2;
|
|
167
|
+
})(EConnectionMethod || {});
|
|
168
|
+
|
|
54
169
|
var __defProp = Object.defineProperty;
|
|
55
170
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
56
171
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
172
|
+
const normalizeBindableSql = (sql, bindings) => {
|
|
173
|
+
if (!bindings || Array.isArray(bindings) || typeof bindings !== "object") {
|
|
174
|
+
return sql;
|
|
175
|
+
}
|
|
176
|
+
return maskNamedBindParametersInComments(sql);
|
|
177
|
+
};
|
|
57
178
|
class BaseDatabaseAdapter {
|
|
58
179
|
constructor(dbType, connection, knexInstance) {
|
|
59
180
|
__publicField(this, "knex");
|
|
@@ -64,10 +185,13 @@ class BaseDatabaseAdapter {
|
|
|
64
185
|
this.knex = knexInstance;
|
|
65
186
|
}
|
|
66
187
|
async rawQuery(sql, bindings = []) {
|
|
67
|
-
return this._rawQuery(
|
|
188
|
+
return this._rawQuery(
|
|
189
|
+
normalizeBindableSql(sql, bindings),
|
|
190
|
+
bindings
|
|
191
|
+
);
|
|
68
192
|
}
|
|
69
193
|
async rawOut(sql, bindings = []) {
|
|
70
|
-
return this._rawOut(sql, bindings);
|
|
194
|
+
return this._rawOut(normalizeBindableSql(sql, bindings), bindings);
|
|
71
195
|
}
|
|
72
196
|
streamQuery(sql, bindings = [], options = {}) {
|
|
73
197
|
return this._streamQuery(sql, bindings, options);
|
|
@@ -79,7 +203,7 @@ class BaseDatabaseAdapter {
|
|
|
79
203
|
await this.knex.client.releaseConnection(connection);
|
|
80
204
|
}
|
|
81
205
|
getNativeSql(sql, bindings) {
|
|
82
|
-
return this._getNativeSql(sql, bindings);
|
|
206
|
+
return this._getNativeSql(normalizeBindableSql(sql, bindings), bindings);
|
|
83
207
|
}
|
|
84
208
|
async healthCheck() {
|
|
85
209
|
try {
|
|
@@ -98,6 +222,240 @@ class BaseDatabaseAdapter {
|
|
|
98
222
|
}
|
|
99
223
|
}
|
|
100
224
|
|
|
225
|
+
function normalizeMysqlFields(fields = []) {
|
|
226
|
+
return fields.map((field, index) => {
|
|
227
|
+
var _a, _b;
|
|
228
|
+
return {
|
|
229
|
+
name: field.name,
|
|
230
|
+
tableID: 0,
|
|
231
|
+
columnID: index,
|
|
232
|
+
dataTypeID: (_a = field.columnType) != null ? _a : 0,
|
|
233
|
+
dataTypeSize: (_b = field.columnLength) != null ? _b : 0,
|
|
234
|
+
dataTypeModifier: 0,
|
|
235
|
+
format: "text"
|
|
236
|
+
};
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function inferMysqlCommand(sql) {
|
|
240
|
+
var _a;
|
|
241
|
+
return ((_a = sql.trim().split(/\s+/, 1)[0]) == null ? void 0 : _a.toUpperCase()) || "";
|
|
242
|
+
}
|
|
243
|
+
class MysqlAdapter extends BaseDatabaseAdapter {
|
|
244
|
+
constructor(connection, dbType = DatabaseClientType.MYSQL) {
|
|
245
|
+
const knexInstance = knex({
|
|
246
|
+
client: DatabaseClientType.MYSQL2,
|
|
247
|
+
connection,
|
|
248
|
+
pool: {
|
|
249
|
+
min: 1,
|
|
250
|
+
max: 10,
|
|
251
|
+
idleTimeoutMillis: 5 * 60 * 1e3
|
|
252
|
+
},
|
|
253
|
+
log: {
|
|
254
|
+
warn(message) {
|
|
255
|
+
console.warn("[MysqlAdapter]", message);
|
|
256
|
+
},
|
|
257
|
+
error(message) {
|
|
258
|
+
console.error("[MysqlAdapter]", message);
|
|
259
|
+
},
|
|
260
|
+
deprecate(message) {
|
|
261
|
+
console.warn("[MysqlAdapter] Deprecation:", message);
|
|
262
|
+
},
|
|
263
|
+
debug(message) {
|
|
264
|
+
console.debug("[MysqlAdapter]", message);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
super(dbType, connection, knexInstance);
|
|
269
|
+
}
|
|
270
|
+
async queryWithMetadata(sql, bindings = [], rowsAsArray = false) {
|
|
271
|
+
const connection = await this.acquireRawConnection();
|
|
272
|
+
try {
|
|
273
|
+
return await new Promise((resolve, reject) => {
|
|
274
|
+
connection.query(
|
|
275
|
+
{
|
|
276
|
+
sql,
|
|
277
|
+
values: bindings,
|
|
278
|
+
rowsAsArray
|
|
279
|
+
},
|
|
280
|
+
(error, rows, fields) => {
|
|
281
|
+
if (error) {
|
|
282
|
+
reject(error);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
resolve({
|
|
286
|
+
rows,
|
|
287
|
+
fields: fields != null ? fields : []
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
});
|
|
292
|
+
} finally {
|
|
293
|
+
await this.releaseRawConnection(connection);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
async _rawQuery(sql, bindings = []) {
|
|
297
|
+
const { rows } = await this.queryWithMetadata(sql, bindings);
|
|
298
|
+
return Array.isArray(rows) ? rows : [];
|
|
299
|
+
}
|
|
300
|
+
async _rawOut(sql, bindings = []) {
|
|
301
|
+
const { rows, fields } = await this.queryWithMetadata(
|
|
302
|
+
sql,
|
|
303
|
+
bindings,
|
|
304
|
+
true
|
|
305
|
+
);
|
|
306
|
+
if (Array.isArray(rows)) {
|
|
307
|
+
return {
|
|
308
|
+
rows,
|
|
309
|
+
fields: normalizeMysqlFields(fields),
|
|
310
|
+
rowCount: rows.length,
|
|
311
|
+
command: inferMysqlCommand(sql)
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
rows: [],
|
|
316
|
+
fields: normalizeMysqlFields(fields),
|
|
317
|
+
rowCount: rows.affectedRows,
|
|
318
|
+
command: inferMysqlCommand(sql)
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
_streamQuery(sql, bindings = [], options = {}) {
|
|
322
|
+
return this.knex.raw(sql, bindings).stream(options);
|
|
323
|
+
}
|
|
324
|
+
_getNativeSql(sql, bindings) {
|
|
325
|
+
return this.knex.raw(sql, bindings).toSQL().toNative();
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
const DEFAULT_ORACLE_PORT = 1521;
|
|
330
|
+
function buildOracleConnectString(host, port, serviceName) {
|
|
331
|
+
return `${host}:${port}/${serviceName}`;
|
|
332
|
+
}
|
|
333
|
+
function normalizeOracleConnection(connection) {
|
|
334
|
+
var _a;
|
|
335
|
+
if (typeof connection === "string") {
|
|
336
|
+
const url = new URL(connection);
|
|
337
|
+
const serviceName2 = decodeURIComponent(url.pathname.replace(/^\/+/, ""));
|
|
338
|
+
return {
|
|
339
|
+
user: decodeURIComponent(url.username),
|
|
340
|
+
password: decodeURIComponent(url.password),
|
|
341
|
+
connectString: buildOracleConnectString(
|
|
342
|
+
url.hostname,
|
|
343
|
+
Number(url.port) || DEFAULT_ORACLE_PORT,
|
|
344
|
+
serviceName2
|
|
345
|
+
)
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
const candidate = connection || {};
|
|
349
|
+
const host = candidate.host || "127.0.0.1";
|
|
350
|
+
const port = Number(candidate.port) || DEFAULT_ORACLE_PORT;
|
|
351
|
+
const serviceName = candidate.serviceName || candidate.database;
|
|
352
|
+
if (!serviceName && !candidate.connectString) {
|
|
353
|
+
throw new Error(
|
|
354
|
+
"Oracle connections require a service name or connectString."
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
return {
|
|
358
|
+
user: (_a = candidate.user) != null ? _a : candidate.username,
|
|
359
|
+
password: candidate.password,
|
|
360
|
+
connectString: candidate.connectString || buildOracleConnectString(host, port, serviceName),
|
|
361
|
+
...candidate.ssl ? { ssl: candidate.ssl } : {}
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
function normalizeOracleFields(fields = []) {
|
|
365
|
+
return fields.map((field, index) => {
|
|
366
|
+
var _a, _b, _c;
|
|
367
|
+
return {
|
|
368
|
+
name: field.name || `column_${index + 1}`,
|
|
369
|
+
tableID: 0,
|
|
370
|
+
columnID: index,
|
|
371
|
+
dataTypeID: (_b = (_a = field.dbType) != null ? _a : field.fetchType) != null ? _b : 0,
|
|
372
|
+
dataTypeSize: (_c = field.byteSize) != null ? _c : 0,
|
|
373
|
+
dataTypeModifier: 0,
|
|
374
|
+
format: "text"
|
|
375
|
+
};
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
function inferOracleCommand(sql) {
|
|
379
|
+
var _a;
|
|
380
|
+
return ((_a = sql.trim().split(/\s+/, 1)[0]) == null ? void 0 : _a.toUpperCase()) || "";
|
|
381
|
+
}
|
|
382
|
+
class OracleAdapter extends BaseDatabaseAdapter {
|
|
383
|
+
constructor(connection) {
|
|
384
|
+
const normalizedConnection = normalizeOracleConnection(connection);
|
|
385
|
+
const knexInstance = knex({
|
|
386
|
+
client: DatabaseClientType.ORACLE,
|
|
387
|
+
connection: normalizedConnection,
|
|
388
|
+
pool: {
|
|
389
|
+
min: 1,
|
|
390
|
+
max: 10,
|
|
391
|
+
idleTimeoutMillis: 5 * 60 * 1e3
|
|
392
|
+
},
|
|
393
|
+
log: {
|
|
394
|
+
warn(message) {
|
|
395
|
+
console.warn("[OracleAdapter]", message);
|
|
396
|
+
},
|
|
397
|
+
error(message) {
|
|
398
|
+
console.error("[OracleAdapter]", message);
|
|
399
|
+
},
|
|
400
|
+
deprecate(message) {
|
|
401
|
+
console.warn("[OracleAdapter] Deprecation:", message);
|
|
402
|
+
},
|
|
403
|
+
debug(message) {
|
|
404
|
+
console.debug("[OracleAdapter]", message);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
super(DatabaseClientType.ORACLE, normalizedConnection, knexInstance);
|
|
409
|
+
}
|
|
410
|
+
async execute(sql, bindings = [], outFormat = oracledb.OUT_FORMAT_OBJECT) {
|
|
411
|
+
const connection = await this.acquireRawConnection();
|
|
412
|
+
try {
|
|
413
|
+
return await connection.execute(sql, bindings, {
|
|
414
|
+
outFormat
|
|
415
|
+
});
|
|
416
|
+
} finally {
|
|
417
|
+
await this.releaseRawConnection(connection);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
async healthCheck() {
|
|
421
|
+
try {
|
|
422
|
+
await this.knex.raw("SELECT 1 FROM DUAL");
|
|
423
|
+
return true;
|
|
424
|
+
} catch (error) {
|
|
425
|
+
console.error("[OracleAdapter] Health check failed", error);
|
|
426
|
+
return false;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
async _rawQuery(sql, bindings = []) {
|
|
430
|
+
const result = await this.execute(
|
|
431
|
+
sql,
|
|
432
|
+
bindings,
|
|
433
|
+
oracledb.OUT_FORMAT_OBJECT
|
|
434
|
+
);
|
|
435
|
+
return result.rows || [];
|
|
436
|
+
}
|
|
437
|
+
async _rawOut(sql, bindings = []) {
|
|
438
|
+
var _a, _b, _c;
|
|
439
|
+
const result = await this.execute(
|
|
440
|
+
sql,
|
|
441
|
+
bindings,
|
|
442
|
+
oracledb.OUT_FORMAT_ARRAY
|
|
443
|
+
);
|
|
444
|
+
return {
|
|
445
|
+
rows: result.rows || [],
|
|
446
|
+
fields: normalizeOracleFields(result.metaData),
|
|
447
|
+
rowCount: (_c = (_b = result.rowsAffected) != null ? _b : (_a = result.rows) == null ? void 0 : _a.length) != null ? _c : 0,
|
|
448
|
+
command: inferOracleCommand(sql)
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
_streamQuery(sql, bindings = [], options = {}) {
|
|
452
|
+
return this.knex.raw(sql, bindings).stream(options);
|
|
453
|
+
}
|
|
454
|
+
_getNativeSql(sql, bindings) {
|
|
455
|
+
return this.knex.raw(sql, bindings).toSQL().toNative();
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
101
459
|
const RAW = (val) => val;
|
|
102
460
|
const TEMPORAL_OIDS = [
|
|
103
461
|
1082,
|
|
@@ -190,12 +548,188 @@ class PostgresAdapter extends BaseDatabaseAdapter {
|
|
|
190
548
|
}
|
|
191
549
|
}
|
|
192
550
|
|
|
551
|
+
function assertReadableSqliteFile(filename) {
|
|
552
|
+
if (filename === ":memory:") {
|
|
553
|
+
return;
|
|
554
|
+
}
|
|
555
|
+
try {
|
|
556
|
+
accessSync(filename, constants.F_OK);
|
|
557
|
+
} catch {
|
|
558
|
+
throw new Error(`SQLite database file was not found: ${filename}`);
|
|
559
|
+
}
|
|
560
|
+
try {
|
|
561
|
+
accessSync(filename, constants.R_OK);
|
|
562
|
+
} catch {
|
|
563
|
+
throw new Error(`SQLite database file is not readable: ${filename}`);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function normalizeSqliteFilename(fileName) {
|
|
567
|
+
const normalizedPath = decodeURIComponent(fileName).replace(/\\/g, "/");
|
|
568
|
+
if (/^\/[A-Za-z]:\//.test(normalizedPath)) {
|
|
569
|
+
return normalizedPath.slice(1);
|
|
570
|
+
}
|
|
571
|
+
return normalizedPath;
|
|
572
|
+
}
|
|
573
|
+
function normalizeSqliteConnection(connection) {
|
|
574
|
+
if (typeof connection === "string") {
|
|
575
|
+
if (connection.startsWith("sqlite3://")) {
|
|
576
|
+
const url = new URL(connection);
|
|
577
|
+
const filename2 = normalizeSqliteFilename(url.pathname);
|
|
578
|
+
assertReadableSqliteFile(filename2);
|
|
579
|
+
return {
|
|
580
|
+
filename: filename2
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
const filename = normalizeSqliteFilename(connection);
|
|
584
|
+
assertReadableSqliteFile(filename);
|
|
585
|
+
return {
|
|
586
|
+
filename
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
const candidate = connection || {};
|
|
590
|
+
if (candidate.filename) {
|
|
591
|
+
const filename = normalizeSqliteFilename(candidate.filename);
|
|
592
|
+
assertReadableSqliteFile(filename);
|
|
593
|
+
return {
|
|
594
|
+
filename
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
if (candidate.filePath) {
|
|
598
|
+
const filename = normalizeSqliteFilename(candidate.filePath);
|
|
599
|
+
assertReadableSqliteFile(filename);
|
|
600
|
+
return {
|
|
601
|
+
filename
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
throw new Error("SQLite connections require a filename.");
|
|
605
|
+
}
|
|
606
|
+
function createSyntheticFields(row) {
|
|
607
|
+
return Object.keys(row || {}).map((name, index) => ({
|
|
608
|
+
name,
|
|
609
|
+
tableID: 0,
|
|
610
|
+
columnID: index,
|
|
611
|
+
dataTypeID: 0,
|
|
612
|
+
dataTypeSize: 0,
|
|
613
|
+
dataTypeModifier: 0,
|
|
614
|
+
format: "text"
|
|
615
|
+
}));
|
|
616
|
+
}
|
|
617
|
+
function inferSqliteCommand(sql) {
|
|
618
|
+
var _a;
|
|
619
|
+
return ((_a = sql.trim().split(/\s+/, 1)[0]) == null ? void 0 : _a.toUpperCase()) || "";
|
|
620
|
+
}
|
|
621
|
+
class SqliteAdapter extends BaseDatabaseAdapter {
|
|
622
|
+
constructor(connection) {
|
|
623
|
+
const normalizedConnection = normalizeSqliteConnection(connection);
|
|
624
|
+
const knexInstance = knex({
|
|
625
|
+
client: DatabaseClientType.SQLITE3,
|
|
626
|
+
connection: normalizedConnection,
|
|
627
|
+
useNullAsDefault: true,
|
|
628
|
+
pool: {
|
|
629
|
+
min: 1,
|
|
630
|
+
max: 1,
|
|
631
|
+
idleTimeoutMillis: 5 * 60 * 1e3
|
|
632
|
+
},
|
|
633
|
+
log: {
|
|
634
|
+
warn(message) {
|
|
635
|
+
console.warn("[SqliteAdapter]", message);
|
|
636
|
+
},
|
|
637
|
+
error(message) {
|
|
638
|
+
console.error("[SqliteAdapter]", message);
|
|
639
|
+
},
|
|
640
|
+
deprecate(message) {
|
|
641
|
+
console.warn("[SqliteAdapter] Deprecation:", message);
|
|
642
|
+
},
|
|
643
|
+
debug(message) {
|
|
644
|
+
console.debug("[SqliteAdapter]", message);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
super(DatabaseClientType.SQLITE3, normalizedConnection, knexInstance);
|
|
649
|
+
}
|
|
650
|
+
async all(sql, bindings = []) {
|
|
651
|
+
const connection = await this.acquireRawConnection();
|
|
652
|
+
try {
|
|
653
|
+
return await new Promise((resolve, reject) => {
|
|
654
|
+
connection.all(sql, bindings, (error, rows) => {
|
|
655
|
+
if (error) {
|
|
656
|
+
reject(error);
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
resolve(rows || []);
|
|
660
|
+
});
|
|
661
|
+
});
|
|
662
|
+
} finally {
|
|
663
|
+
await this.releaseRawConnection(connection);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
async run(sql, bindings = []) {
|
|
667
|
+
const connection = await this.acquireRawConnection();
|
|
668
|
+
try {
|
|
669
|
+
return await new Promise((resolve, reject) => {
|
|
670
|
+
connection.run(
|
|
671
|
+
sql,
|
|
672
|
+
bindings,
|
|
673
|
+
function(error) {
|
|
674
|
+
if (error) {
|
|
675
|
+
reject(error);
|
|
676
|
+
return;
|
|
677
|
+
}
|
|
678
|
+
resolve(this);
|
|
679
|
+
}
|
|
680
|
+
);
|
|
681
|
+
});
|
|
682
|
+
} finally {
|
|
683
|
+
await this.releaseRawConnection(connection);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
async _rawQuery(sql, bindings = []) {
|
|
687
|
+
return this.all(sql, bindings);
|
|
688
|
+
}
|
|
689
|
+
async _rawOut(sql, bindings = []) {
|
|
690
|
+
const trimmedQuery = sql.trim().toUpperCase();
|
|
691
|
+
const isSelectLike = trimmedQuery.startsWith("SELECT") || trimmedQuery.startsWith("WITH") || trimmedQuery.startsWith("PRAGMA") || trimmedQuery.startsWith("EXPLAIN");
|
|
692
|
+
if (isSelectLike) {
|
|
693
|
+
const namedRows = await this.all(sql, bindings);
|
|
694
|
+
const fields = createSyntheticFields(namedRows[0]);
|
|
695
|
+
const rows = namedRows.map((row) => fields.map((f) => row[f.name]));
|
|
696
|
+
return {
|
|
697
|
+
rows,
|
|
698
|
+
fields,
|
|
699
|
+
rowCount: rows.length,
|
|
700
|
+
command: inferSqliteCommand(sql)
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
const result = await this.run(sql, bindings);
|
|
704
|
+
return {
|
|
705
|
+
rows: [],
|
|
706
|
+
fields: [],
|
|
707
|
+
rowCount: result.changes || 0,
|
|
708
|
+
command: inferSqliteCommand(sql)
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
_streamQuery(sql, bindings = [], _options = {}) {
|
|
712
|
+
const adapter = this;
|
|
713
|
+
return Readable.from(
|
|
714
|
+
async function* () {
|
|
715
|
+
const rows = await adapter.all(sql, bindings);
|
|
716
|
+
for (const row of rows) {
|
|
717
|
+
yield row;
|
|
718
|
+
}
|
|
719
|
+
}()
|
|
720
|
+
);
|
|
721
|
+
}
|
|
722
|
+
_getNativeSql(sql, bindings) {
|
|
723
|
+
return this.knex.raw(sql, bindings).toSQL().toNative();
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
193
727
|
const ADAPTER_FACTORIES = {
|
|
194
728
|
[DatabaseClientType.POSTGRES]: (connection) => new PostgresAdapter(connection),
|
|
195
729
|
[DatabaseClientType.MYSQL]: (connection) => new MysqlAdapter(connection),
|
|
196
|
-
[DatabaseClientType.
|
|
197
|
-
|
|
198
|
-
|
|
730
|
+
[DatabaseClientType.MARIADB]: (connection) => new MysqlAdapter(connection, DatabaseClientType.MARIADB),
|
|
731
|
+
[DatabaseClientType.ORACLE]: (connection) => new OracleAdapter(connection),
|
|
732
|
+
[DatabaseClientType.SQLITE3]: (connection) => new SqliteAdapter(connection)
|
|
199
733
|
};
|
|
200
734
|
function createDatabaseAdapter(type, connection) {
|
|
201
735
|
const factory = ADAPTER_FACTORIES[type];
|
|
@@ -207,6 +741,19 @@ function createDatabaseAdapter(type, connection) {
|
|
|
207
741
|
|
|
208
742
|
const adapterCache = /* @__PURE__ */ new Map();
|
|
209
743
|
const LRU_TIMEOUT = 5 * 60 * 1e3;
|
|
744
|
+
const DEFAULT_PORTS = {
|
|
745
|
+
[DatabaseClientType.POSTGRES]: 5432,
|
|
746
|
+
[DatabaseClientType.MYSQL]: 3306,
|
|
747
|
+
[DatabaseClientType.MARIADB]: 3306,
|
|
748
|
+
[DatabaseClientType.MYSQL2]: 3306,
|
|
749
|
+
[DatabaseClientType.MONGODB]: 27017,
|
|
750
|
+
[DatabaseClientType.REDIS]: 6379,
|
|
751
|
+
[DatabaseClientType.MSSQL]: 1433,
|
|
752
|
+
[DatabaseClientType.ORACLE]: 1521,
|
|
753
|
+
[DatabaseClientType.SNOWFLAKE]: 443,
|
|
754
|
+
[DatabaseClientType.BETTER_SQLITE3]: 0,
|
|
755
|
+
[DatabaseClientType.SQLITE3]: 0
|
|
756
|
+
};
|
|
210
757
|
function cleanupIdleAdapters() {
|
|
211
758
|
const now = Date.now();
|
|
212
759
|
for (const [key, cached] of adapterCache.entries()) {
|
|
@@ -255,6 +802,84 @@ process.on("SIGTERM", async () => {
|
|
|
255
802
|
process.on("exit", async () => {
|
|
256
803
|
await shutdownAllAdapters();
|
|
257
804
|
});
|
|
805
|
+
function getDefaultPort(type) {
|
|
806
|
+
var _a;
|
|
807
|
+
return (_a = DEFAULT_PORTS[type]) != null ? _a : 5432;
|
|
808
|
+
}
|
|
809
|
+
async function resolveHealthCheckConnection({
|
|
810
|
+
url,
|
|
811
|
+
type,
|
|
812
|
+
method,
|
|
813
|
+
host,
|
|
814
|
+
port,
|
|
815
|
+
username,
|
|
816
|
+
password,
|
|
817
|
+
database,
|
|
818
|
+
serviceName,
|
|
819
|
+
filePath,
|
|
820
|
+
ssl,
|
|
821
|
+
ssh
|
|
822
|
+
}) {
|
|
823
|
+
var _a;
|
|
824
|
+
let sshTunnelClose;
|
|
825
|
+
if (method === EConnectionMethod.STRING) {
|
|
826
|
+
if (!url) {
|
|
827
|
+
throw new Error(
|
|
828
|
+
"Missing connection string for string-based health check."
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
return {
|
|
832
|
+
connection: url,
|
|
833
|
+
sshTunnelClose
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
if (method === EConnectionMethod.FILE) {
|
|
837
|
+
if (!filePath) {
|
|
838
|
+
throw new Error("Missing file path for file-based health check.");
|
|
839
|
+
}
|
|
840
|
+
return {
|
|
841
|
+
connection: {
|
|
842
|
+
filename: filePath
|
|
843
|
+
},
|
|
844
|
+
sshTunnelClose
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
if (!host) {
|
|
848
|
+
throw new Error("Missing host for form-based health check.");
|
|
849
|
+
}
|
|
850
|
+
let finalHost = host;
|
|
851
|
+
let finalPort = parseInt(port || `${getDefaultPort(type)}`, 10);
|
|
852
|
+
if (ssh == null ? void 0 : ssh.enabled) {
|
|
853
|
+
const tunnel = await createSshTunnel(ssh, host, finalPort);
|
|
854
|
+
finalHost = tunnel.localHost;
|
|
855
|
+
finalPort = tunnel.localPort;
|
|
856
|
+
sshTunnelClose = tunnel.close;
|
|
857
|
+
}
|
|
858
|
+
const connection = {
|
|
859
|
+
host: finalHost,
|
|
860
|
+
port: finalPort,
|
|
861
|
+
user: username,
|
|
862
|
+
password
|
|
863
|
+
};
|
|
864
|
+
if (serviceName) {
|
|
865
|
+
connection.database = serviceName;
|
|
866
|
+
connection.serviceName = serviceName;
|
|
867
|
+
} else if (database) {
|
|
868
|
+
connection.database = database;
|
|
869
|
+
}
|
|
870
|
+
if ((ssl == null ? void 0 : ssl.mode) && ssl.mode !== "disable") {
|
|
871
|
+
connection.ssl = {
|
|
872
|
+
rejectUnauthorized: (_a = ssl.rejectUnauthorized) != null ? _a : true,
|
|
873
|
+
ca: ssl.ca,
|
|
874
|
+
cert: ssl.cert,
|
|
875
|
+
key: ssl.key
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
return {
|
|
879
|
+
connection,
|
|
880
|
+
sshTunnelClose
|
|
881
|
+
};
|
|
882
|
+
}
|
|
258
883
|
const getDatabaseSource = async ({
|
|
259
884
|
dbConnectionString,
|
|
260
885
|
type,
|
|
@@ -263,6 +888,8 @@ const getDatabaseSource = async ({
|
|
|
263
888
|
username,
|
|
264
889
|
password,
|
|
265
890
|
database,
|
|
891
|
+
serviceName,
|
|
892
|
+
filePath,
|
|
266
893
|
ssl,
|
|
267
894
|
ssh
|
|
268
895
|
}) => {
|
|
@@ -271,22 +898,38 @@ const getDatabaseSource = async ({
|
|
|
271
898
|
let finalConnection = dbConnectionString;
|
|
272
899
|
let cacheKey = `${dbType}://${dbConnectionString}`;
|
|
273
900
|
let sshTunnelClose;
|
|
274
|
-
|
|
901
|
+
const targetName = serviceName || database || "";
|
|
902
|
+
if (!dbConnectionString && filePath) {
|
|
903
|
+
finalConnection = {
|
|
904
|
+
filename: filePath
|
|
905
|
+
};
|
|
906
|
+
cacheKey = `${dbType}://${filePath}`;
|
|
907
|
+
} else if (!dbConnectionString && host) {
|
|
275
908
|
let finalHost = host;
|
|
276
|
-
let finalPort = parseInt(port ||
|
|
909
|
+
let finalPort = parseInt(port || `${getDefaultPort(dbType)}`, 10);
|
|
277
910
|
if (ssh == null ? void 0 : ssh.enabled) {
|
|
278
911
|
const tunnel = await createSshTunnel(ssh, host, finalPort);
|
|
279
912
|
finalHost = tunnel.localHost;
|
|
280
913
|
finalPort = tunnel.localPort;
|
|
281
914
|
sshTunnelClose = tunnel.close;
|
|
282
915
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
916
|
+
if (dbType === DatabaseClientType.ORACLE) {
|
|
917
|
+
finalConnection = {
|
|
918
|
+
user: username,
|
|
919
|
+
password,
|
|
920
|
+
connectString: `${finalHost}:${finalPort}/${targetName}`,
|
|
921
|
+
serviceName: targetName,
|
|
922
|
+
database: targetName
|
|
923
|
+
};
|
|
924
|
+
} else {
|
|
925
|
+
finalConnection = {
|
|
926
|
+
host: finalHost,
|
|
927
|
+
port: finalPort,
|
|
928
|
+
user: username,
|
|
929
|
+
password,
|
|
930
|
+
database: targetName
|
|
931
|
+
};
|
|
932
|
+
}
|
|
290
933
|
if ((ssl == null ? void 0 : ssl.mode) && ssl.mode !== "disable") {
|
|
291
934
|
finalConnection.ssl = {
|
|
292
935
|
rejectUnauthorized: (_a = ssl.rejectUnauthorized) != null ? _a : true,
|
|
@@ -295,7 +938,7 @@ const getDatabaseSource = async ({
|
|
|
295
938
|
key: ssl.key
|
|
296
939
|
};
|
|
297
940
|
}
|
|
298
|
-
cacheKey = `${dbType}://${username}@${host}:${
|
|
941
|
+
cacheKey = `${dbType}://${username}@${host}:${finalPort}/${targetName}${(ssh == null ? void 0 : ssh.enabled) ? "-ssh" : ""}${(ssl == null ? void 0 : ssl.mode) ? `-${ssl.mode}` : ""}`;
|
|
299
942
|
}
|
|
300
943
|
let cached = adapterCache.get(cacheKey);
|
|
301
944
|
if (cached) {
|
|
@@ -312,55 +955,52 @@ const getDatabaseSource = async ({
|
|
|
312
955
|
};
|
|
313
956
|
async function healthCheckConnection({
|
|
314
957
|
url,
|
|
315
|
-
type
|
|
958
|
+
type,
|
|
959
|
+
method,
|
|
316
960
|
host,
|
|
317
961
|
port,
|
|
318
962
|
username,
|
|
319
963
|
password,
|
|
320
964
|
database,
|
|
965
|
+
serviceName,
|
|
966
|
+
filePath,
|
|
321
967
|
ssl,
|
|
322
968
|
ssh
|
|
323
969
|
}) {
|
|
324
|
-
var _a;
|
|
325
970
|
let sshTunnelClose;
|
|
326
971
|
try {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
if ((ssl == null ? void 0 : ssl.mode) && ssl.mode !== "disable") {
|
|
345
|
-
finalConnection.ssl = {
|
|
346
|
-
rejectUnauthorized: (_a = ssl.rejectUnauthorized) != null ? _a : true,
|
|
347
|
-
ca: ssl.ca,
|
|
348
|
-
cert: ssl.cert,
|
|
349
|
-
key: ssl.key
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
const adapter = createDatabaseAdapter(type, finalConnection);
|
|
972
|
+
const resolvedConnection = await resolveHealthCheckConnection({
|
|
973
|
+
url,
|
|
974
|
+
type,
|
|
975
|
+
method,
|
|
976
|
+
host,
|
|
977
|
+
port,
|
|
978
|
+
username,
|
|
979
|
+
password,
|
|
980
|
+
database,
|
|
981
|
+
serviceName,
|
|
982
|
+
filePath,
|
|
983
|
+
ssl,
|
|
984
|
+
ssh
|
|
985
|
+
});
|
|
986
|
+
const { connection } = resolvedConnection;
|
|
987
|
+
sshTunnelClose = resolvedConnection.sshTunnelClose;
|
|
988
|
+
const adapter = createDatabaseAdapter(type, connection);
|
|
354
989
|
const isConnected = await adapter.healthCheck();
|
|
355
990
|
await adapter.destroy();
|
|
356
991
|
if (sshTunnelClose) await sshTunnelClose();
|
|
357
|
-
return
|
|
992
|
+
return {
|
|
993
|
+
isConnectedSuccess: isConnected
|
|
994
|
+
};
|
|
358
995
|
} catch (error) {
|
|
359
996
|
console.error("Database connection failed:", error);
|
|
360
997
|
if (sshTunnelClose) await sshTunnelClose();
|
|
361
|
-
return
|
|
998
|
+
return {
|
|
999
|
+
isConnectedSuccess: false,
|
|
1000
|
+
message: (error == null ? void 0 : error.message) || "Database connection failed"
|
|
1001
|
+
};
|
|
362
1002
|
}
|
|
363
1003
|
}
|
|
364
1004
|
|
|
365
|
-
export { DatabaseClientType as D, getDatabaseSource as g, healthCheckConnection as h };
|
|
1005
|
+
export { DatabaseClientType as D, MAX_RENDER_LIMIT as M, isMutationSql as a, MAX_EXPORT_LIMIT as b, clampLimit as c, getDatabaseSource as d, normalizeMysqlFields as e, normalizeOracleFields as f, getQualifiedTableName as g, healthCheckConnection as h, isSelectLikeSql as i, normalizeSql as n, quoteIdentifier as q, resolveFieldType as r };
|
|
366
1006
|
//# sourceMappingURL=db-connection.mjs.map
|