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,148 +1,50 @@
|
|
|
1
|
-
import { d as defineEventHandler, r as readBody, c as createError
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { join } from 'node:path';
|
|
5
|
-
import { FormatEnum, pgDump } from 'pg-dump-restore';
|
|
1
|
+
import { d as defineEventHandler, r as readBody, c as createError } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import { c as createDatabaseHttpError } from '../../../_/error.mjs';
|
|
3
|
+
import { s as startNativeExportJob } from '../../../_/native-backup-jobs.mjs';
|
|
6
4
|
import 'node:net';
|
|
7
5
|
import 'ssh2';
|
|
8
6
|
import 'node:http';
|
|
9
7
|
import 'node:https';
|
|
10
8
|
import 'node:events';
|
|
11
9
|
import 'node:buffer';
|
|
10
|
+
import 'node:fs';
|
|
11
|
+
import 'node:path';
|
|
12
12
|
import 'node:crypto';
|
|
13
13
|
import 'node:url';
|
|
14
14
|
import '@iconify/utils';
|
|
15
15
|
import 'consola';
|
|
16
|
+
import '../../../_/database-error.mjs';
|
|
17
|
+
import '../../../_/db-connection.mjs';
|
|
18
|
+
import 'knex';
|
|
19
|
+
import 'oracledb';
|
|
20
|
+
import 'pg';
|
|
21
|
+
import 'node:stream';
|
|
22
|
+
import 'node:child_process';
|
|
23
|
+
import 'node:fs/promises';
|
|
24
|
+
import 'node:os';
|
|
25
|
+
import '../../../_/tables.factory.mjs';
|
|
26
|
+
import '../../../_/create-adapter.mjs';
|
|
27
|
+
import 'pg-copy-streams';
|
|
28
|
+
import 'pg-query-stream';
|
|
29
|
+
import '../../../_/type-alias.constants.mjs';
|
|
16
30
|
|
|
17
|
-
const formatMap = {
|
|
18
|
-
plain: FormatEnum.Plain,
|
|
19
|
-
custom: FormatEnum.Custom,
|
|
20
|
-
directory: FormatEnum.Directory,
|
|
21
|
-
tar: FormatEnum.Tar
|
|
22
|
-
};
|
|
23
|
-
const getFileExtension = (format) => {
|
|
24
|
-
switch (format) {
|
|
25
|
-
case "plain":
|
|
26
|
-
return ".sql";
|
|
27
|
-
case "custom":
|
|
28
|
-
return ".dump";
|
|
29
|
-
case "tar":
|
|
30
|
-
return ".tar";
|
|
31
|
-
case "directory":
|
|
32
|
-
return "";
|
|
33
|
-
// Directory doesn't have extension
|
|
34
|
-
default:
|
|
35
|
-
return ".sql";
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
const parseConnectionString = (connString) => {
|
|
39
|
-
const url = new URL(connString);
|
|
40
|
-
return {
|
|
41
|
-
host: url.hostname,
|
|
42
|
-
port: parseInt(url.port || "5432", 10),
|
|
43
|
-
database: url.pathname.slice(1),
|
|
44
|
-
// Remove leading slash
|
|
45
|
-
username: url.username,
|
|
46
|
-
password: url.password
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
31
|
const exportDatabase = defineEventHandler(async (event) => {
|
|
50
32
|
const body = await readBody(event);
|
|
51
|
-
|
|
52
|
-
if (!dbConnectionString && !body.host) {
|
|
33
|
+
if (!body.type) {
|
|
53
34
|
throw createError({
|
|
54
35
|
statusCode: 400,
|
|
55
|
-
statusMessage: "Database
|
|
36
|
+
statusMessage: "Database type is required for export."
|
|
56
37
|
});
|
|
57
38
|
}
|
|
58
|
-
const timestamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
|
|
59
|
-
const extension = getFileExtension(options.format);
|
|
60
|
-
const fileName = `${databaseName}_${timestamp}${extension}`;
|
|
61
|
-
const outputPath = join(tmpdir(), fileName);
|
|
62
39
|
try {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
connectionOptions = parseConnectionString(dbConnectionString);
|
|
66
|
-
} else {
|
|
67
|
-
connectionOptions = {
|
|
68
|
-
host: body.host,
|
|
69
|
-
port: parseInt(body.port || "5432", 10),
|
|
70
|
-
database: body.database || "",
|
|
71
|
-
username: body.username || "",
|
|
72
|
-
password: body.password || ""
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
const dumpOptions = {
|
|
76
|
-
filePath: outputPath,
|
|
77
|
-
format: formatMap[options.format]
|
|
78
|
-
};
|
|
79
|
-
if (options.scope === "schema-only") {
|
|
80
|
-
dumpOptions.schemaOnly = true;
|
|
81
|
-
} else if (options.scope === "data-only") {
|
|
82
|
-
dumpOptions.dataOnly = true;
|
|
83
|
-
}
|
|
84
|
-
if (options.schemas && options.schemas.length > 0) {
|
|
85
|
-
dumpOptions.schemaPattern = options.schemas;
|
|
86
|
-
}
|
|
87
|
-
if (options.tables && options.tables.length > 0) {
|
|
88
|
-
dumpOptions.tablePattern = options.tables;
|
|
89
|
-
}
|
|
90
|
-
if (options.noOwner) {
|
|
91
|
-
dumpOptions.noOwner = true;
|
|
92
|
-
}
|
|
93
|
-
if (options.noPrivileges) {
|
|
94
|
-
dumpOptions.noPrivileges = true;
|
|
95
|
-
}
|
|
96
|
-
if (options.clean) {
|
|
97
|
-
dumpOptions.clean = true;
|
|
98
|
-
}
|
|
99
|
-
if (options.createDb) {
|
|
100
|
-
dumpOptions.create = true;
|
|
101
|
-
}
|
|
102
|
-
if (options.compressLevel !== void 0 && (options.format === "custom" || options.format === "directory")) {
|
|
103
|
-
dumpOptions.compress = options.compressLevel;
|
|
104
|
-
}
|
|
105
|
-
if (options.format === "directory" && options.jobs) {
|
|
106
|
-
dumpOptions.jobs = options.jobs;
|
|
107
|
-
}
|
|
108
|
-
const startTime = Date.now();
|
|
109
|
-
await pgDump(connectionOptions, dumpOptions);
|
|
110
|
-
const duration = Date.now() - startTime;
|
|
111
|
-
const stats = await promises.stat(outputPath);
|
|
112
|
-
setHeader(event, "Content-Type", "application/octet-stream");
|
|
113
|
-
setHeader(
|
|
114
|
-
event,
|
|
115
|
-
"Content-Disposition",
|
|
116
|
-
`attachment; filename="${fileName}"`
|
|
40
|
+
return await startNativeExportJob(
|
|
41
|
+
body
|
|
117
42
|
);
|
|
118
|
-
setHeader(event, "Content-Length", stats.size);
|
|
119
|
-
setHeader(event, "X-Export-Duration", String(duration));
|
|
120
|
-
setHeader(event, "X-Export-FileName", fileName);
|
|
121
|
-
const fileStream = createReadStream(outputPath);
|
|
122
|
-
fileStream.on("end", async () => {
|
|
123
|
-
try {
|
|
124
|
-
await promises.unlink(outputPath);
|
|
125
|
-
} catch {
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
return sendStream(event, fileStream);
|
|
129
43
|
} catch (error) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
await promises.unlink(outputPath);
|
|
133
|
-
} catch {
|
|
44
|
+
if (error && typeof error === "object" && "statusCode" in error) {
|
|
45
|
+
throw error;
|
|
134
46
|
}
|
|
135
|
-
|
|
136
|
-
if (errorMessage.includes("pg_dump")) {
|
|
137
|
-
throw createError({
|
|
138
|
-
statusCode: 500,
|
|
139
|
-
statusMessage: `pg_dump error: ${errorMessage}. Make sure pg_dump is installed and accessible.`
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
throw createError({
|
|
143
|
-
statusCode: 500,
|
|
144
|
-
statusMessage: `Export failed: ${errorMessage}`
|
|
145
|
-
});
|
|
47
|
+
throw createDatabaseHttpError(body.type, error);
|
|
146
48
|
}
|
|
147
49
|
});
|
|
148
50
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-database.mjs","sources":["../../../../../../server/api/database-export/export-database.ts"],"sourcesContent":null,"names":[
|
|
1
|
+
{"version":3,"file":"export-database.mjs","sources":["../../../../../../server/api/database-export/export-database.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,uBAAA,kBAAA,CAAA,OAAA,KAAA,KAAA;AACA,EAAA,MAAA,IAAA,GAWA,MAAA,QAAA,CAAA,KAAA,CAAA;AAEA,EAAA,IAAA,CAAA,KAAA,IAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAGA,EAAA,IAAA;AACA,IAAA,OAAA,MAAA,oBAAA;AAAA,MACA;AAAA,KACA;AAAA,WACA,KAAA,EAAA;AACA,IAAA,IAAA,KAAA,IAAA,OAAA,KAAA,KAAA,QAAA,IAAA,gBAAA,KAAA,EAAA;AACA,MAAA,MAAA,KAAA;AAAA;AAGA,IAAA,MAAA,uBAAA,CAAA,IAAA,CAAA,IAAA,EAAA,KAAA,CAAA;AAAA;AAEA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, s as setHeader, a as sendStream } from '../../../../../nitro/nitro.mjs';
|
|
2
|
+
import { createReadStream } from 'node:fs';
|
|
3
|
+
import { stat } from 'node:fs/promises';
|
|
4
|
+
import { a as getNativeExportDownload } from '../../../../../_/native-backup-jobs.mjs';
|
|
5
|
+
import 'node:net';
|
|
6
|
+
import 'ssh2';
|
|
7
|
+
import 'node:http';
|
|
8
|
+
import 'node:https';
|
|
9
|
+
import 'node:events';
|
|
10
|
+
import 'node:buffer';
|
|
11
|
+
import 'node:path';
|
|
12
|
+
import 'node:crypto';
|
|
13
|
+
import 'node:url';
|
|
14
|
+
import '@iconify/utils';
|
|
15
|
+
import 'consola';
|
|
16
|
+
import 'node:child_process';
|
|
17
|
+
import 'node:os';
|
|
18
|
+
import '../../../../../_/db-connection.mjs';
|
|
19
|
+
import 'knex';
|
|
20
|
+
import 'oracledb';
|
|
21
|
+
import 'pg';
|
|
22
|
+
import 'node:stream';
|
|
23
|
+
import '../../../../../_/tables.factory.mjs';
|
|
24
|
+
import '../../../../../_/create-adapter.mjs';
|
|
25
|
+
import 'pg-copy-streams';
|
|
26
|
+
import 'pg-query-stream';
|
|
27
|
+
import '../../../../../_/error.mjs';
|
|
28
|
+
import '../../../../../_/database-error.mjs';
|
|
29
|
+
import '../../../../../_/type-alias.constants.mjs';
|
|
30
|
+
|
|
31
|
+
const download_get = defineEventHandler(async (event) => {
|
|
32
|
+
const jobId = getRouterParam(event, "jobId");
|
|
33
|
+
if (!jobId) {
|
|
34
|
+
throw createError({
|
|
35
|
+
statusCode: 400,
|
|
36
|
+
statusMessage: "Export job id is required."
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
const artifact = getNativeExportDownload(jobId);
|
|
40
|
+
const fileStat = await stat(artifact.filePath);
|
|
41
|
+
setHeader(event, "Content-Type", artifact.contentType);
|
|
42
|
+
setHeader(
|
|
43
|
+
event,
|
|
44
|
+
"Content-Disposition",
|
|
45
|
+
`attachment; filename="${artifact.fileName}"`
|
|
46
|
+
);
|
|
47
|
+
setHeader(event, "Content-Length", fileStat.size);
|
|
48
|
+
return sendStream(event, createReadStream(artifact.filePath));
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export { download_get as default };
|
|
52
|
+
//# sourceMappingURL=download.get.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download.get.mjs","sources":["../../../../../../../../server/api/database-export/jobs/[jobId]/download.get.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,qBAAA,kBAAA,CAAA,OAAA,KAAA,KAAA;AACA,EAAA,MAAA,KAAA,GAAA,cAAA,CAAA,KAAA,EAAA,OAAA,CAAA;AAEA,EAAA,IAAA,CAAA,KAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAGA,EAAA,MAAA,QAAA,GAAA,wBAAA,KAAA,CAAA;AACA,EAAA,MAAA,QAAA,GAAA,MAAA,IAAA,CAAA,QAAA,CAAA,QAAA,CAAA;AAEA,EAAA,SAAA,CAAA,KAAA,EAAA,cAAA,EAAA,QAAA,CAAA,WAAA,CAAA;AACA,EAAA,SAAA;AAAA,IACA,KAAA;AAAA,IACA,qBAAA;AAAA,IACA,CAAA,sBAAA,EAAA,SAAA,QAAA,CAAA,CAAA;AAAA,GACA;AACA,EAAA,SAAA,CAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,CAAA,IAAA,CAAA;AAEA,EAAA,OAAA,UAAA,CAAA,KAAA,EAAA,gBAAA,CAAA,QAAA,CAAA,QAAA,CAAA,CAAA;AACA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import { g as getNativeBackupJobSnapshot } from '../../../../_/native-backup-jobs.mjs';
|
|
3
|
+
import 'node:net';
|
|
4
|
+
import 'ssh2';
|
|
5
|
+
import 'node:http';
|
|
6
|
+
import 'node:https';
|
|
7
|
+
import 'node:events';
|
|
8
|
+
import 'node:buffer';
|
|
9
|
+
import 'node:fs';
|
|
10
|
+
import 'node:path';
|
|
11
|
+
import 'node:crypto';
|
|
12
|
+
import 'node:url';
|
|
13
|
+
import '@iconify/utils';
|
|
14
|
+
import 'consola';
|
|
15
|
+
import 'node:child_process';
|
|
16
|
+
import 'node:fs/promises';
|
|
17
|
+
import 'node:os';
|
|
18
|
+
import '../../../../_/db-connection.mjs';
|
|
19
|
+
import 'knex';
|
|
20
|
+
import 'oracledb';
|
|
21
|
+
import 'pg';
|
|
22
|
+
import 'node:stream';
|
|
23
|
+
import '../../../../_/tables.factory.mjs';
|
|
24
|
+
import '../../../../_/create-adapter.mjs';
|
|
25
|
+
import 'pg-copy-streams';
|
|
26
|
+
import 'pg-query-stream';
|
|
27
|
+
import '../../../../_/error.mjs';
|
|
28
|
+
import '../../../../_/database-error.mjs';
|
|
29
|
+
import '../../../../_/type-alias.constants.mjs';
|
|
30
|
+
|
|
31
|
+
const _jobId__get = defineEventHandler((event) => {
|
|
32
|
+
const jobId = getRouterParam(event, "jobId");
|
|
33
|
+
if (!jobId) {
|
|
34
|
+
throw createError({
|
|
35
|
+
statusCode: 400,
|
|
36
|
+
statusMessage: "Export job id is required."
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return getNativeBackupJobSnapshot(jobId);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { _jobId__get as default };
|
|
43
|
+
//# sourceMappingURL=_jobId_.get.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_jobId_.get.mjs","sources":["../../../../../../../server/api/database-export/jobs/[jobId].get.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oBAAA,mBAAA,CAAA,KAAA,KAAA;AACA,EAAA,MAAA,KAAA,GAAA,cAAA,CAAA,KAAA,EAAA,OAAA,CAAA;AAEA,EAAA,IAAA,CAAA,KAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAGA,EAAA,OAAA,2BAAA,KAAA,CAAA;AACA,CAAA,CAAA;;;;"}
|
|
@@ -1,82 +1,35 @@
|
|
|
1
1
|
import { d as defineEventHandler, b as readMultipartFormData, c as createError } from '../../../nitro/nitro.mjs';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { tmpdir } from 'node:os';
|
|
5
|
-
import { join } from 'node:path';
|
|
6
|
-
import { promisify } from 'node:util';
|
|
2
|
+
import { c as createDatabaseHttpError } from '../../../_/error.mjs';
|
|
3
|
+
import { b as startNativeImportJob } from '../../../_/native-backup-jobs.mjs';
|
|
7
4
|
import 'node:net';
|
|
8
5
|
import 'ssh2';
|
|
9
6
|
import 'node:http';
|
|
10
7
|
import 'node:https';
|
|
11
8
|
import 'node:events';
|
|
12
9
|
import 'node:buffer';
|
|
10
|
+
import 'node:fs';
|
|
11
|
+
import 'node:path';
|
|
13
12
|
import 'node:crypto';
|
|
14
13
|
import 'node:url';
|
|
15
14
|
import '@iconify/utils';
|
|
16
15
|
import 'consola';
|
|
16
|
+
import '../../../_/database-error.mjs';
|
|
17
|
+
import '../../../_/db-connection.mjs';
|
|
18
|
+
import 'knex';
|
|
19
|
+
import 'oracledb';
|
|
20
|
+
import 'pg';
|
|
21
|
+
import 'node:stream';
|
|
22
|
+
import 'node:child_process';
|
|
23
|
+
import 'node:fs/promises';
|
|
24
|
+
import 'node:os';
|
|
25
|
+
import '../../../_/tables.factory.mjs';
|
|
26
|
+
import '../../../_/create-adapter.mjs';
|
|
27
|
+
import 'pg-copy-streams';
|
|
28
|
+
import 'pg-query-stream';
|
|
29
|
+
import '../../../_/type-alias.constants.mjs';
|
|
17
30
|
|
|
18
|
-
const execAsync = promisify(exec);
|
|
19
|
-
const parseConnectionString = (connString) => {
|
|
20
|
-
const url = new URL(connString);
|
|
21
|
-
return {
|
|
22
|
-
host: url.hostname,
|
|
23
|
-
port: url.port || "5432",
|
|
24
|
-
database: url.pathname.slice(1),
|
|
25
|
-
username: url.username,
|
|
26
|
-
password: url.password
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
const getFileType = (filename) => {
|
|
30
|
-
const ext = filename.toLowerCase().split(".").pop();
|
|
31
|
-
switch (ext) {
|
|
32
|
-
case "sql":
|
|
33
|
-
return "plain";
|
|
34
|
-
case "tar":
|
|
35
|
-
return "tar";
|
|
36
|
-
case "dump":
|
|
37
|
-
default:
|
|
38
|
-
return "custom";
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const buildRestoreArgs = (filePath, conn, options) => {
|
|
42
|
-
const args = [
|
|
43
|
-
"-h",
|
|
44
|
-
conn.host,
|
|
45
|
-
"-p",
|
|
46
|
-
conn.port,
|
|
47
|
-
"-U",
|
|
48
|
-
conn.username,
|
|
49
|
-
"-d",
|
|
50
|
-
conn.database
|
|
51
|
-
];
|
|
52
|
-
if (options.noOwner) args.push("--no-owner");
|
|
53
|
-
if (options.noPrivileges) args.push("--no-privileges");
|
|
54
|
-
if (options.clean) args.push("--clean");
|
|
55
|
-
if (options.createDb) args.push("--create");
|
|
56
|
-
if (options.dataOnly) args.push("--data-only");
|
|
57
|
-
if (options.schemaOnly) args.push("--schema-only");
|
|
58
|
-
if (options.exitOnError) args.push("--exit-on-error");
|
|
59
|
-
if (options.jobs && options.jobs > 1) {
|
|
60
|
-
args.push("-j", String(options.jobs));
|
|
61
|
-
}
|
|
62
|
-
args.push(filePath);
|
|
63
|
-
return args;
|
|
64
|
-
};
|
|
65
|
-
const buildPsqlArgs = (filePath, conn) => {
|
|
66
|
-
return [
|
|
67
|
-
"-h",
|
|
68
|
-
conn.host,
|
|
69
|
-
"-p",
|
|
70
|
-
conn.port,
|
|
71
|
-
"-U",
|
|
72
|
-
conn.username,
|
|
73
|
-
"-d",
|
|
74
|
-
conn.database,
|
|
75
|
-
"-f",
|
|
76
|
-
filePath
|
|
77
|
-
];
|
|
78
|
-
};
|
|
79
31
|
const importDatabase = defineEventHandler(async (event) => {
|
|
32
|
+
var _a;
|
|
80
33
|
const formData = await readMultipartFormData(event);
|
|
81
34
|
if (!formData) {
|
|
82
35
|
throw createError({
|
|
@@ -90,9 +43,13 @@ const importDatabase = defineEventHandler(async (event) => {
|
|
|
90
43
|
let username = "";
|
|
91
44
|
let password = "";
|
|
92
45
|
let database = "";
|
|
46
|
+
let serviceName = "";
|
|
47
|
+
let filePath = "";
|
|
48
|
+
let type;
|
|
93
49
|
let options = {};
|
|
94
50
|
let fileData = null;
|
|
95
|
-
let
|
|
51
|
+
let ssl;
|
|
52
|
+
let ssh;
|
|
96
53
|
for (const field of formData) {
|
|
97
54
|
if (field.name === "dbConnectionString") {
|
|
98
55
|
dbConnectionString = field.data.toString();
|
|
@@ -106,18 +63,41 @@ const importDatabase = defineEventHandler(async (event) => {
|
|
|
106
63
|
password = field.data.toString();
|
|
107
64
|
} else if (field.name === "database") {
|
|
108
65
|
database = field.data.toString();
|
|
66
|
+
} else if (field.name === "serviceName") {
|
|
67
|
+
serviceName = field.data.toString();
|
|
68
|
+
} else if (field.name === "filePath") {
|
|
69
|
+
filePath = field.data.toString();
|
|
70
|
+
} else if (field.name === "type") {
|
|
71
|
+
type = field.data.toString();
|
|
109
72
|
} else if (field.name === "options") {
|
|
110
73
|
try {
|
|
111
74
|
options = JSON.parse(field.data.toString());
|
|
112
75
|
} catch {
|
|
113
76
|
options = {};
|
|
114
77
|
}
|
|
78
|
+
} else if (field.name === "ssl") {
|
|
79
|
+
try {
|
|
80
|
+
ssl = JSON.parse(field.data.toString());
|
|
81
|
+
} catch {
|
|
82
|
+
ssl = void 0;
|
|
83
|
+
}
|
|
84
|
+
} else if (field.name === "ssh") {
|
|
85
|
+
try {
|
|
86
|
+
ssh = JSON.parse(field.data.toString());
|
|
87
|
+
} catch {
|
|
88
|
+
ssh = void 0;
|
|
89
|
+
}
|
|
115
90
|
} else if (field.name === "file" && field.filename) {
|
|
116
91
|
fileData = field.data;
|
|
117
|
-
fileName = field.filename;
|
|
118
92
|
}
|
|
119
93
|
}
|
|
120
|
-
if (!
|
|
94
|
+
if (!type) {
|
|
95
|
+
throw createError({
|
|
96
|
+
statusCode: 400,
|
|
97
|
+
statusMessage: "Database type is required for import."
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (!dbConnectionString && !host && !filePath) {
|
|
121
101
|
throw createError({
|
|
122
102
|
statusCode: 400,
|
|
123
103
|
statusMessage: "Database connection details are required"
|
|
@@ -129,74 +109,29 @@ const importDatabase = defineEventHandler(async (event) => {
|
|
|
129
109
|
statusMessage: "Backup file is required"
|
|
130
110
|
});
|
|
131
111
|
}
|
|
132
|
-
const
|
|
112
|
+
const safeUploadName = (((_a = formData.find((field) => field.name === "file")) == null ? void 0 : _a.filename) || "backup.sql").replace(/[^a-zA-Z0-9._-]+/g, "-");
|
|
133
113
|
try {
|
|
134
|
-
await
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
};
|
|
151
|
-
const startTime = Date.now();
|
|
152
|
-
const fileType = getFileType(fileName);
|
|
153
|
-
let command;
|
|
154
|
-
let args;
|
|
155
|
-
if (fileType === "plain") {
|
|
156
|
-
args = buildPsqlArgs(tempFilePath, conn);
|
|
157
|
-
command = `psql ${args.join(" ")}`;
|
|
158
|
-
} else {
|
|
159
|
-
args = buildRestoreArgs(tempFilePath, conn, options);
|
|
160
|
-
command = `pg_restore ${args.join(" ")}`;
|
|
161
|
-
}
|
|
162
|
-
try {
|
|
163
|
-
await execAsync(command, { env, maxBuffer: 50 * 1024 * 1024 });
|
|
164
|
-
} catch (execError) {
|
|
165
|
-
const stderr = execError.stderr || "";
|
|
166
|
-
const stdout = execError.stdout || "";
|
|
167
|
-
if (options.exitOnError && stderr) {
|
|
168
|
-
throw new Error(stderr);
|
|
169
|
-
}
|
|
170
|
-
if (stderr && !stdout) {
|
|
171
|
-
console.warn("pg_restore warning:", stderr);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
const duration = Date.now() - startTime;
|
|
175
|
-
try {
|
|
176
|
-
await promises.unlink(tempFilePath);
|
|
177
|
-
} catch {
|
|
178
|
-
}
|
|
179
|
-
return {
|
|
180
|
-
success: true,
|
|
181
|
-
message: `Database restored successfully in ${(duration / 1e3).toFixed(1)}s`,
|
|
182
|
-
duration
|
|
183
|
-
};
|
|
114
|
+
return await startNativeImportJob({
|
|
115
|
+
dbConnectionString,
|
|
116
|
+
host,
|
|
117
|
+
port,
|
|
118
|
+
username,
|
|
119
|
+
password,
|
|
120
|
+
database,
|
|
121
|
+
serviceName,
|
|
122
|
+
filePath,
|
|
123
|
+
type,
|
|
124
|
+
options,
|
|
125
|
+
ssl,
|
|
126
|
+
ssh,
|
|
127
|
+
fileData,
|
|
128
|
+
uploadFileName: `${Date.now()}-${safeUploadName}`
|
|
129
|
+
});
|
|
184
130
|
} catch (error) {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
} catch {
|
|
188
|
-
}
|
|
189
|
-
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
|
|
190
|
-
if (errorMessage.includes("pg_restore") || errorMessage.includes("psql")) {
|
|
191
|
-
throw createError({
|
|
192
|
-
statusCode: 500,
|
|
193
|
-
statusMessage: `Restore error: ${errorMessage}. Make sure pg_restore/psql is installed.`
|
|
194
|
-
});
|
|
131
|
+
if (error && typeof error === "object" && "statusCode" in error) {
|
|
132
|
+
throw error;
|
|
195
133
|
}
|
|
196
|
-
throw
|
|
197
|
-
statusCode: 500,
|
|
198
|
-
statusMessage: `Import failed: ${errorMessage}`
|
|
199
|
-
});
|
|
134
|
+
throw createDatabaseHttpError(type, error);
|
|
200
135
|
}
|
|
201
136
|
});
|
|
202
137
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-database.mjs","sources":["../../../../../../server/api/database-import/import-database.ts"],"sourcesContent":null,"names":[
|
|
1
|
+
{"version":3,"file":"import-database.mjs","sources":["../../../../../../server/api/database-import/import-database.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,uBAAA,kBAAA,CAAA,OAAA,KAAA,KAAA;;AAEA,EAAA,MAAA,QAAA,GAAA,MAAA,qBAAA,CAAA,KAAA,CAAA;AAEA,EAAA,IAAA,CAAA,QAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAIA,EAAA,IAAA,kBAAA,GAAA,EAAA;AACA,EAAA,IAAA,IAAA,GAAA,EAAA;AACA,EAAA,IAAA,IAAA,GAAA,MAAA;AACA,EAAA,IAAA,QAAA,GAAA,EAAA;AACA,EAAA,IAAA,QAAA,GAAA,EAAA;AACA,EAAA,IAAA,QAAA,GAAA,EAAA;AACA,EAAA,IAAA,WAAA,GAAA,EAAA;AACA,EAAA,IAAA,QAAA,GAAA,EAAA;AACA,EAAA,IAAA,IAAA;AACA,EAAA,IAAA,UAAA,EAAA;AACA,EAAA,IAAA,QAAA,GAAA,IAAA;AACA,EAAA,IAAA,GAAA;AACA,EAAA,IAAA,GAAA;AAEA,EAAA,KAAA,MAAA,SAAA,QAAA,EAAA;AACA,IAAA,IAAA,KAAA,CAAA,SAAA,oBAAA,EAAA;AACA,MAAA,kBAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,MAAA,EAAA;AACA,MAAA,IAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,MAAA,EAAA;AACA,MAAA,IAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,UAAA,EAAA;AACA,MAAA,QAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,UAAA,EAAA;AACA,MAAA,QAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,UAAA,EAAA;AACA,MAAA,QAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,aAAA,EAAA;AACA,MAAA,WAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,UAAA,EAAA;AACA,MAAA,QAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,MAAA,EAAA;AACA,MAAA,IAAA,GAAA,KAAA,CAAA,KAAA,QAAA,EAAA;AAAA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,SAAA,EAAA;AACA,MAAA,IAAA;AACA,QAAA,OAAA,GAAA,IAAA,CAAA,KAAA,CAAA,KAAA,CAAA,IAAA,CAAA,UAAA,CAAA;AAAA,OACA,CAAA,MAAA;AACA,QAAA,OAAA,GAAA,EAAA;AAAA;AACA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,KAAA,EAAA;AACA,MAAA,IAAA;AACA,QAAA,GAAA,GAAA,IAAA,CAAA,KAAA,CAAA,KAAA,CAAA,IAAA,CAAA,UAAA,CAAA;AAAA,OACA,CAAA,MAAA;AACA,QAAA,GAAA,GAAA,MAAA;AAAA;AACA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,KAAA,EAAA;AACA,MAAA,IAAA;AACA,QAAA,GAAA,GAAA,IAAA,CAAA,KAAA,CAAA,KAAA,CAAA,IAAA,CAAA,UAAA,CAAA;AAAA,OACA,CAAA,MAAA;AACA,QAAA,GAAA,GAAA,MAAA;AAAA;AACA,KACA,MAAA,IAAA,KAAA,CAAA,IAAA,KAAA,MAAA,IAAA,MAAA,QAAA,EAAA;AACA,MAAA,QAAA,GAAA,KAAA,CAAA,IAAA;AAAA;AACA;AAGA,EAAA,IAAA,CAAA,IAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAGA,EAAA,IAAA,CAAA,kBAAA,IAAA,CAAA,IAAA,IAAA,CAAA,QAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAGA,EAAA,IAAA,CAAA,QAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAGA,EAAA,MAAA,cACA,GAAA,CAAA,CAAA,CAAA,EAAA,GAAA,QAAA,CAAA,IAAA,CAAA,CAAA,KAAA,KAAA,KAAA,CAAA,IAAA,KAAA,MAAA,CAAA,KAAA,IAAA,GAAA,MAAA,GAAA,EAAA,CAAA,QAAA,KAAA,YACA,EAAA,OAAA,CAAA,qBAAA,GAAA,CAAA;AAEA,EAAA,IAAA;AACA,IAAA,OAAA,MAAA,oBAAA,CAAA;AAAA,MACA,kBAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,MACA,QAAA;AAAA,MACA,IAAA;AAAA,MACA,OAAA;AAAA,MACA,GAAA;AAAA,MACA,GAAA;AAAA,MACA,QAAA;AAAA,MACA,gBAAA,CAAA,EAAA,IAAA,CAAA,GAAA,EAAA,IAAA,cAAA,CAAA;AAAA,KACA,CAAA;AAAA,WACA,KAAA,EAAA;AACA,IAAA,IAAA,KAAA,IAAA,OAAA,KAAA,KAAA,QAAA,IAAA,gBAAA,KAAA,EAAA;AACA,MAAA,MAAA,KAAA;AAAA;AAGA,IAAA,MAAA,uBAAA,CAAA,MAAA,KAAA,CAAA;AAAA;AAEA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import { g as getNativeBackupJobSnapshot } from '../../../../_/native-backup-jobs.mjs';
|
|
3
|
+
import 'node:net';
|
|
4
|
+
import 'ssh2';
|
|
5
|
+
import 'node:http';
|
|
6
|
+
import 'node:https';
|
|
7
|
+
import 'node:events';
|
|
8
|
+
import 'node:buffer';
|
|
9
|
+
import 'node:fs';
|
|
10
|
+
import 'node:path';
|
|
11
|
+
import 'node:crypto';
|
|
12
|
+
import 'node:url';
|
|
13
|
+
import '@iconify/utils';
|
|
14
|
+
import 'consola';
|
|
15
|
+
import 'node:child_process';
|
|
16
|
+
import 'node:fs/promises';
|
|
17
|
+
import 'node:os';
|
|
18
|
+
import '../../../../_/db-connection.mjs';
|
|
19
|
+
import 'knex';
|
|
20
|
+
import 'oracledb';
|
|
21
|
+
import 'pg';
|
|
22
|
+
import 'node:stream';
|
|
23
|
+
import '../../../../_/tables.factory.mjs';
|
|
24
|
+
import '../../../../_/create-adapter.mjs';
|
|
25
|
+
import 'pg-copy-streams';
|
|
26
|
+
import 'pg-query-stream';
|
|
27
|
+
import '../../../../_/error.mjs';
|
|
28
|
+
import '../../../../_/database-error.mjs';
|
|
29
|
+
import '../../../../_/type-alias.constants.mjs';
|
|
30
|
+
|
|
31
|
+
const _jobId__get = defineEventHandler((event) => {
|
|
32
|
+
const jobId = getRouterParam(event, "jobId");
|
|
33
|
+
if (!jobId) {
|
|
34
|
+
throw createError({
|
|
35
|
+
statusCode: 400,
|
|
36
|
+
statusMessage: "Import job id is required."
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return getNativeBackupJobSnapshot(jobId);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { _jobId__get as default };
|
|
43
|
+
//# sourceMappingURL=_jobId_.get.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_jobId_.get.mjs","sources":["../../../../../../../server/api/database-import/jobs/[jobId].get.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oBAAA,mBAAA,CAAA,KAAA,KAAA;AACA,EAAA,MAAA,KAAA,GAAA,cAAA,CAAA,KAAA,EAAA,OAAA,CAAA;AAEA,EAAA,IAAA,CAAA,KAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAGA,EAAA,OAAA,2BAAA,KAAA,CAAA;AACA,CAAA,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-role.mjs","sources":["../../../../../../server/api/database-roles/create-role.ts"],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-role.mjs","sources":["../../../../../../server/api/database-roles/create-role.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAYA,mBAAA,kBAAA;AAAA,EACA,OAAA,KAAA,KAAA;;AACA,IAAA,MAAA,IAAA,GAAA,MAAA,QAAA,CAAA,KAAA,CAAA;AAEA,IAAA,IAAA,CAAA,KAAA,QAAA,EAAA;AACA,MAAA,MAAA,WAAA,CAAA;AAAA,QACA,UAAA,EAAA,GAAA;AAAA,QACA,aAAA,EAAA;AAAA,OACA,CAAA;AAAA;AAGA,IAAA,MAAA,UAAA,MAAA,iBAAA;AAAA,MACA,IAAA,CAAA,UAAA,kBAAA,CAAA,QAAA;AAAA,MACA;AAAA,QACA,oBAAA,IAAA,CAAA;AAAA;AACA,KACA;AAEA,IAAA,OAAA,QAAA,UAAA,CAAA;AAAA,MACA,UAAA,IAAA,CAAA,QAAA;AAAA,MACA,UAAA,IAAA,CAAA,QAAA;AAAA,MACA,QAAA,EAAA,CAAA,EAAA,GAAA,IAAA,CAAA,QAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA;AAAA,MACA,WAAA,EAAA,CAAA,EAAA,GAAA,IAAA,CAAA,WAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA;AAAA,MACA,aAAA,EAAA,CAAA,EAAA,GAAA,IAAA,CAAA,aAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA;AAAA,MACA,aAAA,EAAA,CAAA,EAAA,GAAA,IAAA,CAAA,aAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA;AAAA,MACA,iBAAA,IAAA,CAAA,eAAA;AAAA,MACA,YAAA,IAAA,CAAA,UAAA;AAAA,MACA,UAAA,IAAA,CAAA,QAAA;AAAA,MACA,SAAA,IAAA,CAAA;AAAA,KACA,CAAA;AAAA;AAEA,CAAA;;;;"}
|