orcaq 1.0.32 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/4by6-f6q.js +982 -0
- package/.output/public/_nuxt/8Ppmjv9D.js +1 -0
- package/.output/public/_nuxt/B1qjkRVO.js +1 -0
- package/.output/public/_nuxt/B3KEisfc.js +1 -0
- package/.output/public/_nuxt/B4ebLeWY.js +9 -0
- package/.output/public/_nuxt/{IitECNfD.js → B6hH0qos.js} +1 -1
- package/.output/public/_nuxt/{BUDtG__q.js → B7HEMfgt.js} +1 -1
- package/.output/public/_nuxt/B84SvUzr.js +1 -0
- package/.output/public/_nuxt/BDXvbRNW.js +1 -0
- package/.output/public/_nuxt/BGRcizqy.js +1 -0
- package/.output/public/_nuxt/{ClYziJpO.js → BGVGiigU.js} +1 -1
- package/.output/public/_nuxt/{ZdjmUBoX.js → BJYf67_H.js} +1 -1
- package/.output/public/_nuxt/BOK5ZFNK.js +1 -0
- package/.output/public/_nuxt/BPY2ud8g.js +1 -0
- package/.output/public/_nuxt/BSONoRG4.js +2 -0
- package/.output/public/_nuxt/BT53m-su.js +1 -0
- package/.output/public/_nuxt/BTJSh8in.js +2 -0
- package/.output/public/_nuxt/BVpt8J3a.js +1 -0
- package/.output/public/_nuxt/{BhUkpIlA.js → BdDEVolW.js} +1 -1
- package/.output/public/_nuxt/{C27bL9Es.js → BeNILdbT.js} +1 -1
- package/.output/public/_nuxt/{Dnx67EG9.js → BmU9CNkM.js} +1 -1
- package/.output/public/_nuxt/{DLHYqHwF.js → BnFDcr74.js} +1 -1
- package/.output/public/_nuxt/{sE-55p4e.js → BprXyYdv.js} +1 -1
- package/.output/public/_nuxt/{BCcTASq_.js → Bq7otXBA.js} +1 -1
- package/.output/public/_nuxt/{B_PBOfFN.js → BqyO8OjC.js} +93 -93
- package/.output/public/_nuxt/Bs1og3h1.js +10 -0
- package/.output/public/_nuxt/Bs2DgR_z.js +1 -0
- package/.output/public/_nuxt/{BsoQBloB.js → BvUhrUEH.js} +1 -1
- package/.output/public/_nuxt/{DkggUtNN.js → BxDrCsPf.js} +1 -1
- package/.output/public/_nuxt/BxrwrGYE.js +1 -0
- package/.output/public/_nuxt/By0aUn7N.js +1 -0
- package/.output/public/_nuxt/{C07rlnlv.js → ByOuUnNS.js} +1 -1
- package/.output/public/_nuxt/C177_GoB.js +1 -0
- package/.output/public/_nuxt/{DcfsxCxL.js → C1jMZ4hc.js} +1 -1
- package/.output/public/_nuxt/C5bgdIOp.js +1 -0
- package/.output/public/_nuxt/C69a9jD3.js +67 -0
- package/.output/public/_nuxt/C8AyZ3_X.js +2 -0
- package/.output/public/_nuxt/C8KplD68.js +1 -0
- package/.output/public/_nuxt/CA99KAte.js +3 -0
- package/.output/public/_nuxt/{CvTHaPAO.js → CE8aasoy.js} +1 -1
- package/.output/public/_nuxt/{DkY69STm.js → CEvNlevo.js} +1 -1
- package/.output/public/_nuxt/{B8JnYxjr.js → CKqvNpN3.js} +1 -1
- package/.output/public/_nuxt/CNF1h1lI.js +1 -0
- package/.output/public/_nuxt/COAycMg4.js +1 -0
- package/.output/public/_nuxt/CR6_eO9a.js +6 -0
- package/.output/public/_nuxt/{D4jn2f-6.js → CREZ9f0O.js} +4 -4
- package/.output/public/_nuxt/CS5ItJPR.js +39 -0
- package/.output/public/_nuxt/CcK14gfI.js +1 -0
- package/.output/public/_nuxt/{DnxDSFih.js → Ci43mke5.js} +3 -3
- package/.output/public/_nuxt/CjouDEjz.js +1 -0
- package/.output/public/_nuxt/Cp5lMcfd.js +1 -0
- package/.output/public/_nuxt/CpYiq1Wv.js +1 -0
- package/.output/public/_nuxt/{DVxTxYP4.js → CrLqg4B0.js} +1 -1
- package/.output/public/_nuxt/{BJxYuvXF.js → CvcedJeQ.js} +1 -1
- package/.output/public/_nuxt/{FIJP2AmN.js → Cvq07PgE.js} +1 -1
- package/.output/public/_nuxt/CwmbX4-U.js +1 -0
- package/.output/public/_nuxt/{B27ECqWz.js → Cx6s86aR.js} +1 -1
- package/.output/public/_nuxt/{DDYV6jDr.js → CybtvDjH.js} +1 -1
- package/.output/public/_nuxt/CzB2y8br.js +18 -0
- package/.output/public/_nuxt/{-p9JbKy8.js → D-YUpbah.js} +3 -3
- package/.output/public/_nuxt/D60Pzl_V.js +1 -0
- package/.output/public/_nuxt/D9BYd7AV.js +1 -0
- package/.output/public/_nuxt/D9dEqMyH.js +152 -0
- package/.output/public/_nuxt/DCJ49Fnq.js +1 -0
- package/.output/public/_nuxt/{gO22NLpn.js → DESYlybj.js} +1 -1
- package/.output/public/_nuxt/DFM-aCBX.js +1 -0
- package/.output/public/_nuxt/{DRKnK1N_.js → DHnNoguE.js} +1 -1
- package/.output/public/_nuxt/{ChkFTcxr.js → DJqZzQsX.js} +1 -1
- package/.output/public/_nuxt/DNNdcUH4.js +1 -0
- package/.output/public/_nuxt/{LFK46Fls.js → DNdM2ZyK.js} +1 -1
- package/.output/public/_nuxt/{CVliJ52o.js → DQT4eICL.js} +1 -1
- package/.output/public/_nuxt/{CffFK_qY.js → DWBoXz89.js} +1 -1
- package/.output/public/_nuxt/DXp9fCib.js +20 -0
- package/.output/public/_nuxt/{ACOLmAuq.js → DaKikgWm.js} +1 -1
- package/.output/public/_nuxt/{B9zSkyFO.js → DaMyovpr.js} +1 -1
- package/.output/public/_nuxt/DeBdxlx0.js +1 -0
- package/.output/public/_nuxt/{trZyeId5.js → DhKwXzSk.js} +1 -1
- package/.output/public/_nuxt/{C6Vqzp-9.js → DkadXn5U.js} +1 -1
- package/.output/public/_nuxt/Dkikh2OC.js +22 -0
- package/.output/public/_nuxt/DlOyXrKK.js +1 -0
- package/.output/public/_nuxt/{UqWhjgOc.js → Dpl6-lqE.js} +1 -1
- package/.output/public/_nuxt/DqA_edEU.js +1 -0
- package/.output/public/_nuxt/DqxL2Lpl.js +1 -0
- package/.output/public/_nuxt/Dt3rfvTn.js +1 -0
- package/.output/public/_nuxt/Dt5h0Tys.js +1 -0
- package/.output/public/_nuxt/DwrSZ8Vj.js +1 -0
- package/.output/public/_nuxt/DwyFZZT6.js +1 -0
- package/.output/public/_nuxt/EM8J-XL1.js +7 -0
- package/.output/public/_nuxt/ESKvsKwc.js +1 -0
- package/.output/public/_nuxt/{CWGdTiOD.js → F5lCgNdb.js} +1 -1
- package/.output/public/_nuxt/H5m89x1B.js +1 -0
- package/.output/public/_nuxt/{CwdIiq6J.js → PUe8M07P.js} +2 -2
- package/.output/public/_nuxt/{Cjgqfl1g.js → TEF-nDfP.js} +1 -1
- package/.output/public/_nuxt/{DNZpxuwM.js → TuKV3Ilv.js} +1 -1
- package/.output/public/_nuxt/V5LvXMJl.js +1 -0
- package/.output/public/_nuxt/{c_huf6xz.js → YJvNy3iu.js} +27 -27
- package/.output/public/_nuxt/{C7C8tPlA.js → ZObQcd0X.js} +1 -1
- package/.output/public/_nuxt/{CHOD7i6O.js → b_MfGg1c.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/455d4da4-6357-4478-8703-78a79ccbbc0f.json +1 -0
- package/.output/public/_nuxt/entry.qdzR7QFr.css +1 -0
- package/.output/public/_nuxt/fpuEgQ7C.js +12 -0
- package/.output/public/_nuxt/jU7fkvuR.js +1 -0
- package/.output/public/_nuxt/{CSTzT9hP.js → lHkFwi3L.js} +1 -1
- package/.output/public/_nuxt/{BQOaPJzs.js → minLMBmY.js} +1 -1
- package/.output/public/_nuxt/pQ8l8BR2.js +1 -0
- package/.output/public/_nuxt/xYXqL1eV.js +1 -0
- package/.output/public/_nuxt/xxfb8w7n.js +1 -0
- package/.output/server/chunks/_/create-adapter.mjs +36 -7
- package/.output/server/chunks/_/create-adapter.mjs.map +1 -1
- package/.output/server/chunks/_/database-error.mjs +10 -0
- package/.output/server/chunks/_/database-error.mjs.map +1 -1
- package/.output/server/chunks/_/database-roles.factory.mjs +126 -22
- package/.output/server/chunks/_/database-roles.factory.mjs.map +1 -1
- package/.output/server/chunks/_/db-connection.mjs +721 -81
- package/.output/server/chunks/_/db-connection.mjs.map +1 -1
- package/.output/server/chunks/_/functions.factory.mjs +97 -6
- package/.output/server/chunks/_/functions.factory.mjs.map +1 -1
- package/.output/server/chunks/_/instance-insights.factory.mjs +106 -7
- package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
- package/.output/server/chunks/_/metadata.factory.mjs +912 -43
- package/.output/server/chunks/_/metadata.factory.mjs.map +1 -1
- package/.output/server/chunks/_/native-backup-jobs.mjs +1302 -0
- package/.output/server/chunks/_/native-backup-jobs.mjs.map +1 -0
- package/.output/server/chunks/_/query.factory.mjs +536 -14
- package/.output/server/chunks/_/query.factory.mjs.map +1 -1
- package/.output/server/chunks/_/schemaMeta.type.mjs +13 -0
- package/.output/server/chunks/_/schemaMeta.type.mjs.map +1 -0
- package/.output/server/chunks/_/tables.factory.mjs +905 -37
- package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
- package/.output/server/chunks/_/type-alias.constants.mjs +242 -0
- package/.output/server/chunks/_/type-alias.constants.mjs.map +1 -0
- package/.output/server/chunks/_/views.factory.mjs +106 -8
- package/.output/server/chunks/_/views.factory.mjs.map +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +676 -672
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +1046 -751
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/ai/agent.mjs +30 -79
- package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/export-database.mjs +26 -124
- package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +52 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +43 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-import/import-database.mjs +69 -134
- package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +43 -0
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/update.post.mjs +24 -6
- package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +63 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +10 -4
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +80 -7
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/export.post.mjs +4 -2
- package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/meta.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/definition.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/explain.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/indexes.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/meta.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/overview.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/aws-ssl-profiles/lib/index.js +13 -0
- package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/defaults.js +2888 -0
- package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/proxies.js +111 -0
- package/.output/server/node_modules/aws-ssl-profiles/package.json +52 -0
- package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
- package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
- package/.output/server/node_modules/better-sqlite3/package.json +59 -0
- package/.output/server/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
- package/.output/server/node_modules/cpu-features/lib/index.js +5 -0
- package/.output/server/node_modules/cpu-features/package.json +40 -0
- package/.output/server/node_modules/denque/index.js +481 -0
- package/.output/server/node_modules/denque/package.json +58 -0
- package/.output/server/node_modules/generate-function/index.js +181 -0
- package/.output/server/node_modules/generate-function/package.json +32 -0
- package/.output/server/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/.output/server/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/.output/server/node_modules/iconv-lite/encodings/index.js +23 -0
- package/.output/server/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/.output/server/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/.output/server/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/.output/server/node_modules/iconv-lite/lib/index.js +182 -0
- package/.output/server/node_modules/iconv-lite/lib/streams.js +105 -0
- package/.output/server/node_modules/iconv-lite/package.json +70 -0
- package/.output/server/node_modules/is-property/is-property.js +5 -0
- package/.output/server/node_modules/is-property/package.json +36 -0
- package/.output/server/node_modules/long/package.json +58 -0
- package/.output/server/node_modules/long/umd/index.js +1622 -0
- package/.output/server/node_modules/long/umd/package.json +3 -0
- package/.output/server/node_modules/lru.min/lib/index.js +248 -0
- package/.output/server/node_modules/lru.min/package.json +87 -0
- package/.output/server/node_modules/mysql2/index.js +77 -0
- package/.output/server/node_modules/mysql2/lib/auth_41.js +95 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js +115 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/index.js +8 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_clear_password.js +17 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_native_password.js +34 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/sha256_password.js +74 -0
- package/.output/server/node_modules/mysql2/lib/base/connection.js +1139 -0
- package/.output/server/node_modules/mysql2/lib/base/pool.js +343 -0
- package/.output/server/node_modules/mysql2/lib/commands/auth_switch.js +151 -0
- package/.output/server/node_modules/mysql2/lib/commands/binlog_dump.js +109 -0
- package/.output/server/node_modules/mysql2/lib/commands/change_user.js +68 -0
- package/.output/server/node_modules/mysql2/lib/commands/client_handshake.js +386 -0
- package/.output/server/node_modules/mysql2/lib/commands/close_statement.js +18 -0
- package/.output/server/node_modules/mysql2/lib/commands/command.js +54 -0
- package/.output/server/node_modules/mysql2/lib/commands/execute.js +116 -0
- package/.output/server/node_modules/mysql2/lib/commands/index.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/ping.js +36 -0
- package/.output/server/node_modules/mysql2/lib/commands/prepare.js +143 -0
- package/.output/server/node_modules/mysql2/lib/commands/query.js +365 -0
- package/.output/server/node_modules/mysql2/lib/commands/quit.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/register_slave.js +27 -0
- package/.output/server/node_modules/mysql2/lib/commands/reset_connection.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/server_handshake.js +205 -0
- package/.output/server/node_modules/mysql2/lib/compressed_protocol.js +153 -0
- package/.output/server/node_modules/mysql2/lib/connection.js +12 -0
- package/.output/server/node_modules/mysql2/lib/connection_config.js +299 -0
- package/.output/server/node_modules/mysql2/lib/constants/charset_encodings.js +317 -0
- package/.output/server/node_modules/mysql2/lib/constants/charsets.js +317 -0
- package/.output/server/node_modules/mysql2/lib/constants/client.js +39 -0
- package/.output/server/node_modules/mysql2/lib/constants/commands.js +37 -0
- package/.output/server/node_modules/mysql2/lib/constants/cursor.js +9 -0
- package/.output/server/node_modules/mysql2/lib/constants/encoding_charset.js +50 -0
- package/.output/server/node_modules/mysql2/lib/constants/errors.js +3973 -0
- package/.output/server/node_modules/mysql2/lib/constants/field_flags.js +20 -0
- package/.output/server/node_modules/mysql2/lib/constants/server_status.js +44 -0
- package/.output/server/node_modules/mysql2/lib/constants/session_track.js +11 -0
- package/.output/server/node_modules/mysql2/lib/constants/ssl_profiles.js +11 -0
- package/.output/server/node_modules/mysql2/lib/constants/types.js +64 -0
- package/.output/server/node_modules/mysql2/lib/create_connection.js +10 -0
- package/.output/server/node_modules/mysql2/lib/create_pool.js +10 -0
- package/.output/server/node_modules/mysql2/lib/create_pool_cluster.js +9 -0
- package/.output/server/node_modules/mysql2/lib/helpers.js +83 -0
- package/.output/server/node_modules/mysql2/lib/packet_parser.js +195 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_next_factor.js +35 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request.js +38 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request_more_data.js +33 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_response.js +30 -0
- package/.output/server/node_modules/mysql2/lib/packets/binary_row.js +95 -0
- package/.output/server/node_modules/mysql2/lib/packets/binlog_dump.js +33 -0
- package/.output/server/node_modules/mysql2/lib/packets/binlog_query_statusvars.js +115 -0
- package/.output/server/node_modules/mysql2/lib/packets/change_user.js +97 -0
- package/.output/server/node_modules/mysql2/lib/packets/close_statement.js +21 -0
- package/.output/server/node_modules/mysql2/lib/packets/column_definition.js +291 -0
- package/.output/server/node_modules/mysql2/lib/packets/encode_parameter.js +69 -0
- package/.output/server/node_modules/mysql2/lib/packets/execute.js +177 -0
- package/.output/server/node_modules/mysql2/lib/packets/handshake.js +112 -0
- package/.output/server/node_modules/mysql2/lib/packets/handshake_response.js +173 -0
- package/.output/server/node_modules/mysql2/lib/packets/index.js +154 -0
- package/.output/server/node_modules/mysql2/lib/packets/packet.js +978 -0
- package/.output/server/node_modules/mysql2/lib/packets/prepare_statement.js +27 -0
- package/.output/server/node_modules/mysql2/lib/packets/prepared_statement_header.js +16 -0
- package/.output/server/node_modules/mysql2/lib/packets/query.js +102 -0
- package/.output/server/node_modules/mysql2/lib/packets/register_slave.js +46 -0
- package/.output/server/node_modules/mysql2/lib/packets/reset_connection.js +17 -0
- package/.output/server/node_modules/mysql2/lib/packets/resultset_header.js +124 -0
- package/.output/server/node_modules/mysql2/lib/packets/ssl_request.js +25 -0
- package/.output/server/node_modules/mysql2/lib/packets/text_row.js +47 -0
- package/.output/server/node_modules/mysql2/lib/parsers/binary_parser.js +235 -0
- package/.output/server/node_modules/mysql2/lib/parsers/parser_cache.js +68 -0
- package/.output/server/node_modules/mysql2/lib/parsers/static_binary_parser.js +213 -0
- package/.output/server/node_modules/mysql2/lib/parsers/static_text_parser.js +152 -0
- package/.output/server/node_modules/mysql2/lib/parsers/string.js +50 -0
- package/.output/server/node_modules/mysql2/lib/parsers/text_parser.js +214 -0
- package/.output/server/node_modules/mysql2/lib/pool.js +12 -0
- package/.output/server/node_modules/mysql2/lib/pool_cluster.js +375 -0
- package/.output/server/node_modules/mysql2/lib/pool_config.js +34 -0
- package/.output/server/node_modules/mysql2/lib/pool_connection.js +81 -0
- package/.output/server/node_modules/mysql2/lib/promise/capture_local_err.js +25 -0
- package/.output/server/node_modules/mysql2/lib/promise/connection.js +237 -0
- package/.output/server/node_modules/mysql2/lib/promise/inherit_events.js +27 -0
- package/.output/server/node_modules/mysql2/lib/promise/make_done_cb.js +16 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool.js +118 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool_cluster.js +59 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool_connection.js +19 -0
- package/.output/server/node_modules/mysql2/lib/promise/prepared_statement_info.js +35 -0
- package/.output/server/node_modules/mysql2/lib/server.js +37 -0
- package/.output/server/node_modules/mysql2/lib/tracing.js +81 -0
- package/.output/server/node_modules/mysql2/package.json +95 -0
- package/.output/server/node_modules/mysql2/promise.js +209 -0
- package/.output/server/node_modules/named-placeholders/index.js +179 -0
- package/.output/server/node_modules/named-placeholders/package.json +36 -0
- package/.output/server/node_modules/oracledb/index.js +27 -0
- package/.output/server/node_modules/oracledb/lib/aqDeqOptions.js +186 -0
- package/.output/server/node_modules/oracledb/lib/aqEnqOptions.js +81 -0
- package/.output/server/node_modules/oracledb/lib/aqMessage.js +149 -0
- package/.output/server/node_modules/oracledb/lib/aqQueue.js +293 -0
- package/.output/server/node_modules/oracledb/lib/connection.js +1842 -0
- package/.output/server/node_modules/oracledb/lib/constants.js +210 -0
- package/.output/server/node_modules/oracledb/lib/dbObject.js +606 -0
- package/.output/server/node_modules/oracledb/lib/errors.js +1046 -0
- package/.output/server/node_modules/oracledb/lib/future.js +53 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqDeqOptions.js +206 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqEnqOptions.js +89 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqMessage.js +134 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqQueue.js +82 -0
- package/.output/server/node_modules/oracledb/lib/impl/base.js +45 -0
- package/.output/server/node_modules/oracledb/lib/impl/connection.js +671 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/buffer.js +1214 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/constants.js +110 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/oson.js +852 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/vector.js +197 -0
- package/.output/server/node_modules/oracledb/lib/impl/dbObject.js +159 -0
- package/.output/server/node_modules/oracledb/lib/impl/index.js +59 -0
- package/.output/server/node_modules/oracledb/lib/impl/lob.js +113 -0
- package/.output/server/node_modules/oracledb/lib/impl/pool.js +230 -0
- package/.output/server/node_modules/oracledb/lib/impl/resultset.js +307 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaCollection.js +175 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDatabase.js +82 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDocCursor.js +64 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDocument.js +89 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaOperation.js +110 -0
- package/.output/server/node_modules/oracledb/lib/lob.js +315 -0
- package/.output/server/node_modules/oracledb/lib/oracledb.js +1716 -0
- package/.output/server/node_modules/oracledb/lib/pool.js +873 -0
- package/.output/server/node_modules/oracledb/lib/poolStatistics.js +143 -0
- package/.output/server/node_modules/oracledb/lib/queryStream.js +119 -0
- package/.output/server/node_modules/oracledb/lib/resultset.js +368 -0
- package/.output/server/node_modules/oracledb/lib/settings.js +221 -0
- package/.output/server/node_modules/oracledb/lib/sodaCollection.js +284 -0
- package/.output/server/node_modules/oracledb/lib/sodaDatabase.js +176 -0
- package/.output/server/node_modules/oracledb/lib/sodaDocCursor.js +82 -0
- package/.output/server/node_modules/oracledb/lib/sodaDocument.js +125 -0
- package/.output/server/node_modules/oracledb/lib/sodaOperation.js +236 -0
- package/.output/server/node_modules/oracledb/lib/thin/aq.js +475 -0
- package/.output/server/node_modules/oracledb/lib/thin/connection.js +1504 -0
- package/.output/server/node_modules/oracledb/lib/thin/dbObject.js +737 -0
- package/.output/server/node_modules/oracledb/lib/thin/index.js +40 -0
- package/.output/server/node_modules/oracledb/lib/thin/lob.js +380 -0
- package/.output/server/node_modules/oracledb/lib/thin/pool.js +738 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/capabilities.js +145 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/constants.js +872 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/encryptDecrypt.js +197 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqArray.js +238 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqBase.js +305 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqDeq.js +164 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqEnq.js +135 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/auth.js +376 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/base.js +568 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/commit.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/dataType.js +401 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/execute.js +358 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fastAuth.js +83 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fetch.js +64 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/index.js +59 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/lobOp.js +195 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/logOff.js +52 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/ping.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/protocol.js +97 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/rollback.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/sessionRelease.js +60 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionChangeState.js +99 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionSwitch.js +147 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/withData.js +920 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/packet.js +631 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/protocol.js +240 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/utils.js +82 -0
- package/.output/server/node_modules/oracledb/lib/thin/resultSet.js +122 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ANO.js +438 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/connStrategy.js +316 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/constants.js +210 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ezConnectResolver.js +466 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/navNodes.js +904 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/networkSession.js +733 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js +609 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/nvStrToNvPair.js +780 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/packet.js +439 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/paramParser.js +239 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/sessionAtts.js +198 -0
- package/.output/server/node_modules/oracledb/lib/thin/statement.js +573 -0
- package/.output/server/node_modules/oracledb/lib/thin/statementCache.js +195 -0
- package/.output/server/node_modules/oracledb/lib/thin/util.js +254 -0
- package/.output/server/node_modules/oracledb/lib/traceHandler.js +133 -0
- package/.output/server/node_modules/oracledb/lib/transformer.js +279 -0
- package/.output/server/node_modules/oracledb/lib/types.js +592 -0
- package/.output/server/node_modules/oracledb/lib/util.js +648 -0
- package/.output/server/node_modules/oracledb/lib/version.js +36 -0
- package/.output/server/node_modules/oracledb/package.json +48 -0
- package/.output/server/node_modules/sql-escaper/lib/index.js +398 -0
- package/.output/server/node_modules/sql-escaper/package.json +81 -0
- package/.output/server/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
- package/.output/server/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- package/.output/server/package.json +14 -18
- package/package.json +2 -2
- package/.output/public/_nuxt/019vQzZn.js +0 -1
- package/.output/public/_nuxt/0lRW_xjL.js +0 -1
- package/.output/public/_nuxt/B6EI6PpE.js +0 -1
- package/.output/public/_nuxt/B9Mt45db.js +0 -1
- package/.output/public/_nuxt/BKltSiU0.js +0 -1
- package/.output/public/_nuxt/BM4vnZvX.js +0 -732
- package/.output/public/_nuxt/BNYR501z.js +0 -1
- package/.output/public/_nuxt/BVLVn__t.js +0 -9
- package/.output/public/_nuxt/BY1l0S_M.js +0 -1
- package/.output/public/_nuxt/BaseCodeEditor.SAr2eD8R.css +0 -1
- package/.output/public/_nuxt/BcvJQkv0.js +0 -1
- package/.output/public/_nuxt/BdN9B2_l.js +0 -160
- package/.output/public/_nuxt/BflvengI.js +0 -1
- package/.output/public/_nuxt/BgolbRTO.js +0 -1
- package/.output/public/_nuxt/BwISH3M4.js +0 -1
- package/.output/public/_nuxt/C-M4q4KX.js +0 -1
- package/.output/public/_nuxt/C2Ziircr.js +0 -1
- package/.output/public/_nuxt/C3NWXcpd.js +0 -39
- package/.output/public/_nuxt/C5p44jKD.js +0 -1
- package/.output/public/_nuxt/C617vhDd.js +0 -1
- package/.output/public/_nuxt/C8S0o4Gy.js +0 -1
- package/.output/public/_nuxt/CNlsVoWh.js +0 -1
- package/.output/public/_nuxt/CWkPMmwS.js +0 -2
- package/.output/public/_nuxt/Cgy4ijjN.js +0 -67
- package/.output/public/_nuxt/ClBBUcFW.js +0 -1
- package/.output/public/_nuxt/CuRyxljq.js +0 -1
- package/.output/public/_nuxt/Cx4Bnfq1.js +0 -2
- package/.output/public/_nuxt/D-H6_V16.js +0 -1
- package/.output/public/_nuxt/D-SDqguC.js +0 -1
- package/.output/public/_nuxt/D-XwprNU.js +0 -6
- package/.output/public/_nuxt/D3G5Xy_-.js +0 -1
- package/.output/public/_nuxt/D9o5Pdvp.js +0 -1
- package/.output/public/_nuxt/DFArp87o.js +0 -1
- package/.output/public/_nuxt/DFZIXzfU.js +0 -1
- package/.output/public/_nuxt/DHRNt0p9.js +0 -1
- package/.output/public/_nuxt/DLKku6fV.js +0 -1
- package/.output/public/_nuxt/DWgjNKGq.js +0 -152
- package/.output/public/_nuxt/DYm57BZk.js +0 -2
- package/.output/public/_nuxt/DaQw8gVp.js +0 -1
- package/.output/public/_nuxt/DgnsV5Qb.js +0 -1
- package/.output/public/_nuxt/Do5Fyo7J.js +0 -1
- package/.output/public/_nuxt/Dqirx7MF.js +0 -1
- package/.output/public/_nuxt/GoTwJjoS.js +0 -39
- package/.output/public/_nuxt/Hs25HoUO.js +0 -22
- package/.output/public/_nuxt/J2CvNR3L.js +0 -1
- package/.output/public/_nuxt/LK6Q8l0D.js +0 -1
- package/.output/public/_nuxt/Oh9SO2qg.js +0 -1
- package/.output/public/_nuxt/P_8UoGnr.js +0 -72
- package/.output/public/_nuxt/V5yaR3hv.js +0 -2
- package/.output/public/_nuxt/XWTuAj6n.js +0 -1
- package/.output/public/_nuxt/XqwbcqcW.js +0 -1
- package/.output/public/_nuxt/Yzrsuije.js +0 -1
- package/.output/public/_nuxt/_8UrUcVF.js +0 -1
- package/.output/public/_nuxt/builds/meta/27a307c3-bfc5-4ccd-94b8-387eb94981bb.json +0 -1
- package/.output/public/_nuxt/cKBf5-av.js +0 -1
- package/.output/public/_nuxt/entry.DeK5kcSi.css +0 -1
- package/.output/public/_nuxt/kc-op4gz.js +0 -12
- package/.output/public/_nuxt/kehy-5uo.js +0 -1
- package/.output/public/_nuxt/lSaGvORn.js +0 -10
- package/.output/public/_nuxt/lY3EyFEK.js +0 -1
- package/.output/public/_nuxt/tMhdAKU2.js +0 -3
- package/.output/public/_nuxt/uyCIL8xw.js +0 -1
- package/.output/server/node_modules/cross-spawn/index.js +0 -39
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/.output/server/node_modules/cross-spawn/package.json +0 -73
- package/.output/server/node_modules/execa/index.js +0 -268
- package/.output/server/node_modules/execa/lib/command.js +0 -52
- package/.output/server/node_modules/execa/lib/error.js +0 -88
- package/.output/server/node_modules/execa/lib/kill.js +0 -115
- package/.output/server/node_modules/execa/lib/promise.js +0 -46
- package/.output/server/node_modules/execa/lib/stdio.js +0 -52
- package/.output/server/node_modules/execa/lib/stream.js +0 -97
- package/.output/server/node_modules/execa/package.json +0 -74
- package/.output/server/node_modules/get-stream/buffer-stream.js +0 -52
- package/.output/server/node_modules/get-stream/index.js +0 -61
- package/.output/server/node_modules/get-stream/package.json +0 -47
- package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
- package/.output/server/node_modules/human-signals/build/src/main.js +0 -71
- package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
- package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
- package/.output/server/node_modules/human-signals/package.json +0 -64
- package/.output/server/node_modules/is-stream/index.js +0 -28
- package/.output/server/node_modules/is-stream/package.json +0 -42
- package/.output/server/node_modules/isexe/index.js +0 -57
- package/.output/server/node_modules/isexe/mode.js +0 -41
- package/.output/server/node_modules/isexe/package.json +0 -31
- package/.output/server/node_modules/isexe/windows.js +0 -42
- package/.output/server/node_modules/merge-stream/index.js +0 -41
- package/.output/server/node_modules/merge-stream/package.json +0 -19
- package/.output/server/node_modules/mimic-fn/index.js +0 -13
- package/.output/server/node_modules/mimic-fn/package.json +0 -42
- package/.output/server/node_modules/npm-run-path/index.js +0 -47
- package/.output/server/node_modules/npm-run-path/package.json +0 -44
- package/.output/server/node_modules/onetime/index.js +0 -44
- package/.output/server/node_modules/onetime/package.json +0 -43
- package/.output/server/node_modules/path-key/index.js +0 -16
- package/.output/server/node_modules/path-key/package.json +0 -39
- package/.output/server/node_modules/pg-dump-restore/lib/common.js +0 -33
- package/.output/server/node_modules/pg-dump-restore/lib/index.js +0 -9
- package/.output/server/node_modules/pg-dump-restore/lib/pg-dump.js +0 -95
- package/.output/server/node_modules/pg-dump-restore/lib/pg-restore.js +0 -87
- package/.output/server/node_modules/pg-dump-restore/package.json +0 -66
- package/.output/server/node_modules/shebang-command/index.js +0 -19
- package/.output/server/node_modules/shebang-command/package.json +0 -34
- package/.output/server/node_modules/shebang-regex/index.js +0 -2
- package/.output/server/node_modules/shebang-regex/package.json +0 -35
- package/.output/server/node_modules/signal-exit/index.js +0 -202
- package/.output/server/node_modules/signal-exit/package.json +0 -38
- package/.output/server/node_modules/signal-exit/signals.js +0 -53
- package/.output/server/node_modules/strip-final-newline/index.js +0 -16
- package/.output/server/node_modules/strip-final-newline/package.json +0 -40
- package/.output/server/node_modules/which/package.json +0 -43
- package/.output/server/node_modules/which/which.js +0 -125
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Types = require('../constants/types');
|
|
4
|
+
const Packet = require('../packets/packet');
|
|
5
|
+
|
|
6
|
+
const binaryReader = new Array(256);
|
|
7
|
+
|
|
8
|
+
class BinaryRow {
|
|
9
|
+
constructor(columns) {
|
|
10
|
+
this.columns = columns || [];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static toPacket(columns, encoding) {
|
|
14
|
+
// throw new Error('Not implemented');
|
|
15
|
+
const sequenceId = 0; // TODO remove, this is calculated now in connecton
|
|
16
|
+
let length = 0;
|
|
17
|
+
columns.forEach((val) => {
|
|
18
|
+
if (val === null || typeof val === 'undefined') {
|
|
19
|
+
++length;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
length += Packet.lengthCodedStringLength(val.toString(10), encoding);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
length = length + 2;
|
|
26
|
+
|
|
27
|
+
const buffer = Buffer.allocUnsafe(length + 4);
|
|
28
|
+
const packet = new Packet(sequenceId, buffer, 0, length + 4);
|
|
29
|
+
packet.offset = 4;
|
|
30
|
+
|
|
31
|
+
packet.writeInt8(0);
|
|
32
|
+
|
|
33
|
+
let bitmap = 0;
|
|
34
|
+
let bitValue = 1;
|
|
35
|
+
columns.forEach((parameter) => {
|
|
36
|
+
if (parameter.type === Types.NULL) {
|
|
37
|
+
bitmap += bitValue;
|
|
38
|
+
}
|
|
39
|
+
bitValue *= 2;
|
|
40
|
+
if (bitValue === 256) {
|
|
41
|
+
packet.writeInt8(bitmap);
|
|
42
|
+
bitmap = 0;
|
|
43
|
+
bitValue = 1;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
if (bitValue !== 1) {
|
|
47
|
+
packet.writeInt8(bitmap);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
columns.forEach((val) => {
|
|
51
|
+
if (val === null) {
|
|
52
|
+
packet.writeNull();
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (typeof val === 'undefined') {
|
|
56
|
+
packet.writeInt8(0);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
packet.writeLengthCodedString(val.toString(10), encoding);
|
|
60
|
+
});
|
|
61
|
+
return packet;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// TODO: complete list of types...
|
|
65
|
+
static fromPacket(fields, packet) {
|
|
66
|
+
const columns = new Array(fields.length);
|
|
67
|
+
packet.readInt8(); // TODO check it's 0
|
|
68
|
+
const nullBitmapLength = Math.floor((fields.length + 7 + 2) / 8);
|
|
69
|
+
// TODO: read and interpret null bitmap
|
|
70
|
+
packet.skip(nullBitmapLength);
|
|
71
|
+
for (let i = 0; i < columns.length; ++i) {
|
|
72
|
+
columns[i] = binaryReader[fields[i].columnType].apply(packet);
|
|
73
|
+
}
|
|
74
|
+
return new BinaryRow(columns);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// TODO: replace with constants.MYSQL_TYPE_*
|
|
79
|
+
binaryReader[Types.DECIMAL] = Packet.prototype.readLengthCodedString;
|
|
80
|
+
binaryReader[1] = Packet.prototype.readInt8; // tiny
|
|
81
|
+
binaryReader[2] = Packet.prototype.readInt16; // short
|
|
82
|
+
binaryReader[3] = Packet.prototype.readInt32; // long
|
|
83
|
+
binaryReader[4] = Packet.prototype.readFloat; // float
|
|
84
|
+
binaryReader[5] = Packet.prototype.readDouble; // double
|
|
85
|
+
binaryReader[6] = Packet.prototype.assertInvalid; // null, should be skipped vie null bitmap
|
|
86
|
+
binaryReader[7] = Packet.prototype.readTimestamp; // timestamp, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_TIMESTAMP
|
|
87
|
+
binaryReader[8] = Packet.prototype.readInt64; // long long
|
|
88
|
+
binaryReader[9] = Packet.prototype.readInt32; // int24
|
|
89
|
+
binaryReader[10] = Packet.prototype.readTimestamp; // date
|
|
90
|
+
binaryReader[11] = Packet.prototype.readTime; // time, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_TIME
|
|
91
|
+
binaryReader[12] = Packet.prototype.readDateTime; // datetime, http://dev.mysql.com/doc/internals/en/prepared-statements.html#packet-ProtocolBinary::MYSQL_TYPE_DATETIME
|
|
92
|
+
binaryReader[13] = Packet.prototype.readInt16; // year
|
|
93
|
+
binaryReader[Types.VAR_STRING] = Packet.prototype.readLengthCodedString; // var string
|
|
94
|
+
|
|
95
|
+
module.exports = BinaryRow;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// http://dev.mysql.com/doc/internals/en/com-binlog-dump.html#packet-COM_BINLOG_DUMP
|
|
4
|
+
|
|
5
|
+
const Packet = require('../packets/packet');
|
|
6
|
+
const CommandCodes = require('../constants/commands');
|
|
7
|
+
|
|
8
|
+
// TODO: add flag to constants
|
|
9
|
+
// 0x01 - BINLOG_DUMP_NON_BLOCK
|
|
10
|
+
// send EOF instead of blocking
|
|
11
|
+
class BinlogDump {
|
|
12
|
+
constructor(opts) {
|
|
13
|
+
this.binlogPos = opts.binlogPos || 0;
|
|
14
|
+
this.serverId = opts.serverId || 0;
|
|
15
|
+
this.flags = opts.flags || 0;
|
|
16
|
+
this.filename = opts.filename || '';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
toPacket() {
|
|
20
|
+
const length = 15 + Buffer.byteLength(this.filename, 'utf8'); // TODO: should be ascii?
|
|
21
|
+
const buffer = Buffer.allocUnsafe(length);
|
|
22
|
+
const packet = new Packet(0, buffer, 0, length);
|
|
23
|
+
packet.offset = 4;
|
|
24
|
+
packet.writeInt8(CommandCodes.BINLOG_DUMP);
|
|
25
|
+
packet.writeInt32(this.binlogPos);
|
|
26
|
+
packet.writeInt16(this.flags);
|
|
27
|
+
packet.writeInt32(this.serverId);
|
|
28
|
+
packet.writeString(this.filename);
|
|
29
|
+
return packet;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = BinlogDump;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// http://dev.mysql.com/doc/internals/en/query-event.html
|
|
4
|
+
|
|
5
|
+
const keys = {
|
|
6
|
+
FLAGS2: 0,
|
|
7
|
+
SQL_MODE: 1,
|
|
8
|
+
CATALOG: 2,
|
|
9
|
+
AUTO_INCREMENT: 3,
|
|
10
|
+
CHARSET: 4,
|
|
11
|
+
TIME_ZONE: 5,
|
|
12
|
+
CATALOG_NZ: 6,
|
|
13
|
+
LC_TIME_NAMES: 7,
|
|
14
|
+
CHARSET_DATABASE: 8,
|
|
15
|
+
TABLE_MAP_FOR_UPDATE: 9,
|
|
16
|
+
MASTER_DATA_WRITTEN: 10,
|
|
17
|
+
INVOKERS: 11,
|
|
18
|
+
UPDATED_DB_NAMES: 12,
|
|
19
|
+
MICROSECONDS: 3,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
module.exports = function parseStatusVars(buffer) {
|
|
23
|
+
const result = {};
|
|
24
|
+
let offset = 0;
|
|
25
|
+
let key, length, prevOffset;
|
|
26
|
+
while (offset < buffer.length) {
|
|
27
|
+
key = buffer[offset++];
|
|
28
|
+
switch (key) {
|
|
29
|
+
case keys.FLAGS2:
|
|
30
|
+
result.flags = buffer.readUInt32LE(offset);
|
|
31
|
+
offset += 4;
|
|
32
|
+
break;
|
|
33
|
+
case keys.SQL_MODE:
|
|
34
|
+
// value is 8 bytes, but all dcumented flags are in first 4 bytes
|
|
35
|
+
result.sqlMode = buffer.readUInt32LE(offset);
|
|
36
|
+
offset += 8;
|
|
37
|
+
break;
|
|
38
|
+
case keys.CATALOG:
|
|
39
|
+
length = buffer[offset++];
|
|
40
|
+
result.catalog = buffer.toString('utf8', offset, offset + length);
|
|
41
|
+
offset += length + 1; // null byte after string
|
|
42
|
+
break;
|
|
43
|
+
case keys.CHARSET:
|
|
44
|
+
result.clientCharset = buffer.readUInt16LE(offset);
|
|
45
|
+
result.connectionCollation = buffer.readUInt16LE(offset + 2);
|
|
46
|
+
result.serverCharset = buffer.readUInt16LE(offset + 4);
|
|
47
|
+
offset += 6;
|
|
48
|
+
break;
|
|
49
|
+
case keys.TIME_ZONE:
|
|
50
|
+
length = buffer[offset++];
|
|
51
|
+
result.timeZone = buffer.toString('utf8', offset, offset + length);
|
|
52
|
+
offset += length; // no null byte
|
|
53
|
+
break;
|
|
54
|
+
case keys.CATALOG_NZ:
|
|
55
|
+
length = buffer[offset++];
|
|
56
|
+
result.catalogNz = buffer.toString('utf8', offset, offset + length);
|
|
57
|
+
offset += length; // no null byte
|
|
58
|
+
break;
|
|
59
|
+
case keys.LC_TIME_NAMES:
|
|
60
|
+
result.lcTimeNames = buffer.readUInt16LE(offset);
|
|
61
|
+
offset += 2;
|
|
62
|
+
break;
|
|
63
|
+
case keys.CHARSET_DATABASE:
|
|
64
|
+
result.schemaCharset = buffer.readUInt16LE(offset);
|
|
65
|
+
offset += 2;
|
|
66
|
+
break;
|
|
67
|
+
case keys.TABLE_MAP_FOR_UPDATE:
|
|
68
|
+
result.mapForUpdate1 = buffer.readUInt32LE(offset);
|
|
69
|
+
result.mapForUpdate2 = buffer.readUInt32LE(offset + 4);
|
|
70
|
+
offset += 8;
|
|
71
|
+
break;
|
|
72
|
+
case keys.MASTER_DATA_WRITTEN:
|
|
73
|
+
result.masterDataWritten = buffer.readUInt32LE(offset);
|
|
74
|
+
offset += 4;
|
|
75
|
+
break;
|
|
76
|
+
case keys.INVOKERS:
|
|
77
|
+
length = buffer[offset++];
|
|
78
|
+
result.invokerUsername = buffer.toString(
|
|
79
|
+
'utf8',
|
|
80
|
+
offset,
|
|
81
|
+
offset + length
|
|
82
|
+
);
|
|
83
|
+
offset += length;
|
|
84
|
+
length = buffer[offset++];
|
|
85
|
+
result.invokerHostname = buffer.toString(
|
|
86
|
+
'utf8',
|
|
87
|
+
offset,
|
|
88
|
+
offset + length
|
|
89
|
+
);
|
|
90
|
+
offset += length;
|
|
91
|
+
break;
|
|
92
|
+
case keys.UPDATED_DB_NAMES:
|
|
93
|
+
length = buffer[offset++];
|
|
94
|
+
// length - number of null-terminated strings
|
|
95
|
+
result.updatedDBs = []; // we'll store them as array here
|
|
96
|
+
for (; length; --length) {
|
|
97
|
+
prevOffset = offset;
|
|
98
|
+
// fast forward to null terminating byte
|
|
99
|
+
while (buffer[offset++] && offset < buffer.length) {
|
|
100
|
+
// empty body, everything inside while condition
|
|
101
|
+
}
|
|
102
|
+
result.updatedDBs.push(
|
|
103
|
+
buffer.toString('utf8', prevOffset, offset - 1)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
case keys.MICROSECONDS:
|
|
108
|
+
result.microseconds =
|
|
109
|
+
// REVIEW: INVALID UNKNOWN VARIABLE!
|
|
110
|
+
buffer.readInt16LE(offset) + (buffer[offset + 2] << 16);
|
|
111
|
+
offset += 3;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return result;
|
|
115
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CommandCode = require('../constants/commands.js');
|
|
4
|
+
const ClientConstants = require('../constants/client.js');
|
|
5
|
+
const Packet = require('../packets/packet.js');
|
|
6
|
+
const auth41 = require('../auth_41.js');
|
|
7
|
+
const CharsetToEncoding = require('../constants/charset_encodings.js');
|
|
8
|
+
|
|
9
|
+
// https://dev.mysql.com/doc/internals/en/com-change-user.html#packet-COM_CHANGE_USER
|
|
10
|
+
class ChangeUser {
|
|
11
|
+
constructor(opts) {
|
|
12
|
+
this.flags = opts.flags;
|
|
13
|
+
this.user = opts.user || '';
|
|
14
|
+
this.database = opts.database || '';
|
|
15
|
+
this.password = opts.password || '';
|
|
16
|
+
this.passwordSha1 = opts.passwordSha1;
|
|
17
|
+
this.authPluginData1 = opts.authPluginData1;
|
|
18
|
+
this.authPluginData2 = opts.authPluginData2;
|
|
19
|
+
this.connectAttributes = opts.connectAttrinutes || {};
|
|
20
|
+
let authToken;
|
|
21
|
+
if (this.passwordSha1) {
|
|
22
|
+
authToken = auth41.calculateTokenFromPasswordSha(
|
|
23
|
+
this.passwordSha1,
|
|
24
|
+
this.authPluginData1,
|
|
25
|
+
this.authPluginData2
|
|
26
|
+
);
|
|
27
|
+
} else {
|
|
28
|
+
authToken = auth41.calculateToken(
|
|
29
|
+
this.password,
|
|
30
|
+
this.authPluginData1,
|
|
31
|
+
this.authPluginData2
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
this.authToken = authToken;
|
|
35
|
+
this.charsetNumber = opts.charsetNumber;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// TODO
|
|
39
|
+
// ChangeUser.fromPacket = function(packet)
|
|
40
|
+
// };
|
|
41
|
+
serializeToBuffer(buffer) {
|
|
42
|
+
const isSet = (flag) => this.flags & ClientConstants[flag];
|
|
43
|
+
const packet = new Packet(0, buffer, 0, buffer.length);
|
|
44
|
+
packet.offset = 4;
|
|
45
|
+
const encoding = CharsetToEncoding[this.charsetNumber];
|
|
46
|
+
packet.writeInt8(CommandCode.CHANGE_USER);
|
|
47
|
+
packet.writeNullTerminatedString(this.user, encoding);
|
|
48
|
+
if (isSet('SECURE_CONNECTION')) {
|
|
49
|
+
packet.writeInt8(this.authToken.length);
|
|
50
|
+
packet.writeBuffer(this.authToken);
|
|
51
|
+
} else {
|
|
52
|
+
packet.writeBuffer(this.authToken);
|
|
53
|
+
packet.writeInt8(0);
|
|
54
|
+
}
|
|
55
|
+
packet.writeNullTerminatedString(this.database, encoding);
|
|
56
|
+
packet.writeInt16(this.charsetNumber);
|
|
57
|
+
if (isSet('PLUGIN_AUTH')) {
|
|
58
|
+
// TODO: read this from parameters
|
|
59
|
+
packet.writeNullTerminatedString('mysql_native_password', 'latin1');
|
|
60
|
+
}
|
|
61
|
+
if (isSet('CONNECT_ATTRS')) {
|
|
62
|
+
const connectAttributes = this.connectAttributes;
|
|
63
|
+
const attrNames = Object.keys(connectAttributes);
|
|
64
|
+
let keysLength = 0;
|
|
65
|
+
for (let k = 0; k < attrNames.length; ++k) {
|
|
66
|
+
keysLength += Packet.lengthCodedStringLength(attrNames[k], encoding);
|
|
67
|
+
keysLength += Packet.lengthCodedStringLength(
|
|
68
|
+
connectAttributes[attrNames[k]],
|
|
69
|
+
encoding
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
packet.writeLengthCodedNumber(keysLength);
|
|
73
|
+
for (let k = 0; k < attrNames.length; ++k) {
|
|
74
|
+
packet.writeLengthCodedString(attrNames[k], encoding);
|
|
75
|
+
packet.writeLengthCodedString(
|
|
76
|
+
connectAttributes[attrNames[k]],
|
|
77
|
+
encoding
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return packet;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
toPacket() {
|
|
85
|
+
if (typeof this.user !== 'string') {
|
|
86
|
+
throw new Error('"user" connection config property must be a string');
|
|
87
|
+
}
|
|
88
|
+
if (typeof this.database !== 'string') {
|
|
89
|
+
throw new Error('"database" connection config property must be a string');
|
|
90
|
+
}
|
|
91
|
+
// dry run: calculate resulting packet length
|
|
92
|
+
const p = this.serializeToBuffer(Packet.MockBuffer());
|
|
93
|
+
return this.serializeToBuffer(Buffer.allocUnsafe(p.offset));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
module.exports = ChangeUser;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Packet = require('../packets/packet');
|
|
4
|
+
const CommandCodes = require('../constants/commands');
|
|
5
|
+
|
|
6
|
+
class CloseStatement {
|
|
7
|
+
constructor(id) {
|
|
8
|
+
this.id = id;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// note: no response sent back
|
|
12
|
+
toPacket() {
|
|
13
|
+
const packet = new Packet(0, Buffer.allocUnsafe(9), 0, 9);
|
|
14
|
+
packet.offset = 4;
|
|
15
|
+
packet.writeInt8(CommandCodes.STMT_CLOSE);
|
|
16
|
+
packet.writeInt32(this.id);
|
|
17
|
+
return packet;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = CloseStatement;
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Packet = require('../packets/packet');
|
|
4
|
+
const StringParser = require('../parsers/string');
|
|
5
|
+
const CharsetToEncoding = require('../constants/charset_encodings.js');
|
|
6
|
+
|
|
7
|
+
const fields = ['catalog', 'schema', 'table', 'orgTable', 'name', 'orgName'];
|
|
8
|
+
|
|
9
|
+
// creating JS string is relatively expensive (compared to
|
|
10
|
+
// reading few bytes from buffer) because all string properties
|
|
11
|
+
// except for name are unlikely to be used we postpone
|
|
12
|
+
// string conversion until property access
|
|
13
|
+
//
|
|
14
|
+
// TODO: watch for integration benchmarks (one with real network buffer)
|
|
15
|
+
// there could be bad side effect as keeping reference to a buffer makes it
|
|
16
|
+
// sit in the memory longer (usually until final .query() callback)
|
|
17
|
+
// Latest v8 perform much better in regard to bufferer -> string conversion,
|
|
18
|
+
// at some point of time this optimisation might become unnecessary
|
|
19
|
+
// see https://github.com/sidorares/node-mysql2/pull/137
|
|
20
|
+
//
|
|
21
|
+
class ColumnDefinition {
|
|
22
|
+
constructor(packet, clientEncoding) {
|
|
23
|
+
this._buf = packet.buffer;
|
|
24
|
+
this._clientEncoding = clientEncoding;
|
|
25
|
+
this._catalogLength = packet.readLengthCodedNumber();
|
|
26
|
+
this._catalogStart = packet.offset;
|
|
27
|
+
packet.offset += this._catalogLength;
|
|
28
|
+
this._schemaLength = packet.readLengthCodedNumber();
|
|
29
|
+
this._schemaStart = packet.offset;
|
|
30
|
+
packet.offset += this._schemaLength;
|
|
31
|
+
this._tableLength = packet.readLengthCodedNumber();
|
|
32
|
+
this._tableStart = packet.offset;
|
|
33
|
+
packet.offset += this._tableLength;
|
|
34
|
+
this._orgTableLength = packet.readLengthCodedNumber();
|
|
35
|
+
this._orgTableStart = packet.offset;
|
|
36
|
+
packet.offset += this._orgTableLength;
|
|
37
|
+
// name is always used, don't make it lazy
|
|
38
|
+
const _nameLength = packet.readLengthCodedNumber();
|
|
39
|
+
const _nameStart = packet.offset;
|
|
40
|
+
packet.offset += _nameLength;
|
|
41
|
+
this._orgNameLength = packet.readLengthCodedNumber();
|
|
42
|
+
this._orgNameStart = packet.offset;
|
|
43
|
+
packet.offset += this._orgNameLength;
|
|
44
|
+
packet.skip(1); // length of the following fields (always 0x0c)
|
|
45
|
+
this.characterSet = packet.readInt16();
|
|
46
|
+
this.encoding = CharsetToEncoding[this.characterSet];
|
|
47
|
+
this.name = StringParser.decode(
|
|
48
|
+
this._buf,
|
|
49
|
+
this.encoding === 'binary' ? this._clientEncoding : this.encoding,
|
|
50
|
+
_nameStart,
|
|
51
|
+
_nameStart + _nameLength
|
|
52
|
+
);
|
|
53
|
+
this.columnLength = packet.readInt32();
|
|
54
|
+
this.columnType = packet.readInt8();
|
|
55
|
+
this.type = this.columnType;
|
|
56
|
+
this.flags = packet.readInt16();
|
|
57
|
+
this.decimals = packet.readInt8();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
inspect() {
|
|
61
|
+
return {
|
|
62
|
+
catalog: this.catalog,
|
|
63
|
+
schema: this.schema,
|
|
64
|
+
name: this.name,
|
|
65
|
+
orgName: this.orgName,
|
|
66
|
+
table: this.table,
|
|
67
|
+
orgTable: this.orgTable,
|
|
68
|
+
characterSet: this.characterSet,
|
|
69
|
+
encoding: this.encoding,
|
|
70
|
+
columnLength: this.columnLength,
|
|
71
|
+
type: this.columnType,
|
|
72
|
+
flags: this.flags,
|
|
73
|
+
decimals: this.decimals,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[Symbol.for('nodejs.util.inspect.custom')](depth, inspectOptions, inspect) {
|
|
78
|
+
const Types = require('../constants/types.js');
|
|
79
|
+
const typeNames = [];
|
|
80
|
+
for (const t in Types) {
|
|
81
|
+
typeNames[Types[t]] = t;
|
|
82
|
+
}
|
|
83
|
+
const fiedFlags = require('../constants/field_flags.js');
|
|
84
|
+
const flagNames = [];
|
|
85
|
+
// TODO: respect inspectOptions.showHidden
|
|
86
|
+
//const inspectFlags = inspectOptions.showHidden ? this.flags : this.flags & ~fiedFlags.PRI_KEY;
|
|
87
|
+
const inspectFlags = this.flags;
|
|
88
|
+
for (const f in fiedFlags) {
|
|
89
|
+
if (inspectFlags & fiedFlags[f]) {
|
|
90
|
+
if (f === 'PRI_KEY') {
|
|
91
|
+
flagNames.push('PRIMARY KEY');
|
|
92
|
+
} else if (f === 'NOT_NULL') {
|
|
93
|
+
flagNames.push('NOT NULL');
|
|
94
|
+
} else if (f === 'BINARY') {
|
|
95
|
+
// ignore flag for now
|
|
96
|
+
} else if (f === 'MULTIPLE_KEY') {
|
|
97
|
+
// not sure if that should be part of inspection.
|
|
98
|
+
// in the schema usually this is part of index definition
|
|
99
|
+
// example: UNIQUE KEY `my_uniq_id` (`id_box_elements`,`id_router`)
|
|
100
|
+
// note that only first column has MULTIPLE_KEY flag set in this case
|
|
101
|
+
// so there is no good way of knowing that this is part of index just
|
|
102
|
+
// by looking at indifidual field flags
|
|
103
|
+
} else if (f === 'NO_DEFAULT_VALUE') {
|
|
104
|
+
// almost the same as NOT_NULL?
|
|
105
|
+
} else if (f === 'BLOB') {
|
|
106
|
+
// included in the type
|
|
107
|
+
} else if (f === 'UNSIGNED') {
|
|
108
|
+
// this should be first after type
|
|
109
|
+
} else if (f === 'TIMESTAMP') {
|
|
110
|
+
// timestamp flag is redundant for inspection - already included in type
|
|
111
|
+
} else if (f === 'ON_UPDATE_NOW') {
|
|
112
|
+
flagNames.push('ON UPDATE CURRENT_TIMESTAMP');
|
|
113
|
+
} else {
|
|
114
|
+
flagNames.push(f);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (depth > 1) {
|
|
120
|
+
return inspect({
|
|
121
|
+
...this.inspect(),
|
|
122
|
+
typeName: typeNames[this.columnType],
|
|
123
|
+
flags: flagNames,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const isUnsigned = this.flags & fiedFlags.UNSIGNED;
|
|
128
|
+
|
|
129
|
+
let typeName = typeNames[this.columnType];
|
|
130
|
+
if (typeName === 'BLOB') {
|
|
131
|
+
// TODO: check for non-utf8mb4 encoding
|
|
132
|
+
if (this.columnLength === 4294967295) {
|
|
133
|
+
typeName = 'LONGTEXT';
|
|
134
|
+
} else if (this.columnLength === 67108860) {
|
|
135
|
+
typeName = 'MEDIUMTEXT';
|
|
136
|
+
} else if (this.columnLength === 262140) {
|
|
137
|
+
typeName = 'TEXT';
|
|
138
|
+
} else if (this.columnLength === 1020) {
|
|
139
|
+
// 255*4
|
|
140
|
+
typeName = 'TINYTEXT';
|
|
141
|
+
} else {
|
|
142
|
+
typeName = `BLOB(${this.columnLength})`;
|
|
143
|
+
}
|
|
144
|
+
} else if (typeName === 'VAR_STRING') {
|
|
145
|
+
// TODO: check for non-utf8mb4 encoding
|
|
146
|
+
typeName = `VARCHAR(${Math.ceil(this.columnLength / 4)})`;
|
|
147
|
+
} else if (typeName === 'TINY') {
|
|
148
|
+
if (
|
|
149
|
+
(this.columnLength === 3 && isUnsigned) ||
|
|
150
|
+
(this.columnLength === 4 && !isUnsigned)
|
|
151
|
+
) {
|
|
152
|
+
typeName = 'TINYINT';
|
|
153
|
+
} else {
|
|
154
|
+
typeName = `TINYINT(${this.columnLength})`;
|
|
155
|
+
}
|
|
156
|
+
} else if (typeName === 'LONGLONG') {
|
|
157
|
+
if (this.columnLength === 20) {
|
|
158
|
+
typeName = 'BIGINT';
|
|
159
|
+
} else {
|
|
160
|
+
typeName = `BIGINT(${this.columnLength})`;
|
|
161
|
+
}
|
|
162
|
+
} else if (typeName === 'SHORT') {
|
|
163
|
+
if (isUnsigned && this.columnLength === 5) {
|
|
164
|
+
typeName = 'SMALLINT';
|
|
165
|
+
} else if (!isUnsigned && this.columnLength === 6) {
|
|
166
|
+
typeName = 'SMALLINT';
|
|
167
|
+
} else {
|
|
168
|
+
typeName = `SMALLINT(${this.columnLength})`;
|
|
169
|
+
}
|
|
170
|
+
} else if (typeName === 'LONG') {
|
|
171
|
+
if (isUnsigned && this.columnLength === 10) {
|
|
172
|
+
typeName = 'INT';
|
|
173
|
+
} else if (!isUnsigned && this.columnLength === 11) {
|
|
174
|
+
typeName = 'INT';
|
|
175
|
+
} else {
|
|
176
|
+
typeName = `INT(${this.columnLength})`;
|
|
177
|
+
}
|
|
178
|
+
} else if (typeName === 'INT24') {
|
|
179
|
+
if (isUnsigned && this.columnLength === 8) {
|
|
180
|
+
typeName = 'MEDIUMINT';
|
|
181
|
+
} else if (!isUnsigned && this.columnLength === 9) {
|
|
182
|
+
typeName = 'MEDIUMINT';
|
|
183
|
+
} else {
|
|
184
|
+
typeName = `MEDIUMINT(${this.columnLength})`;
|
|
185
|
+
}
|
|
186
|
+
} else if (typeName === 'DOUBLE') {
|
|
187
|
+
// DOUBLE without modifiers is reported as DOUBLE(22, 31)
|
|
188
|
+
if (this.columnLength === 22 && this.decimals === 31) {
|
|
189
|
+
typeName = 'DOUBLE';
|
|
190
|
+
} else {
|
|
191
|
+
typeName = `DOUBLE(${this.columnLength},${this.decimals})`;
|
|
192
|
+
}
|
|
193
|
+
} else if (typeName === 'FLOAT') {
|
|
194
|
+
// FLOAT without modifiers is reported as FLOAT(12, 31)
|
|
195
|
+
if (this.columnLength === 12 && this.decimals === 31) {
|
|
196
|
+
typeName = 'FLOAT';
|
|
197
|
+
} else {
|
|
198
|
+
typeName = `FLOAT(${this.columnLength},${this.decimals})`;
|
|
199
|
+
}
|
|
200
|
+
} else if (typeName === 'NEWDECIMAL') {
|
|
201
|
+
if (this.columnLength === 11 && this.decimals === 0) {
|
|
202
|
+
typeName = 'DECIMAL';
|
|
203
|
+
} else if (this.decimals === 0) {
|
|
204
|
+
// not sure why, but DECIMAL(13) is reported as DECIMAL(14, 0)
|
|
205
|
+
// and DECIMAL(13, 9) is reported as NEWDECIMAL(15, 9)
|
|
206
|
+
if (isUnsigned) {
|
|
207
|
+
typeName = `DECIMAL(${this.columnLength})`;
|
|
208
|
+
} else {
|
|
209
|
+
typeName = `DECIMAL(${this.columnLength - 1})`;
|
|
210
|
+
}
|
|
211
|
+
} else {
|
|
212
|
+
typeName = `DECIMAL(${this.columnLength - 2},${this.decimals})`;
|
|
213
|
+
}
|
|
214
|
+
} else {
|
|
215
|
+
typeName = `${typeNames[this.columnType]}(${this.columnLength})`;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (isUnsigned) {
|
|
219
|
+
typeName += ' UNSIGNED';
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// TODO respect colors option
|
|
223
|
+
return `\`${this.name}\` ${[typeName, ...flagNames].join(' ')}`;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static toPacket(column, sequenceId) {
|
|
227
|
+
let length = 17; // = 4 padding + 1 + 12 for the rest
|
|
228
|
+
fields.forEach((field) => {
|
|
229
|
+
length += Packet.lengthCodedStringLength(
|
|
230
|
+
column[field],
|
|
231
|
+
CharsetToEncoding[column.characterSet]
|
|
232
|
+
);
|
|
233
|
+
});
|
|
234
|
+
const buffer = Buffer.allocUnsafe(length);
|
|
235
|
+
|
|
236
|
+
const packet = new Packet(sequenceId, buffer, 0, length);
|
|
237
|
+
function writeField(name) {
|
|
238
|
+
packet.writeLengthCodedString(
|
|
239
|
+
column[name],
|
|
240
|
+
CharsetToEncoding[column.characterSet]
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
packet.offset = 4;
|
|
244
|
+
fields.forEach(writeField);
|
|
245
|
+
packet.writeInt8(0x0c);
|
|
246
|
+
packet.writeInt16(column.characterSet);
|
|
247
|
+
packet.writeInt32(column.columnLength);
|
|
248
|
+
packet.writeInt8(column.columnType);
|
|
249
|
+
packet.writeInt16(column.flags);
|
|
250
|
+
packet.writeInt8(column.decimals);
|
|
251
|
+
packet.writeInt16(0); // filler
|
|
252
|
+
return packet;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// node-mysql compatibility: alias "db" to "schema"
|
|
256
|
+
get db() {
|
|
257
|
+
return this.schema;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const addString = function (name) {
|
|
262
|
+
Object.defineProperty(ColumnDefinition.prototype, name, {
|
|
263
|
+
get: function () {
|
|
264
|
+
const start = this[`_${name}Start`];
|
|
265
|
+
const end = start + this[`_${name}Length`];
|
|
266
|
+
const val = StringParser.decode(
|
|
267
|
+
this._buf,
|
|
268
|
+
this.encoding === 'binary' ? this._clientEncoding : this.encoding,
|
|
269
|
+
start,
|
|
270
|
+
end
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
Object.defineProperty(this, name, {
|
|
274
|
+
value: val,
|
|
275
|
+
writable: false,
|
|
276
|
+
configurable: false,
|
|
277
|
+
enumerable: false,
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
return val;
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
addString('catalog');
|
|
286
|
+
addString('schema');
|
|
287
|
+
addString('table');
|
|
288
|
+
addString('orgTable');
|
|
289
|
+
addString('orgName');
|
|
290
|
+
|
|
291
|
+
module.exports = ColumnDefinition;
|