orcaq 1.0.33 → 1.1.2
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/63YtjFEq.js +1 -0
- package/.output/public/_nuxt/8tyEaimf.js +30 -0
- package/.output/public/_nuxt/AymhMj9v.js +1 -0
- package/.output/public/_nuxt/B2IKcIj2.js +1 -0
- package/.output/public/_nuxt/B46blMXm.js +7 -0
- package/.output/public/_nuxt/B5WGo5x7.js +1 -0
- package/.output/public/_nuxt/B6MkNyZd.js +132 -0
- package/.output/public/_nuxt/B73IHAoF.js +1 -0
- package/.output/public/_nuxt/B8TrrBEb.js +189 -0
- package/.output/public/_nuxt/B9uki8o2.js +1 -0
- package/.output/public/_nuxt/BEyCol50.js +1 -0
- package/.output/public/_nuxt/BJCrbji-.js +24 -0
- package/.output/public/_nuxt/BJVPtt2X.js +24 -0
- package/.output/public/_nuxt/BL__uYa3.js +1 -0
- package/.output/public/_nuxt/BPACuoI0.js +1 -0
- package/.output/public/_nuxt/BRFPdiIh.js +1 -0
- package/.output/public/_nuxt/BS-LtKx4.js +1 -0
- package/.output/public/_nuxt/BTYBVtfa.js +70 -0
- package/.output/public/_nuxt/BTheloyh.js +1 -0
- package/.output/public/_nuxt/BVUHbgGW.js +27 -0
- package/.output/public/_nuxt/BWZ7atse.js +1 -0
- package/.output/public/_nuxt/BWebIWit.js +39 -0
- package/.output/public/_nuxt/BcsKoAPU.js +984 -0
- package/.output/public/_nuxt/Bf6Q3Zl5.js +89 -0
- package/.output/public/_nuxt/Bj7ctTfH.js +1 -0
- package/.output/public/_nuxt/BjqbQLK3.js +1 -0
- package/.output/public/_nuxt/Bmgr9uz4.js +36 -0
- package/.output/public/_nuxt/Bmx1kTaZ.js +139 -0
- package/.output/public/_nuxt/BoIj4dtd.js +1 -0
- package/.output/public/_nuxt/BoMjapT5.js +220 -0
- package/.output/public/_nuxt/BogEzQi9.js +12 -0
- package/.output/public/_nuxt/BpLDGvqy.js +1 -0
- package/.output/public/_nuxt/BpUSbMUb.js +1 -0
- package/.output/public/_nuxt/BpvGVfME.js +1 -0
- package/.output/public/_nuxt/Bq47tjcm.js +1 -0
- package/.output/public/_nuxt/Bq7OeLM1.js +1 -0
- package/.output/public/_nuxt/BqU89KuH.js +2 -0
- package/.output/public/_nuxt/BrNfge84.js +34 -0
- package/.output/public/_nuxt/BtyzMl9p.js +1 -0
- package/.output/public/_nuxt/ByiJDSw8.js +68 -0
- package/.output/public/_nuxt/ByibjLZn.js +43 -0
- package/.output/public/_nuxt/BzvSm28k.js +67 -0
- package/.output/public/_nuxt/C2XHqDOf.js +1 -0
- package/.output/public/_nuxt/C3ZBsVV_.js +2 -0
- package/.output/public/_nuxt/C6dIAdHr.js +1 -0
- package/.output/public/_nuxt/C7BQpy74.js +1 -0
- package/.output/public/_nuxt/CAnr3OhD.js +1 -0
- package/.output/public/_nuxt/CDJKw_ak.js +1 -0
- package/.output/public/_nuxt/CHEpbbGc.js +1 -0
- package/.output/public/_nuxt/CMkzSwnO.js +61 -0
- package/.output/public/_nuxt/COAycMg4.js +1 -0
- package/.output/public/_nuxt/COHOh4Oe.js +1 -0
- package/.output/public/_nuxt/COq7mAG7.js +10 -0
- package/.output/public/_nuxt/CS5akSNT.js +1 -0
- package/.output/public/_nuxt/CS9hqyP3.js +1 -0
- package/.output/public/_nuxt/CSQ0xnqv.js +6 -0
- package/.output/public/_nuxt/C_7gtl40.js +1 -0
- package/.output/public/_nuxt/Ca0KO9Xq.js +9 -0
- package/.output/public/_nuxt/CerLmMsC.js +22 -0
- package/.output/public/_nuxt/Ci5B19-c.js +15 -0
- package/.output/public/_nuxt/Cnfx1zWl.js +10 -0
- package/.output/public/_nuxt/Cq-MDPLE.js +53 -0
- package/.output/public/_nuxt/CrNLwdoE.js +145 -0
- package/.output/public/_nuxt/CsRSZpa6.js +15 -0
- package/.output/public/_nuxt/CtWq1MER.js +7 -0
- package/.output/public/_nuxt/Cww9dXBK.js +1 -0
- package/.output/public/_nuxt/CycELG5y.js +65 -0
- package/.output/public/_nuxt/CzB2y8br.js +18 -0
- package/.output/public/_nuxt/D-9vaM6z.js +4 -0
- package/.output/public/_nuxt/D4pAW_0T.js +152 -0
- package/.output/public/_nuxt/DAr5YiBT.js +1 -0
- package/.output/public/_nuxt/DDebxXP-.js +1 -0
- package/.output/public/_nuxt/DEZMnZ2r.js +292 -0
- package/.output/public/_nuxt/DGvAu532.js +1 -0
- package/.output/public/_nuxt/DHAL8jJG.js +255 -0
- package/.output/public/_nuxt/DJH-4SVI.js +1 -0
- package/.output/public/_nuxt/DMmjWR_K.js +10 -0
- package/.output/public/_nuxt/DNB4Xmyo.js +37 -0
- package/.output/public/_nuxt/DNoTlUiY.js +7 -0
- package/.output/public/_nuxt/DPIEiNwW.js +1 -0
- package/.output/public/_nuxt/DSaBCmOg.js +162 -0
- package/.output/public/_nuxt/DVnDb6ua.js +1 -0
- package/.output/public/_nuxt/DWqOZJe7.js +1 -0
- package/.output/public/_nuxt/DcCF9IZB.js +1 -0
- package/.output/public/_nuxt/DfNTLojg.js +1 -0
- package/.output/public/_nuxt/DkD29_YA.js +73 -0
- package/.output/public/_nuxt/DpEV6S2O.js +1 -0
- package/.output/public/_nuxt/DpT8FO1Q.js +70 -0
- package/.output/public/_nuxt/Dq1JM9WZ.js +1 -0
- package/.output/public/_nuxt/DsmBazLf.js +20 -0
- package/.output/public/_nuxt/DuCDilAk.js +1 -0
- package/.output/public/_nuxt/FDw04QOj.js +2 -0
- package/.output/public/_nuxt/JOg_XIAv.js +1 -0
- package/.output/public/_nuxt/L2I3LmpB.js +68 -0
- package/.output/public/_nuxt/M6bBaUHa.js +1 -0
- package/.output/public/_nuxt/MW5K_zef.js +1 -0
- package/.output/public/_nuxt/MeLWmO7R.js +162 -0
- package/.output/public/_nuxt/Oe2GG0Lt.js +9 -0
- package/.output/public/_nuxt/S1qa1a4x.js +1 -0
- package/.output/public/_nuxt/Sf02B6Pt.js +3 -0
- package/.output/public/_nuxt/Y1gXUmjt.js +1 -0
- package/.output/public/_nuxt/_qKPTuua.js +1 -0
- package/.output/public/_nuxt/atdCACH-.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/7c171291-8bbd-4c4c-8904-0afae065b82e.json +1 -0
- package/.output/public/_nuxt/dNPwafbq.js +1 -0
- package/.output/public/_nuxt/dWu56FdP.js +3867 -0
- package/.output/public/_nuxt/default.B0xlD4Sl.css +1 -0
- package/.output/public/_nuxt/entry.DxCQuGXb.css +1 -0
- package/.output/public/_nuxt/iNy-Nl0_.js +1 -0
- package/.output/public/_nuxt/ioXB9E2w.js +1 -0
- package/.output/public/_nuxt/kvtnkChG.js +1 -0
- package/.output/public/_nuxt/qzrMNYut.js +1 -0
- package/.output/public/_nuxt/sk7V7xQl.js +1 -0
- package/.output/public/_nuxt/vhkvHdfO.js +1 -0
- package/.output/public/_nuxt/wRAs0MDn.js +2 -0
- package/.output/public/_nuxt/xOD4Ev56.js +1 -0
- package/.output/public/_nuxt/xp7rFxcm.js +1 -0
- package/.output/server/chunks/_/create-adapter.mjs +38 -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 +1202 -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 +2130 -8
- package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
- package/.output/server/chunks/_/metadata.factory.mjs +1192 -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/_/redis-browser.service.mjs +513 -0
- package/.output/server/chunks/_/redis-browser.service.mjs.map +1 -0
- package/.output/server/chunks/_/redis-instance-insights.service.mjs +442 -0
- package/.output/server/chunks/_/redis-instance-insights.service.mjs.map +1 -0
- package/.output/server/chunks/_/redis-pubsub.service.mjs +227 -0
- package/.output/server/chunks/_/redis-pubsub.service.mjs.map +1 -0
- package/.output/server/chunks/_/redis.client.mjs +129 -0
- package/.output/server/chunks/_/redis.client.mjs.map +1 -0
- 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 +917 -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 +776 -659
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +1152 -749
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/ai/agent.mjs +33 -79
- package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/export-database.mjs +29 -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 +55 -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 +46 -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 +72 -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 +46 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +5 -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 +6 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs +6 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs +6 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs +6 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs +6 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/update.post.mjs +27 -6
- package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +66 -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 +6 -1
- 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 +6 -1
- 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 +6 -1
- 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 +6 -1
- 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 +6 -1
- 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 +6 -1
- 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 +6 -1
- 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 +6 -1
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/view.post.mjs +66 -0
- package/.output/server/chunks/routes/api/instance-insights/view.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +16 -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 +10 -1
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +9 -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 +10 -1
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +83 -7
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs +8 -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 +17 -3
- 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 +10 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs +25 -0
- package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs +39 -0
- package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/browser/value.post.mjs +25 -0
- package/.output/server/chunks/routes/api/redis/browser/value.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/index.post.mjs +37 -0
- package/.output/server/chunks/routes/api/redis/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs +38 -0
- package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs +35 -0
- package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs +24 -0
- package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs +38 -0
- package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs +39 -0
- package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs +39 -0
- package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs +24 -0
- package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs +60 -0
- package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +12 -6
- 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 +12 -6
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/export.post.mjs +8 -3
- package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/meta.post.mjs +10 -3
- package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs +7 -2
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/definition.post.mjs +5 -0
- package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs +5 -0
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/explain.post.mjs +5 -0
- package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/indexes.post.mjs +5 -0
- package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/meta.post.mjs +5 -0
- package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/overview.post.mjs +5 -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/@libsql/client/lib-esm/hrana.js +310 -0
- package/.output/server/node_modules/@libsql/client/lib-esm/http.js +230 -0
- package/.output/server/node_modules/@libsql/client/lib-esm/sql_cache.js +87 -0
- package/.output/server/node_modules/@libsql/client/package.json +123 -0
- package/.output/server/node_modules/@libsql/core/lib-esm/api.js +16 -0
- package/.output/server/node_modules/@libsql/core/lib-esm/config.js +136 -0
- package/.output/server/node_modules/@libsql/core/lib-esm/uri.js +120 -0
- package/.output/server/node_modules/@libsql/core/lib-esm/util.js +55 -0
- package/.output/server/node_modules/@libsql/core/package.json +91 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/batch.js +271 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/byte_queue.js +45 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/client.js +13 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/cursor.js +2 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/describe.js +8 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/index.js +4 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js +59 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js +72 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js +150 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js +95 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js +6 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/errors.js +102 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/client.js +124 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/cursor.js +135 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js +62 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js +55 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js +44 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js +78 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/stream.js +363 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/id_alloc.js +47 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/index.js +42 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/libsql_url.js +75 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue.js +26 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js +13 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/result.js +48 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js +106 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js +71 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js +115 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js +85 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/sql.js +46 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stmt.js +76 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stream.js +57 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/util.js +4 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/value.js +83 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/client.js +318 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js +80 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js +74 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js +77 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js +60 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js +115 -0
- package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/stream.js +211 -0
- package/.output/server/node_modules/@libsql/hrana-client/package.json +60 -0
- package/.output/server/node_modules/@libsql/isomorphic-fetch/node.js +6 -0
- package/.output/server/node_modules/@libsql/isomorphic-fetch/package.json +51 -0
- package/.output/server/node_modules/@libsql/isomorphic-ws/node.mjs +2 -0
- package/.output/server/node_modules/@libsql/isomorphic-ws/package.json +53 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/ADD.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/CARD.js +16 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/EXISTS.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INFO.js +22 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INSERT.js +41 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/LOADCHUNK.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MADD.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MEXISTS.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/RESERVE.js +28 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/SCANDUMP.js +23 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/helpers.js +28 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/index.js +53 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INCRBY.js +28 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INFO.js +22 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYDIM.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYPROB.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/MERGE.js +33 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/QUERY.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/index.js +26 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADD.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADDNX.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/COUNT.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/DEL.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/EXISTS.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INFO.js +22 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERT.js +34 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERTNX.js +44 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/LOADCHUNK.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/RESERVE.js +31 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/SCANDUMP.js +23 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/index.js +41 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/index.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/ADD.js +20 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYRANK.js +26 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYREVRANK.js +41 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CDF.js +21 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CREATE.js +21 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/INFO.js +22 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MAX.js +17 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MERGE.js +27 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MIN.js +17 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/QUANTILE.js +21 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RANK.js +25 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RESET.js +16 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/REVRANK.js +41 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/TRIMMED_MEAN.js +20 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/index.js +50 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/ADD.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/COUNT.js +18 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INCRBY.js +28 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INFO.js +24 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST.js +16 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST_WITHCOUNT.js +26 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/QUERY.js +19 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/RESERVE.js +25 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/index.js +32 -0
- package/.output/server/node_modules/@redis/bloom/dist/lib/index.js +9 -0
- package/.output/server/node_modules/@redis/bloom/package.json +36 -0
- package/.output/server/node_modules/@redis/client/dist/index.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/RESP/decoder.js +727 -0
- package/.output/server/node_modules/@redis/client/dist/lib/RESP/encoder.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/RESP/verbatim-string.js +12 -0
- package/.output/server/node_modules/@redis/client/dist/lib/authx/credentials-provider.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/authx/index.js +12 -0
- package/.output/server/node_modules/@redis/client/dist/lib/authx/token-manager.js +184 -0
- package/.output/server/node_modules/@redis/client/dist/lib/authx/token.js +32 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/cache.js +634 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/commands-queue.js +497 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/enterprise-maintenance-manager.js +387 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/identity.js +65 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/index.js +1118 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/legacy-mode.js +119 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/linked-list.js +212 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/multi-command.js +118 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/parser.js +83 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/pool.js +373 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/pub-sub.js +351 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/socket.js +336 -0
- package/.output/server/node_modules/@redis/client/dist/lib/client/tracing.js +122 -0
- package/.output/server/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js +657 -0
- package/.output/server/node_modules/@redis/client/dist/lib/cluster/index.js +425 -0
- package/.output/server/node_modules/@redis/client/dist/lib/cluster/multi-command.js +124 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commander.js +91 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_CAT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DELUSER.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DRYRUN.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GENPASS.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GETUSER.js +33 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LIST.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOAD.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG.js +39 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG_RESET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SAVE.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SETUSER.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_USERS.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_WHOAMI.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/APPEND.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ASKING.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/AUTH.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BGREWRITEAOF.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BGSAVE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITCOUNT.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD.js +33 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD_RO.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITOP.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BITPOS.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMOVE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMPOP.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BLPOP.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOP.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOPLPUSH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BZMPOP.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMAX.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMIN.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_CACHING.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETNAME.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETREDIR.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_ID.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_INFO.js +62 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_KILL.js +66 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_LIST.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-EVICT.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-TOUCH.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_PAUSE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_SETNAME.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKING.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKINGINFO.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_UNPAUSE.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTSRANGE.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_BUMPEPOCH.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNT-FAILURE-REPORTS.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNTKEYSINSLOT.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTSRANGE.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FAILOVER.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FLUSHSLOTS.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FORGET.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_GETKEYSINSLOT.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_INFO.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_KEYSLOT.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_LINKS.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MEET.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYID.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYSHARDID.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_NODES.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICAS.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICATE.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_RESET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SAVECONFIG.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SET-CONFIG-EPOCH.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SETSLOT.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SLOTS.js +30 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_COUNT.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYSANDFLAGS.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_INFO.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_LIST.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_GET.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_RESETSTAT.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_REWRITE.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_SET.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/COPY.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DBSIZE.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DECR.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DECRBY.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DEL.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DELEX.js +43 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DIGEST.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/DUMP.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ECHO.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA_RO.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL_RO.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EXISTS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIREAT.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRETIME.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL_RO.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHALL.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHDB.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DELETE.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DUMP.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_FLUSH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_KILL.js +15 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST.js +38 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST_WITHCODE.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LOAD.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_RESTORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_STATS.js +47 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOADD.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEODIST.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOHASH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOPOS.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO.js +46 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO_WITH.js +46 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_STORE.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_WITH.js +36 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO.js +45 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO_WITH.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_STORE.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_WITH.js +56 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH.js +54 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCHSTORE.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH_WITH.js +55 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GET.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETBIT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETDEL.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETEX.js +50 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETRANGE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/GETSET.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HDEL.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HELLO.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXISTS.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRE.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIREAT.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRETIME.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HGET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETALL.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETDEL.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETEX.js +30 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBY.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBYFLOAT.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HKEYS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HLEN.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HMGET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_GET.js +131 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_RESET.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_START.js +60 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_STOP.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPERSIST.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRE.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIREAT.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRETIME.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HPTTL.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT_WITHVALUES.js +41 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN_NOVALUES.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSET.js +55 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETEX.js +81 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETNX.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HSTRLEN.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HTTL.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/HVALS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/INCR.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBY.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBYFLOAT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/INFO.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/KEYS.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LASTSAVE.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_DOCTOR.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_GRAPH.js +37 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTOGRAM.js +39 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTORY.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_LATEST.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_RESET.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX.js +33 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX_WITHMATCHLEN.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_LEN.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LINDEX.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LINSERT.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LLEN.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LMOVE.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LMPOP.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LOLWUT.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP_COUNT.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS_COUNT.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSHX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LRANGE.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LREM.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LSET.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/LTRIM.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_DOCTOR.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_MALLOC-STATS.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_PURGE.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_STATS.js +39 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_USAGE.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MGET.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MIGRATE.js +48 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LIST.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LOAD.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_UNLOAD.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MOVE.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MSET.js +46 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETEX.js +104 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETNX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_ENCODING.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_FREQ.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_IDLETIME.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_REFCOUNT.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PERSIST.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRE.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIREAT.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRETIME.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PFADD.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PFCOUNT.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PFMERGE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PING.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PSETEX.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PTTL.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBLISH.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_CHANNELS.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMPAT.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMSUB.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDCHANNELS.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDNUMSUB.js +32 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RANDOMKEY.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/READONLY.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAME.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAMENX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/REPLICAOF.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE-ASKING.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ROLE.js +60 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOPLPUSH.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP_COUNT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSHX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SADD.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCAN.js +71 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCARD.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_DEBUG.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_EXISTS.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_FLUSH.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_KILL.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_LOAD.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFF.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFFSTORE.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SET.js +61 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SETBIT.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SETEX.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SETNX.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SETRANGE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTER.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERCARD.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERSTORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SISMEMBER.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SMEMBERS.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SMISMEMBER.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SMOVE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT.js +53 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_RO.js +40 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_STORE.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP_COUNT.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SPUBLISH.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER_COUNT.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SREM.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SSCAN.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/STRLEN.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNION.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNIONSTORE.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/SWAPDB.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/TIME.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/TOUCH.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/TTL.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/TYPE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/UNLINK.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VADD.js +42 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VCARD.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VDIM.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB_RAW.js +42 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VGETATTR.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VINFO.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS_WITHSCORES.js +39 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANDMEMBER.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANGE.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VREM.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VSETATTR.js +27 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM.js +51 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM_WITHSCORES.js +32 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/WAIT.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XACK.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XACKDEL.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD.js +71 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD_NOMKSTREAM.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM.js +43 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM_JUSTID.js +35 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XCFGSET.js +28 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM.js +52 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM_JUSTID.js +31 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XDEL.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XDELEX.js +29 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATE.js +29 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATECONSUMER.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DELCONSUMER.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DESTROY.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_SETID.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_CONSUMERS.js +40 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_GROUPS.js +46 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_STREAM.js +72 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XLEN.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING.js +42 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING_RANGE.js +49 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XRANGE.js +50 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XREAD.js +57 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XREADGROUP.js +42 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XREVRANGE.js +49 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XSETID.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/XTRIM.js +36 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD.js +73 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD_INCR.js +36 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCARD.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCOUNT.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFFSTORE.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF_WITHSCORES.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINCRBY.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERCARD.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERSTORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER_WITHSCORES.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZLEXCOUNT.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMPOP.js +47 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMSCORE.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX_COUNT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN_COUNT.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT_WITHSCORES.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE.js +45 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYLEX.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE_WITHSCORES.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGESTORE.js +37 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE_WITHSCORES.js +22 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK_WITHSCORE.js +38 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREM.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYLEX.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYRANK.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYSCORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREVRANK.js +19 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCAN.js +26 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCORE.js +20 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNIONSTORE.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION_WITHSCORES.js +21 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/generic-transformers.js +492 -0
- package/.output/server/node_modules/@redis/client/dist/lib/commands/index.js +1161 -0
- package/.output/server/node_modules/@redis/client/dist/lib/errors.js +110 -0
- package/.output/server/node_modules/@redis/client/dist/lib/lua-script.js +16 -0
- package/.output/server/node_modules/@redis/client/dist/lib/multi-command.js +48 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/client-registry.js +84 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/index.js +81 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/metrics.js +647 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/types.js +120 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/error.util.js +199 -0
- package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/index.js +32 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MASTER.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MONITOR.js +17 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_REPLICAS.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SENTINELS.js +25 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SET.js +18 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/index.js +23 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/index.js +1229 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/module.js +10 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/multi-commands.js +115 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/pub-sub-proxy.js +150 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/utils.js +98 -0
- package/.output/server/node_modules/@redis/client/dist/lib/sentinel/wait-queue.js +24 -0
- package/.output/server/node_modules/@redis/client/dist/lib/single-entry-cache.js +38 -0
- package/.output/server/node_modules/@redis/client/dist/lib/utils/digest.js +34 -0
- package/.output/server/node_modules/@redis/client/dist/package.json +52 -0
- package/.output/server/node_modules/@redis/client/package.json +52 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRAPPEND.js +26 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINDEX.js +31 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINSERT.js +27 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRLEN.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRPOP.js +32 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRTRIM.js +22 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/CLEAR.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/DEBUG_MEMORY.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/DEL.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/FORGET.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/GET.js +24 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/MERGE.js +22 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/MGET.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/MSET.js +25 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMINCRBY.js +26 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMMULTBY.js +25 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJKEYS.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJLEN.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/SET.js +35 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/STRAPPEND.js +26 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/STRLEN.js +23 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/TOGGLE.js +20 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/TYPE.js +29 -0
- package/.output/server/node_modules/@redis/json/dist/lib/commands/index.js +91 -0
- package/.output/server/node_modules/@redis/json/dist/lib/index.js +9 -0
- package/.output/server/node_modules/@redis/json/package.json +36 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE.js +212 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE_WITHCURSOR.js +40 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASADD.js +17 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASDEL.js +16 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASUPDATE.js +17 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/ALTER.js +19 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_GET.js +23 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_SET.js +17 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CREATE.js +277 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_DEL.js +17 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_READ.js +27 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTADD.js +18 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDEL.js +18 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDUMP.js +19 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/DROPINDEX.js +24 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAIN.js +29 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAINCLI.js +26 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/HYBRID.js +273 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/INFO.js +106 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_AGGREGATE.js +58 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_SEARCH.js +58 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH.js +160 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH_NOCONTENT.js +34 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SPELLCHECK.js +56 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGADD.js +28 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGDEL.js +18 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET.js +27 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHPAYLOADS.js +36 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES.js +51 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES_WITHPAYLOADS.js +53 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGLEN.js +15 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNDUMP.js +27 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNUPDATE.js +24 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/TAGVALS.js +20 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/_LIST.js +18 -0
- package/.output/server/node_modules/@redis/search/dist/lib/commands/index.js +125 -0
- package/.output/server/node_modules/@redis/search/dist/lib/dialect/default.js +5 -0
- package/.output/server/node_modules/@redis/search/dist/lib/index.js +17 -0
- package/.output/server/node_modules/@redis/search/package.json +37 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ADD.js +29 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ALTER.js +23 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATE.js +24 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATERULE.js +48 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DECRBY.js +40 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DEL.js +20 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DELETERULE.js +17 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/GET.js +33 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INCRBY.js +40 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO.js +58 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO_DEBUG.js +46 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MADD.js +20 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET.js +57 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_SELECTED_LABELS.js +23 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_WITHLABELS.js +43 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE.js +44 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_GROUPBY.js +96 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS.js +51 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS_GROUPBY.js +52 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS.js +59 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS_GROUPBY.js +52 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_GROUPBY.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS_GROUPBY.js +42 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS_GROUPBY.js +41 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/QUERYINDEX.js +20 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/RANGE.js +66 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/REVRANGE.js +40 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/helpers.js +237 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/commands/index.js +113 -0
- package/.output/server/node_modules/@redis/time-series/dist/lib/index.js +17 -0
- package/.output/server/node_modules/@redis/time-series/package.json +36 -0
- 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/cluster-key-slot/lib/index.js +166 -0
- package/.output/server/node_modules/cluster-key-slot/package.json +56 -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/js-base64/base64.mjs +301 -0
- package/.output/server/node_modules/js-base64/package.json +43 -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/promise-limit/index.js +88 -0
- package/.output/server/node_modules/promise-limit/package.json +39 -0
- package/.output/server/node_modules/redis/dist/index.js +77 -0
- package/.output/server/node_modules/redis/package.json +36 -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/node_modules/ws/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/ws/lib/constants.js +19 -0
- package/.output/server/node_modules/ws/lib/event-target.js +292 -0
- package/.output/server/node_modules/ws/lib/extension.js +203 -0
- package/.output/server/node_modules/ws/lib/limiter.js +55 -0
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/.output/server/node_modules/ws/lib/receiver.js +706 -0
- package/.output/server/node_modules/ws/lib/sender.js +602 -0
- package/.output/server/node_modules/ws/lib/stream.js +161 -0
- package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/ws/lib/validation.js +152 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +554 -0
- package/.output/server/node_modules/ws/lib/websocket.js +1393 -0
- package/.output/server/node_modules/ws/package.json +69 -0
- package/.output/server/node_modules/ws/wrapper.mjs +8 -0
- package/.output/server/package.json +29 -18
- package/package.json +9 -3
- package/.output/public/_nuxt/0-wJGyFY.js +0 -2
- package/.output/public/_nuxt/1ntlIJ3J.js +0 -61
- package/.output/public/_nuxt/3c6UPAJG.js +0 -73
- package/.output/public/_nuxt/ACQvpkWm.js +0 -15
- package/.output/public/_nuxt/B-5Px-78.js +0 -1
- package/.output/public/_nuxt/B2GYb2Zp.js +0 -34
- package/.output/public/_nuxt/B2RqwDKD.js +0 -1
- package/.output/public/_nuxt/B8ibHW1N.js +0 -53
- package/.output/public/_nuxt/B9-NZWuC.js +0 -4
- package/.output/public/_nuxt/BBGY5Dij.js +0 -70
- package/.output/public/_nuxt/BC7xWBZm.js +0 -1
- package/.output/public/_nuxt/BCC0qnRS.js +0 -1
- package/.output/public/_nuxt/BEqwcled.js +0 -65
- package/.output/public/_nuxt/BHBluah9.js +0 -39
- package/.output/public/_nuxt/BKKBkPNN.js +0 -160
- package/.output/public/_nuxt/BKltSiU0.js +0 -1
- package/.output/public/_nuxt/BKokR8_i.js +0 -2
- package/.output/public/_nuxt/BL9A1tZd.js +0 -7
- package/.output/public/_nuxt/BOzTRnyW.js +0 -1
- package/.output/public/_nuxt/BP3TGvlW.js +0 -36
- package/.output/public/_nuxt/BPj7cOdr.js +0 -9
- package/.output/public/_nuxt/BSs9H74b.js +0 -1
- package/.output/public/_nuxt/BTp4hJJX.js +0 -30
- package/.output/public/_nuxt/BUolzwzd.js +0 -1
- package/.output/public/_nuxt/BWSKnXVC.js +0 -1
- package/.output/public/_nuxt/BX8ZW8Wz.js +0 -1
- package/.output/public/_nuxt/BZOx0xl6.js +0 -1
- package/.output/public/_nuxt/B_IzdKBm.js +0 -1
- package/.output/public/_nuxt/BaseCodeEditor.SAr2eD8R.css +0 -1
- package/.output/public/_nuxt/BbHeTL4H.js +0 -1
- package/.output/public/_nuxt/Bdd_MGHp.js +0 -1
- package/.output/public/_nuxt/Bdtn2mn5.js +0 -1
- package/.output/public/_nuxt/Bf6dfiAn.js +0 -1
- package/.output/public/_nuxt/BfStSYv5.js +0 -10
- package/.output/public/_nuxt/BiCaG3fA.js +0 -1
- package/.output/public/_nuxt/BiZhfq--.js +0 -1
- package/.output/public/_nuxt/Bj9pfQd-.js +0 -10
- package/.output/public/_nuxt/BjU0QAaV.js +0 -732
- package/.output/public/_nuxt/Bpvd5Z9l.js +0 -132
- package/.output/public/_nuxt/BvXVax75.js +0 -162
- package/.output/public/_nuxt/BwI9KIOm.js +0 -255
- package/.output/public/_nuxt/C-3-JfbB.js +0 -1
- package/.output/public/_nuxt/C-xlKweX.js +0 -1
- package/.output/public/_nuxt/CEj-unU2.js +0 -1
- package/.output/public/_nuxt/CEza5aSi.js +0 -1
- package/.output/public/_nuxt/CJWptbcK.js +0 -1
- package/.output/public/_nuxt/CKSjfllY.js +0 -1
- package/.output/public/_nuxt/CMpNcsXd.js +0 -12
- package/.output/public/_nuxt/CPabAXsJ.js +0 -24
- package/.output/public/_nuxt/CPipTUnI.js +0 -152
- package/.output/public/_nuxt/CQ45OBWa.js +0 -89
- package/.output/public/_nuxt/CQAA248G.js +0 -1
- package/.output/public/_nuxt/CRM1vXw3.js +0 -2
- package/.output/public/_nuxt/CUIMPQKu.js +0 -70
- package/.output/public/_nuxt/CUvvUJMD.js +0 -1
- package/.output/public/_nuxt/CWE6B2ZO.js +0 -1
- package/.output/public/_nuxt/CY1oztNj.js +0 -1
- package/.output/public/_nuxt/Cb_5VLq-.js +0 -1
- package/.output/public/_nuxt/Cc9Pv3NC.js +0 -67
- package/.output/public/_nuxt/CdeKF_Y5.js +0 -1
- package/.output/public/_nuxt/Ceqb0tnW.js +0 -9
- package/.output/public/_nuxt/Cf4SYIMN.js +0 -15
- package/.output/public/_nuxt/CfJy-WiZ.js +0 -2
- package/.output/public/_nuxt/Ch9DdZ1v.js +0 -1
- package/.output/public/_nuxt/Chnnd034.js +0 -1
- package/.output/public/_nuxt/CmPpU8kK.js +0 -7
- package/.output/public/_nuxt/CoTGLOo-.js +0 -10
- package/.output/public/_nuxt/CqvBmMuN.js +0 -1
- package/.output/public/_nuxt/CtJG7C0n.js +0 -1
- package/.output/public/_nuxt/Cv13FokC.js +0 -24
- package/.output/public/_nuxt/CyIart-B.js +0 -1
- package/.output/public/_nuxt/Czb-ugrz.js +0 -1
- package/.output/public/_nuxt/D0HVzqS-.js +0 -1
- package/.output/public/_nuxt/D5MxrHN6.js +0 -1
- package/.output/public/_nuxt/DBC_DJ4H.js +0 -292
- package/.output/public/_nuxt/DD0_MMyC.js +0 -22
- package/.output/public/_nuxt/DLBa45iT.js +0 -68
- package/.output/public/_nuxt/DNX5WjhQ.js +0 -1
- package/.output/public/_nuxt/DS5KvVtc.js +0 -1
- package/.output/public/_nuxt/DeHEBoXc.js +0 -43
- package/.output/public/_nuxt/DiVOI330.js +0 -1
- package/.output/public/_nuxt/DkFAxPAy.js +0 -162
- package/.output/public/_nuxt/DonU4d08.js +0 -3
- package/.output/public/_nuxt/Dsj6LIQK.js +0 -220
- package/.output/public/_nuxt/DuEMN8L_.js +0 -189
- package/.output/public/_nuxt/Dv-XdIM2.js +0 -68
- package/.output/public/_nuxt/DyxiJtlL.js +0 -72
- package/.output/public/_nuxt/Dzy5OQn7.js +0 -139
- package/.output/public/_nuxt/EJAhTysQ.js +0 -1
- package/.output/public/_nuxt/GoTwJjoS.js +0 -39
- package/.output/public/_nuxt/L22G0LO0.js +0 -2
- package/.output/public/_nuxt/MT_t-3iM.js +0 -145
- package/.output/public/_nuxt/NPxge8Vj.js +0 -1
- package/.output/public/_nuxt/PuW66QXY.js +0 -6
- package/.output/public/_nuxt/RVJfUWby.js +0 -1
- package/.output/public/_nuxt/Vvsm7Zcb.js +0 -1
- package/.output/public/_nuxt/Yhg2AuOM.js +0 -1
- package/.output/public/_nuxt/Yzrsuije.js +0 -1
- package/.output/public/_nuxt/_pURwnjj.js +0 -1
- package/.output/public/_nuxt/ak-AMfNO.js +0 -1
- package/.output/public/_nuxt/bTGk4NZ_.js +0 -1
- package/.output/public/_nuxt/builds/meta/b0b2d3d7-8491-43b2-b747-bf8ac00fec15.json +0 -1
- package/.output/public/_nuxt/default.DC7ec2JI.css +0 -1
- package/.output/public/_nuxt/entry.kqv_Ayaq.css +0 -1
- package/.output/public/_nuxt/kehy-5uo.js +0 -1
- package/.output/public/_nuxt/newKnrX1.js +0 -1
- package/.output/public/_nuxt/oXG7qeES.js +0 -1
- package/.output/public/_nuxt/rOvrJUdX.js +0 -1
- package/.output/public/_nuxt/vnfYlYqV.js +0 -1
- package/.output/public/_nuxt/x9AB1FGL.js +0 -3867
- 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,1842 @@
|
|
|
1
|
+
// Copyright (c) 2016, 2025, Oracle and/or its affiliates.
|
|
2
|
+
|
|
3
|
+
//-----------------------------------------------------------------------------
|
|
4
|
+
//
|
|
5
|
+
// This software is dual-licensed to you under the Universal Permissive License
|
|
6
|
+
// (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
|
|
7
|
+
// 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
|
|
8
|
+
// either license.
|
|
9
|
+
//
|
|
10
|
+
// If you elect to accept the software under the Apache License, Version 2.0,
|
|
11
|
+
// the following applies:
|
|
12
|
+
//
|
|
13
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
+
// you may not use this file except in compliance with the License.
|
|
15
|
+
// You may obtain a copy of the License at
|
|
16
|
+
//
|
|
17
|
+
// https://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
+
//
|
|
19
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
20
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
+
// See the License for the specific language governing permissions and
|
|
23
|
+
// limitations under the License.
|
|
24
|
+
//
|
|
25
|
+
//-----------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
'use strict';
|
|
28
|
+
|
|
29
|
+
const AqQueue = require('./aqQueue.js');
|
|
30
|
+
const BaseDbObject = require('./dbObject.js');
|
|
31
|
+
const { Buffer } = require('buffer');
|
|
32
|
+
const Lob = require('./lob.js');
|
|
33
|
+
const ResultSet = require('./resultset.js');
|
|
34
|
+
const SodaDatabase = require('./sodaDatabase.js');
|
|
35
|
+
const EventEmitter = require('events');
|
|
36
|
+
const QueryStream = require('./queryStream.js');
|
|
37
|
+
const errors = require('./errors.js');
|
|
38
|
+
const nodbUtil = require('./util.js');
|
|
39
|
+
const impl = require('./impl');
|
|
40
|
+
const process = require('process');
|
|
41
|
+
const util = require('util');
|
|
42
|
+
const constants = require('./constants.js');
|
|
43
|
+
const settings = require('./settings.js');
|
|
44
|
+
const transformer = require('./transformer.js');
|
|
45
|
+
const types = require('./types.js');
|
|
46
|
+
const oson = require('./impl/datahandlers/oson.js');
|
|
47
|
+
|
|
48
|
+
// global mapping of subscriptions; these cannot be tied to a particular
|
|
49
|
+
// connection or pool since subscriptions can be created with one connection
|
|
50
|
+
// and destroyed with another!
|
|
51
|
+
const _subscriptions = new Map();
|
|
52
|
+
|
|
53
|
+
// default closure for NUMBER type.
|
|
54
|
+
const defaultNumberConverter = (v) => (v === null) ? null : parseFloat(v);
|
|
55
|
+
|
|
56
|
+
//---------------------------------------------------------------------------
|
|
57
|
+
// _determineDbObjTypeConverter()
|
|
58
|
+
//
|
|
59
|
+
// Determines the converter associated with each DB type and its metadata.
|
|
60
|
+
// This function is called once during metadata construction and the
|
|
61
|
+
// converters are invoked when retriving DBObject values.
|
|
62
|
+
//---------------------------------------------------------------------------
|
|
63
|
+
function _determineDbObjTypeConverter(metadata, options) {
|
|
64
|
+
// clear any previous converter functions that may have been
|
|
65
|
+
// retained
|
|
66
|
+
delete metadata.converter;
|
|
67
|
+
|
|
68
|
+
// If a DBfetch type handler is specified, update converter,
|
|
69
|
+
// if available.
|
|
70
|
+
if (options.dbObjectTypeHandler) {
|
|
71
|
+
const result = options.dbObjectTypeHandler(metadata);
|
|
72
|
+
if (result !== undefined) {
|
|
73
|
+
errors.assert(typeof result === 'object',
|
|
74
|
+
errors.ERR_DB_FETCH_TYPE_HANDLER_RETURN_VALUE);
|
|
75
|
+
if (result.converter !== undefined) {
|
|
76
|
+
errors.assert(typeof result.converter === 'function',
|
|
77
|
+
errors.ERR_DB_FETCH_TYPE_HANDLER_CONVERTER);
|
|
78
|
+
}
|
|
79
|
+
if ([types.DB_TYPE_CLOB, types.DB_TYPE_NCLOB, types.DB_TYPE_BLOB,
|
|
80
|
+
types.DB_TYPE_BFILE].includes(metadata.type)) {
|
|
81
|
+
// converters for LOB's are not supported.
|
|
82
|
+
return errors.throwErr(errors.ERR_NOT_IMPLEMENTED,
|
|
83
|
+
'DbObjConverter for LOBs');
|
|
84
|
+
}
|
|
85
|
+
metadata.converter = result.converter;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (metadata.type === types.DB_TYPE_NUMBER && !metadata.converter) {
|
|
89
|
+
// set default converter for NUMBER type as they are returned as strings
|
|
90
|
+
// from DB.
|
|
91
|
+
metadata.converter = defaultNumberConverter;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// define class
|
|
96
|
+
class Connection extends EventEmitter {
|
|
97
|
+
|
|
98
|
+
constructor() {
|
|
99
|
+
super();
|
|
100
|
+
this._dbObjectClasses = new Map();
|
|
101
|
+
this._closing = false;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
//---------------------------------------------------------------------------
|
|
105
|
+
// _addDefaultsToExecOpts()
|
|
106
|
+
//
|
|
107
|
+
// Add values to the execute options from the global settings, if needed.
|
|
108
|
+
//---------------------------------------------------------------------------
|
|
109
|
+
_addDefaultsToExecOpts(options) {
|
|
110
|
+
options.connection = this;
|
|
111
|
+
if (options.keepInStmtCache === undefined)
|
|
112
|
+
options.keepInStmtCache = true;
|
|
113
|
+
if (options.suspendOnSuccess === undefined)
|
|
114
|
+
options.suspendOnSuccess = false;
|
|
115
|
+
settings.addToOptions(options,
|
|
116
|
+
"autoCommit",
|
|
117
|
+
"dbObjectAsPojo",
|
|
118
|
+
"fetchArraySize",
|
|
119
|
+
"fetchTypeHandler",
|
|
120
|
+
"maxRows",
|
|
121
|
+
"outFormat",
|
|
122
|
+
"prefetchRows");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
//---------------------------------------------------------------------------
|
|
126
|
+
// _buildDbObjectClass()
|
|
127
|
+
//
|
|
128
|
+
// Builds and returns a database object class given the object type
|
|
129
|
+
// information supplied by the implementation.
|
|
130
|
+
//---------------------------------------------------------------------------
|
|
131
|
+
_buildDbObjectClass(objType) {
|
|
132
|
+
const DbObject = function(initialValue) {
|
|
133
|
+
this._impl = new impl.DbObjectImpl(objType);
|
|
134
|
+
if (this.isCollection) {
|
|
135
|
+
const proxy = new Proxy(this, BaseDbObject._collectionProxyHandler);
|
|
136
|
+
if (initialValue !== undefined) {
|
|
137
|
+
for (let i = 0; i < initialValue.length; i++) {
|
|
138
|
+
this.append(initialValue[i]);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return (proxy);
|
|
142
|
+
} else if (initialValue !== undefined) {
|
|
143
|
+
for (const attr of objType.attributes) {
|
|
144
|
+
const value = initialValue[attr.name];
|
|
145
|
+
if (value !== undefined) {
|
|
146
|
+
this._setAttrValue(attr, value);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
DbObject.prototype = Object.create(BaseDbObject.prototype);
|
|
152
|
+
DbObject.prototype.constructor = DbObject;
|
|
153
|
+
DbObject.prototype._objType = objType;
|
|
154
|
+
if (objType.elementTypeClass) {
|
|
155
|
+
const cls = this._getDbObjectClass(objType.elementTypeClass);
|
|
156
|
+
objType.elementTypeClass = cls;
|
|
157
|
+
}
|
|
158
|
+
const options = {dbObjectTypeHandler: settings.dbObjectTypeHandler};
|
|
159
|
+
if (objType.isCollection) {
|
|
160
|
+
nodbUtil.addTypeProperties(objType, "elementType");
|
|
161
|
+
objType.elementTypeInfo.type = objType.elementType;
|
|
162
|
+
_determineDbObjTypeConverter(objType.elementTypeInfo, options);
|
|
163
|
+
}
|
|
164
|
+
if (objType.attributes) {
|
|
165
|
+
const props = {};
|
|
166
|
+
for (const attr of objType.attributes) {
|
|
167
|
+
if (attr.typeClass) {
|
|
168
|
+
attr.typeClass = this._getDbObjectClass(attr.typeClass);
|
|
169
|
+
}
|
|
170
|
+
nodbUtil.addTypeProperties(attr, "type");
|
|
171
|
+
const prop = {
|
|
172
|
+
get() {
|
|
173
|
+
return this._getAttrValue(attr);
|
|
174
|
+
},
|
|
175
|
+
set(value) {
|
|
176
|
+
this._setAttrValue(attr, value);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
props[attr.name] = prop;
|
|
180
|
+
|
|
181
|
+
// calculate for each attribute metadata as converters might change
|
|
182
|
+
// based on precision, scale, maxSize,..
|
|
183
|
+
_determineDbObjTypeConverter(attr, options);
|
|
184
|
+
}
|
|
185
|
+
Object.defineProperties(DbObject.prototype, props);
|
|
186
|
+
}
|
|
187
|
+
DbObject.toString = function() {
|
|
188
|
+
return ('DbObjectClass [' + objType.fqn + ']');
|
|
189
|
+
};
|
|
190
|
+
return (DbObject);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
//---------------------------------------------------------------------------
|
|
194
|
+
// _getDbObjectClass()
|
|
195
|
+
//
|
|
196
|
+
// Returns the database object class given the object type information
|
|
197
|
+
// supplied by the implementation. The cache is searched first to see if an
|
|
198
|
+
// object class has already been built.
|
|
199
|
+
//---------------------------------------------------------------------------
|
|
200
|
+
_getDbObjectClass(objType) {
|
|
201
|
+
if (objType.prototype instanceof BaseDbObject)
|
|
202
|
+
return objType;
|
|
203
|
+
let cls = this._dbObjectClasses.get(objType);
|
|
204
|
+
if (!cls) {
|
|
205
|
+
cls = this._buildDbObjectClass(objType);
|
|
206
|
+
cls._connection = this;
|
|
207
|
+
cls._objType = objType;
|
|
208
|
+
objType._connection = this._impl;
|
|
209
|
+
this._dbObjectClasses.set(objType, cls);
|
|
210
|
+
}
|
|
211
|
+
return (cls);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
//---------------------------------------------------------------------------
|
|
215
|
+
// _getDbObjectClassForName()
|
|
216
|
+
//
|
|
217
|
+
// Returns the database object class given the name of the database object
|
|
218
|
+
// type. The cache is searched first to see if an object class has already
|
|
219
|
+
// been built.
|
|
220
|
+
//---------------------------------------------------------------------------
|
|
221
|
+
async _getDbObjectClassForName(name) {
|
|
222
|
+
let cls = this._dbObjectClasses.get(name);
|
|
223
|
+
if (!cls) {
|
|
224
|
+
const objType = await this._impl.getDbObjectClass(name);
|
|
225
|
+
cls = this._getDbObjectClass(objType);
|
|
226
|
+
this._dbObjectClasses.set(name, cls);
|
|
227
|
+
}
|
|
228
|
+
return cls;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
//---------------------------------------------------------------------------
|
|
232
|
+
// _isBindDir()
|
|
233
|
+
//
|
|
234
|
+
// Returns a boolean indicating if the supplied value is a valid bind
|
|
235
|
+
// direction.
|
|
236
|
+
//---------------------------------------------------------------------------
|
|
237
|
+
_isBindDir(value) {
|
|
238
|
+
return (
|
|
239
|
+
value === constants.BIND_IN ||
|
|
240
|
+
value === constants.BIND_OUT ||
|
|
241
|
+
value === constants.BIND_INOUT
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
//---------------------------------------------------------------------------
|
|
246
|
+
// _isBindValue()
|
|
247
|
+
//
|
|
248
|
+
// Returns a boolean indicating if the supplied value is one that can be
|
|
249
|
+
// bound.
|
|
250
|
+
//---------------------------------------------------------------------------
|
|
251
|
+
_isBindValue(value) {
|
|
252
|
+
return (
|
|
253
|
+
value === null ||
|
|
254
|
+
value === undefined ||
|
|
255
|
+
typeof value === 'number' ||
|
|
256
|
+
typeof value === 'string' ||
|
|
257
|
+
typeof value === 'boolean' ||
|
|
258
|
+
typeof value === 'bigint' ||
|
|
259
|
+
Array.isArray(value) ||
|
|
260
|
+
nodbUtil.isVectorValue(value) ||
|
|
261
|
+
Buffer.isBuffer(value) ||
|
|
262
|
+
util.types.isDate(value) ||
|
|
263
|
+
value instanceof Lob ||
|
|
264
|
+
value instanceof ResultSet ||
|
|
265
|
+
value instanceof BaseDbObject
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
//---------------------------------------------------------------------------
|
|
270
|
+
// _processBindUnit()
|
|
271
|
+
//
|
|
272
|
+
// Processes a bind unit (object) supplied by the user and returns the value
|
|
273
|
+
// stored in it (if one is).
|
|
274
|
+
//---------------------------------------------------------------------------
|
|
275
|
+
async _processBindUnit(bindInfo, bindUnit, inExecuteMany) {
|
|
276
|
+
let okBindUnit = false;
|
|
277
|
+
|
|
278
|
+
// get and validate bind direction; if not specified, IN is assumed
|
|
279
|
+
if (bindUnit.dir === undefined) {
|
|
280
|
+
bindInfo.dir = constants.BIND_IN;
|
|
281
|
+
} else {
|
|
282
|
+
errors.assert(this._isBindDir(bindUnit.dir),
|
|
283
|
+
errors.ERR_INVALID_BIND_DIRECTION);
|
|
284
|
+
bindInfo.dir = bindUnit.dir;
|
|
285
|
+
okBindUnit = true;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// get and validate bind type; it must be one of the integer constants
|
|
289
|
+
// identifying types, a string identifying an object type or a constructor
|
|
290
|
+
// function identifying an object type
|
|
291
|
+
if (bindUnit.type !== undefined) {
|
|
292
|
+
if (typeof bindUnit.type === 'string') {
|
|
293
|
+
bindInfo.type = types.DB_TYPE_OBJECT;
|
|
294
|
+
bindInfo.typeClass = await this._getDbObjectClassForName(bindUnit.type);
|
|
295
|
+
bindInfo.objType = bindInfo.typeClass._objType;
|
|
296
|
+
} else if (bindUnit.type.prototype instanceof BaseDbObject) {
|
|
297
|
+
bindInfo.type = types.DB_TYPE_OBJECT;
|
|
298
|
+
bindInfo.typeClass = bindUnit.type;
|
|
299
|
+
bindInfo.objType = bindInfo.typeClass._objType;
|
|
300
|
+
} else {
|
|
301
|
+
errors.assert(bindUnit.type instanceof types.DbType,
|
|
302
|
+
errors.ERR_INVALID_BIND_DATA_TYPE, 2);
|
|
303
|
+
bindInfo.type = bindUnit.type;
|
|
304
|
+
}
|
|
305
|
+
okBindUnit = true;
|
|
306
|
+
|
|
307
|
+
// when calling executeMany(), bind type is mandatory
|
|
308
|
+
} else if (inExecuteMany) {
|
|
309
|
+
if (bindInfo.name)
|
|
310
|
+
errors.throwErr(errors.ERR_MISSING_TYPE_BY_NAME, bindInfo.name);
|
|
311
|
+
errors.throwErr(errors.ERR_MISSING_TYPE_BY_POS, bindInfo.pos);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// get and validate the maximum size for strings/buffers; this value is
|
|
315
|
+
// used for IN/OUT and OUT binds in execute() and at all times for
|
|
316
|
+
// executeMany()
|
|
317
|
+
if (bindInfo.dir !== constants.BIND_IN || inExecuteMany) {
|
|
318
|
+
if (bindUnit.maxSize !== undefined) {
|
|
319
|
+
errors.assertParamPropValue(Number.isInteger(bindUnit.maxSize) &&
|
|
320
|
+
bindUnit.maxSize > 0, 2, "maxSize");
|
|
321
|
+
bindInfo.maxSize = bindUnit.maxSize;
|
|
322
|
+
bindInfo.checkSize = true;
|
|
323
|
+
okBindUnit = true;
|
|
324
|
+
} else if (inExecuteMany) {
|
|
325
|
+
if (bindInfo.type === types.DB_TYPE_VARCHAR ||
|
|
326
|
+
bindInfo.type === types.DB_TYPE_RAW) {
|
|
327
|
+
if (bindInfo.name)
|
|
328
|
+
errors.throwErr(errors.ERR_MISSING_MAX_SIZE_BY_NAME, bindInfo.name);
|
|
329
|
+
errors.throwErr(errors.ERR_MISSING_MAX_SIZE_BY_POS, bindInfo.pos);
|
|
330
|
+
}
|
|
331
|
+
} else {
|
|
332
|
+
bindInfo.maxSize = constants.DEFAULT_MAX_SIZE_FOR_OUT_BINDS;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// get max array size (for array binds, not possible in executeMany())
|
|
337
|
+
bindInfo.isArray = false;
|
|
338
|
+
if (!inExecuteMany) {
|
|
339
|
+
if (bindUnit.maxArraySize !== undefined) {
|
|
340
|
+
errors.assertParamPropValue(Number.isInteger(bindUnit.maxArraySize) &&
|
|
341
|
+
bindUnit.maxArraySize > 0, 2, "maxArraySize");
|
|
342
|
+
bindInfo.maxArraySize = bindUnit.maxArraySize;
|
|
343
|
+
bindInfo.isArray = true;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// get the value, if specified (not used in executeMany())
|
|
348
|
+
if (!inExecuteMany && bindUnit.val !== undefined) {
|
|
349
|
+
return bindUnit.val;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (!okBindUnit)
|
|
353
|
+
errors.throwErr(errors.ERR_INVALID_BIND_UNIT);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
//---------------------------------------------------------------------------
|
|
357
|
+
// _processBindValue()
|
|
358
|
+
//
|
|
359
|
+
// Processes the bind value supplied by the caller. This performs all checks
|
|
360
|
+
// on the value and normalizes it for use by the implementation class. If no
|
|
361
|
+
// bind info has been defined yet, the value defines that.
|
|
362
|
+
//---------------------------------------------------------------------------
|
|
363
|
+
async _processBindValue(bindInfo, value, options) {
|
|
364
|
+
const transformed = transformer.transformValueIn(bindInfo, value, options);
|
|
365
|
+
if (bindInfo.isArray) {
|
|
366
|
+
bindInfo.values = transformed.concat(bindInfo.values.slice(transformed.length));
|
|
367
|
+
} else {
|
|
368
|
+
bindInfo.values[options.pos] = transformed;
|
|
369
|
+
}
|
|
370
|
+
if (bindInfo.type === types.DB_TYPE_OBJECT &&
|
|
371
|
+
bindInfo.typeClass === undefined) {
|
|
372
|
+
bindInfo.typeClass = await this._getDbObjectClass(value._objType);
|
|
373
|
+
bindInfo.objType = bindInfo.typeClass._objType;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
//---------------------------------------------------------------------------
|
|
378
|
+
// _processExecuteBind()
|
|
379
|
+
//
|
|
380
|
+
// Processes a single execute bind supplied by the caller. This performs all
|
|
381
|
+
// checks on the bind and normalizes it for use by the implementation class.
|
|
382
|
+
//---------------------------------------------------------------------------
|
|
383
|
+
async _processExecuteBind(bindInfo, bindData) {
|
|
384
|
+
|
|
385
|
+
// setup defaults
|
|
386
|
+
bindInfo.isArray = false;
|
|
387
|
+
|
|
388
|
+
// if bind data is a value that can be bound directly, use it; otherwise,
|
|
389
|
+
// scan the bind unit for bind information and its value
|
|
390
|
+
let bindValue;
|
|
391
|
+
if (this._isBindValue(bindData)) {
|
|
392
|
+
bindInfo.dir = constants.BIND_IN;
|
|
393
|
+
bindValue = bindData;
|
|
394
|
+
} else {
|
|
395
|
+
bindValue = await this._processBindUnit(bindInfo, bindData, false);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
// for IN and IN/OUT binds, process the value
|
|
399
|
+
if (bindInfo.dir !== constants.BIND_OUT) {
|
|
400
|
+
const options = {pos: 0, allowArray: true};
|
|
401
|
+
await this._processBindValue(bindInfo, bindValue, options);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
// if only null values were found (or an OUT bind was specified), type
|
|
405
|
+
// information may not be set, so complete bind information as a string
|
|
406
|
+
// and set the maxSize to 1 if it has not already been set
|
|
407
|
+
if (bindInfo.type === undefined) {
|
|
408
|
+
bindInfo.type = types.DB_TYPE_VARCHAR;
|
|
409
|
+
if (bindInfo.maxSize === undefined)
|
|
410
|
+
bindInfo.maxSize = 1;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// check valid bind type for array binds
|
|
414
|
+
if (bindInfo.isArray &&
|
|
415
|
+
bindInfo.type !== types.DB_TYPE_VARCHAR &&
|
|
416
|
+
bindInfo.type !== types.DB_TYPE_NVARCHAR &&
|
|
417
|
+
bindInfo.type !== types.DB_TYPE_CHAR &&
|
|
418
|
+
bindInfo.type !== types.DB_TYPE_NCHAR &&
|
|
419
|
+
bindInfo.type !== types.DB_TYPE_NUMBER &&
|
|
420
|
+
bindInfo.type !== types.DB_TYPE_BINARY_FLOAT &&
|
|
421
|
+
bindInfo.type !== types.DB_TYPE_BINARY_DOUBLE &&
|
|
422
|
+
bindInfo.type !== types.DB_TYPE_DATE &&
|
|
423
|
+
bindInfo.type !== types.DB_TYPE_TIMESTAMP &&
|
|
424
|
+
bindInfo.type !== types.DB_TYPE_TIMESTAMP_LTZ &&
|
|
425
|
+
bindInfo.type !== types.DB_TYPE_TIMESTAMP_TZ &&
|
|
426
|
+
bindInfo.type !== types.DB_TYPE_RAW &&
|
|
427
|
+
bindInfo.type !== types.DB_TYPE_INTERVAL_YM &&
|
|
428
|
+
bindInfo.type !== types.DB_TYPE_INTERVAL_DS) {
|
|
429
|
+
errors.throwErr(errors.ERR_INVALID_TYPE_FOR_ARRAY_BIND);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
//---------------------------------------------------------------------------
|
|
435
|
+
// _processExecuteBinds()
|
|
436
|
+
//
|
|
437
|
+
// Processes the binds supplied by the caller. This performs all checks on
|
|
438
|
+
// the binds and normalizes them for use by the implementation class.
|
|
439
|
+
//---------------------------------------------------------------------------
|
|
440
|
+
async _processExecuteBinds(binds) {
|
|
441
|
+
const normBinds = [];
|
|
442
|
+
if (Array.isArray(binds)) {
|
|
443
|
+
for (let i = 0; i < binds.length; i++) {
|
|
444
|
+
const bindInfo = normBinds[i] = {pos: i + 1, values: []};
|
|
445
|
+
await this._processExecuteBind(bindInfo, binds[i]);
|
|
446
|
+
}
|
|
447
|
+
} else {
|
|
448
|
+
errors.assertParamValue(nodbUtil.isObject(binds), 2);
|
|
449
|
+
const bindNames = Object.getOwnPropertyNames(binds);
|
|
450
|
+
for (let i = 0; i < bindNames.length; i++) {
|
|
451
|
+
const bindInfo = normBinds[i] = {name: bindNames[i], values: []};
|
|
452
|
+
await this._processExecuteBind(bindInfo, binds[bindNames[i]]);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
return normBinds;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
//---------------------------------------------------------------------------
|
|
459
|
+
// _processExecuteManyBinds()
|
|
460
|
+
//
|
|
461
|
+
// Processes the binds supplied by the caller. This performs all checks on
|
|
462
|
+
// the binds and normalizes them for use by the implementation class.
|
|
463
|
+
//---------------------------------------------------------------------------
|
|
464
|
+
async _processExecuteManyBinds(binds, bindDefs) {
|
|
465
|
+
const normBinds = [];
|
|
466
|
+
let byPosition;
|
|
467
|
+
|
|
468
|
+
// transform bindDefs into normalized binds, if available
|
|
469
|
+
if (bindDefs !== undefined) {
|
|
470
|
+
if (Array.isArray(bindDefs)) {
|
|
471
|
+
byPosition = true;
|
|
472
|
+
for (let i = 0; i < bindDefs.length; i++) {
|
|
473
|
+
const bindInfo = normBinds[i] = {pos: i + 1, values: []};
|
|
474
|
+
await this._processBindUnit(bindInfo, bindDefs[i], true);
|
|
475
|
+
}
|
|
476
|
+
} else {
|
|
477
|
+
byPosition = false;
|
|
478
|
+
const bindNames = Object.getOwnPropertyNames(bindDefs);
|
|
479
|
+
for (let i = 0; i < bindNames.length; i++) {
|
|
480
|
+
const bindInfo = normBinds[i] = {name: bindNames[i], values: []};
|
|
481
|
+
await this._processBindUnit(bindInfo, bindDefs[bindNames[i]], true);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// otherwise, use the first row to determine the binds to use
|
|
486
|
+
} else {
|
|
487
|
+
const row = binds[0];
|
|
488
|
+
errors.assertParamValue(nodbUtil.isObjectOrArray(row), 2);
|
|
489
|
+
if (Array.isArray(row)) {
|
|
490
|
+
byPosition = true;
|
|
491
|
+
for (let i = 0; i < row.length; i++) {
|
|
492
|
+
normBinds[i] = {pos: i + 1};
|
|
493
|
+
}
|
|
494
|
+
} else {
|
|
495
|
+
byPosition = false;
|
|
496
|
+
const bindNames = Object.getOwnPropertyNames(row);
|
|
497
|
+
for (let i = 0; i < bindNames.length; i++) {
|
|
498
|
+
normBinds[i] = {name: bindNames[i]};
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
for (let i = 0; i < normBinds.length; i++) {
|
|
502
|
+
normBinds[i].dir = constants.BIND_IN;
|
|
503
|
+
normBinds[i].isArray = false;
|
|
504
|
+
normBinds[i].values = [];
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// process each of the rows
|
|
509
|
+
for (let i = 0; i < binds.length; i++) {
|
|
510
|
+
const row = binds[i];
|
|
511
|
+
const options = {pos: i, allowArray: false};
|
|
512
|
+
errors.assert((byPosition && Array.isArray(row)) ||
|
|
513
|
+
(!byPosition && nodbUtil.isObject(row)), errors.ERR_MIXED_BIND);
|
|
514
|
+
for (let j = 0; j < normBinds.length; j++) {
|
|
515
|
+
const bindInfo = normBinds[j];
|
|
516
|
+
const value = (byPosition) ? row[j] : row[bindInfo.name];
|
|
517
|
+
await this._processBindValue(bindInfo, value, options);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
// set bind type and size to a string of size 1 if no bind type was
|
|
522
|
+
// specified (and all values are null)
|
|
523
|
+
for (let i = 0; i < normBinds.length; i++) {
|
|
524
|
+
const bindInfo = normBinds[i];
|
|
525
|
+
if (bindInfo.type === undefined) {
|
|
526
|
+
bindInfo.type = types.DB_TYPE_VARCHAR;
|
|
527
|
+
bindInfo.maxSize = 1;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
return normBinds;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
//---------------------------------------------------------------------------
|
|
535
|
+
// _transformOutBind()
|
|
536
|
+
//
|
|
537
|
+
// Transform an output bind value from an implementation value to a user
|
|
538
|
+
// facing value (for result sets and LOBs). DML returning output variables
|
|
539
|
+
// are always an array of values.
|
|
540
|
+
//---------------------------------------------------------------------------
|
|
541
|
+
_transformOutBind(val, options) {
|
|
542
|
+
let outVal = val;
|
|
543
|
+
if (Array.isArray(val)) {
|
|
544
|
+
outVal = [];
|
|
545
|
+
for (let i = 0; i < val.length; i++)
|
|
546
|
+
outVal.push(this._transformOutBind(val[i], options));
|
|
547
|
+
} else if (val instanceof impl.ResultSetImpl) {
|
|
548
|
+
outVal = new ResultSet();
|
|
549
|
+
outVal._setup(this, val);
|
|
550
|
+
} else if (val instanceof impl.LobImpl) {
|
|
551
|
+
outVal = new Lob();
|
|
552
|
+
outVal._setup(val, true);
|
|
553
|
+
} else if (val instanceof impl.DbObjectImpl) {
|
|
554
|
+
const cls = this._dbObjectClasses.get(val._objType);
|
|
555
|
+
outVal = Object.create(cls.prototype);
|
|
556
|
+
outVal._impl = val;
|
|
557
|
+
if (options.dbObjectAsPojo) {
|
|
558
|
+
outVal = outVal._toPojo();
|
|
559
|
+
} else if (outVal.isCollection) {
|
|
560
|
+
outVal = new Proxy(outVal, BaseDbObject._collectionProxyHandler);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
return outVal;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
//---------------------------------------------------------------------------
|
|
567
|
+
// _verifyExecOpts
|
|
568
|
+
//
|
|
569
|
+
// Verify that the value passed by the user for binds is acceptable. Perform
|
|
570
|
+
// any transformations necessary.
|
|
571
|
+
//---------------------------------------------------------------------------
|
|
572
|
+
_verifyExecOpts(options, inExecuteMany) {
|
|
573
|
+
|
|
574
|
+
// define normalized options (value returned to caller)
|
|
575
|
+
const outOptions = {};
|
|
576
|
+
|
|
577
|
+
// handle common options
|
|
578
|
+
errors.assertParamValue(nodbUtil.isObject(options), 3);
|
|
579
|
+
|
|
580
|
+
// autoCommit must be a boolean value
|
|
581
|
+
if (options.autoCommit !== undefined) {
|
|
582
|
+
errors.assertParamPropValue(typeof options.autoCommit === 'boolean', 3,
|
|
583
|
+
"autoCommit");
|
|
584
|
+
outOptions.autoCommit = options.autoCommit;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// dbObjectAsPojo must be a boolean value
|
|
588
|
+
if (options.dbObjectAsPojo !== undefined) {
|
|
589
|
+
errors.assertParamPropValue(typeof options.dbObjectAsPojo === 'boolean',
|
|
590
|
+
3, "dbObjectAsPojo");
|
|
591
|
+
outOptions.dbObjectAsPojo = options.dbObjectAsPojo;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// keepInStmtCache must be a boolean value
|
|
595
|
+
if (options.keepInStmtCache !== undefined) {
|
|
596
|
+
errors.assertParamPropValue(typeof options.keepInStmtCache === 'boolean',
|
|
597
|
+
3, "keepInStmtCache");
|
|
598
|
+
outOptions.keepInStmtCache = options.keepInStmtCache;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
if (options.suspendOnSuccess !== undefined) {
|
|
602
|
+
errors.assertParamPropBool(options, 2, "suspendOnSucess");
|
|
603
|
+
outOptions.suspendOnSuccess = options.suspendOnSuccess;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
// handle options specific to executeMany()
|
|
607
|
+
if (inExecuteMany) {
|
|
608
|
+
|
|
609
|
+
// bindDefs must be an object or array
|
|
610
|
+
if (options.bindDefs !== undefined) {
|
|
611
|
+
errors.assertParamPropValue(nodbUtil.isObjectOrArray(options.bindDefs),
|
|
612
|
+
3, "bindDefs");
|
|
613
|
+
outOptions.bindDefs = options.bindDefs;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// batchErrors must be a boolean value
|
|
617
|
+
if (options.batchErrors !== undefined) {
|
|
618
|
+
errors.assertParamPropValue(typeof options.batchErrors === 'boolean',
|
|
619
|
+
3, "batchErrors");
|
|
620
|
+
outOptions.batchErrors = options.batchErrors;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
// dmlRowCounts must be a boolean value
|
|
624
|
+
if (options.dmlRowCounts !== undefined) {
|
|
625
|
+
errors.assertParamPropValue(typeof options.dmlRowCounts === 'boolean',
|
|
626
|
+
3, "dmlRowCounts");
|
|
627
|
+
outOptions.dmlRowCounts = options.dmlRowCounts;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// handle options specific to execute()
|
|
631
|
+
} else {
|
|
632
|
+
|
|
633
|
+
// fetchArraySize must be a positive integer
|
|
634
|
+
errors.assertParamPropUnsignedIntNonZero(options, 3, "fetchArraySize");
|
|
635
|
+
outOptions.fetchArraySize = options.fetchArraySize;
|
|
636
|
+
|
|
637
|
+
// fetchInfo must be an object with keys containing an object with a
|
|
638
|
+
// "type" property; these are converted to an array of objects for ease
|
|
639
|
+
// of processing by the implementation
|
|
640
|
+
if (options.fetchInfo !== undefined) {
|
|
641
|
+
errors.assertParamPropValue(nodbUtil.isObject(options.fetchInfo), 3,
|
|
642
|
+
"fetchInfo");
|
|
643
|
+
const names = Object.getOwnPropertyNames(options.fetchInfo);
|
|
644
|
+
const map = new Map(settings.fetchTypeMap);
|
|
645
|
+
for (const name of names) {
|
|
646
|
+
const info = options.fetchInfo[name];
|
|
647
|
+
if (info.type === undefined)
|
|
648
|
+
errors.throwErr(errors.ERR_NO_TYPE_FOR_CONVERSION);
|
|
649
|
+
if (info.type !== constants.DEFAULT &&
|
|
650
|
+
info.type !== types.DB_TYPE_VARCHAR &&
|
|
651
|
+
info.type !== types.DB_TYPE_RAW) {
|
|
652
|
+
errors.throwErr(errors.ERR_INVALID_TYPE_FOR_CONVERSION);
|
|
653
|
+
}
|
|
654
|
+
map.set(name, info.type);
|
|
655
|
+
}
|
|
656
|
+
outOptions.fetchTypeMap = map;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
// fetchTypeHandler must be a function which is called for each column to
|
|
660
|
+
// be fetched and accepts the metadata for a column
|
|
661
|
+
if (options.fetchTypeHandler !== undefined) {
|
|
662
|
+
const type = (typeof options.fetchTypeHandler);
|
|
663
|
+
errors.assertParamPropValue(type === 'function', 3, "fetchTypeHandler");
|
|
664
|
+
outOptions.fetchTypeHandler = options.fetchTypeHandler;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
// maxRows must be a positive integer (or 0)
|
|
668
|
+
if (options.maxRows !== undefined) {
|
|
669
|
+
errors.assertParamPropValue(Number.isInteger(options.maxRows) &&
|
|
670
|
+
options.maxRows >= 0, 3, "maxRows");
|
|
671
|
+
outOptions.maxRows = options.maxRows;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
// outFormat must be one of the two possible constants
|
|
675
|
+
if (options.outFormat !== undefined) {
|
|
676
|
+
errors.assertParamPropValue(
|
|
677
|
+
options.outFormat === constants.OUT_FORMAT_ARRAY ||
|
|
678
|
+
options.outFormat === constants.OUT_FORMAT_OBJECT, 3, "outFormat");
|
|
679
|
+
outOptions.outFormat = options.outFormat;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
// prefetchRows must be a positive integer (or 0)
|
|
683
|
+
if (options.prefetchRows !== undefined) {
|
|
684
|
+
errors.assertParamPropValue(Number.isInteger(options.prefetchRows) &&
|
|
685
|
+
options.prefetchRows >= 0, 3, "prefetchRows");
|
|
686
|
+
outOptions.prefetchRows = options.prefetchRows;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
// resultSet must be a boolean value
|
|
690
|
+
if (options.resultSet !== undefined) {
|
|
691
|
+
errors.assertParamPropValue(typeof options.resultSet === 'boolean', 3,
|
|
692
|
+
"resultSet");
|
|
693
|
+
outOptions.resultSet = options.resultSet;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
return outOptions;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
//---------------------------------------------------------------------------
|
|
702
|
+
// action
|
|
703
|
+
//
|
|
704
|
+
// Property for end-to-end tracing attribute.
|
|
705
|
+
//---------------------------------------------------------------------------
|
|
706
|
+
get action() {
|
|
707
|
+
return null;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
set action(value) {
|
|
711
|
+
errors.assertPropValue(typeof value === 'string', "action");
|
|
712
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
713
|
+
this._impl.setAction(value);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
//---------------------------------------------------------------------------
|
|
717
|
+
// beginSessionlessTransaction()
|
|
718
|
+
//
|
|
719
|
+
// Begin a new sessionless transaction with provided transactionId.
|
|
720
|
+
// If transactionId wasn't provided a random-generated transactionId will be
|
|
721
|
+
// used and returned.
|
|
722
|
+
//---------------------------------------------------------------------------
|
|
723
|
+
async beginSessionlessTransaction(options = {}) {
|
|
724
|
+
errors.assertArgCount(arguments, 0, 1);
|
|
725
|
+
errors.assertParamValue(nodbUtil.isObject(options), 1);
|
|
726
|
+
if (options.transactionId !== undefined)
|
|
727
|
+
errors.assertParamPropValue(
|
|
728
|
+
nodbUtil.isTransactionId(options.transactionId), 1, 'transactionId');
|
|
729
|
+
errors.assertParamPropUnsignedIntNonZero(options, 1, 'timeout');
|
|
730
|
+
errors.assertParamPropBool(options, 1, 'deferRoundTrip');
|
|
731
|
+
const normalizedTransactionId =
|
|
732
|
+
nodbUtil.normalizeTransactionId(options.transactionId);
|
|
733
|
+
const {timeout = 60, deferRoundTrip = false} = options;
|
|
734
|
+
await this._impl.startSessionlessTransaction(normalizedTransactionId,
|
|
735
|
+
timeout, constants.TPC_BEGIN_NEW, deferRoundTrip);
|
|
736
|
+
return normalizedTransactionId;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
//---------------------------------------------------------------------------
|
|
740
|
+
// breakExecution()
|
|
741
|
+
//
|
|
742
|
+
// Breaks execution of a running statement.
|
|
743
|
+
//---------------------------------------------------------------------------
|
|
744
|
+
async breakExecution() {
|
|
745
|
+
errors.assertArgCount(arguments, 0, 0);
|
|
746
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
747
|
+
await this._impl.breakExecution();
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
//---------------------------------------------------------------------------
|
|
751
|
+
// callTimeout
|
|
752
|
+
//
|
|
753
|
+
// Property for round-trip timeouts.
|
|
754
|
+
//---------------------------------------------------------------------------
|
|
755
|
+
get callTimeout() {
|
|
756
|
+
if (this._impl)
|
|
757
|
+
return this._impl.getCallTimeout();
|
|
758
|
+
return undefined;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
set callTimeout(value) {
|
|
762
|
+
errors.assertPropValue(Number.isInteger(value) && value >= 0,
|
|
763
|
+
"callTimeout");
|
|
764
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
765
|
+
this._impl.setCallTimeout(value);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
//---------------------------------------------------------------------------
|
|
769
|
+
// changePassword()
|
|
770
|
+
//
|
|
771
|
+
// Changes the password of the specified user.
|
|
772
|
+
//---------------------------------------------------------------------------
|
|
773
|
+
async changePassword(user, password, newPassword) {
|
|
774
|
+
errors.assertArgCount(arguments, 3, 3);
|
|
775
|
+
errors.assertParamValue(typeof user === 'string', 1);
|
|
776
|
+
errors.assertParamValue(typeof password === 'string', 2);
|
|
777
|
+
errors.assertParamValue(typeof newPassword === 'string', 3);
|
|
778
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
779
|
+
await this._impl.changePassword(user, password, newPassword);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
//---------------------------------------------------------------------------
|
|
783
|
+
// clientId
|
|
784
|
+
//
|
|
785
|
+
// Property for end-to-end tracing attribute.
|
|
786
|
+
//---------------------------------------------------------------------------
|
|
787
|
+
get clientId() {
|
|
788
|
+
return null;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
set clientId(value) {
|
|
792
|
+
errors.assertPropValue(typeof value === 'string', "clientId");
|
|
793
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
794
|
+
this._impl.setClientId(value);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
//---------------------------------------------------------------------------
|
|
798
|
+
// clientInfo
|
|
799
|
+
//
|
|
800
|
+
// Property for end-to-end tracing attribute.
|
|
801
|
+
//---------------------------------------------------------------------------
|
|
802
|
+
get clientInfo() {
|
|
803
|
+
return null;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
set clientInfo(value) {
|
|
807
|
+
errors.assertPropValue(typeof value === 'string', "clientInfo");
|
|
808
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
809
|
+
this._impl.setClientInfo(value);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
//---------------------------------------------------------------------------
|
|
813
|
+
// close()
|
|
814
|
+
//
|
|
815
|
+
// Closes the connection and makes it unusable for further work.
|
|
816
|
+
//---------------------------------------------------------------------------
|
|
817
|
+
async close(a1) {
|
|
818
|
+
let options = {};
|
|
819
|
+
|
|
820
|
+
errors.assertArgCount(arguments, 0, 1);
|
|
821
|
+
if (arguments.length == 1) {
|
|
822
|
+
errors.assertParamValue(nodbUtil.isObject(a1), 1);
|
|
823
|
+
options = a1;
|
|
824
|
+
errors.assertParamPropBool(options, 1, "drop");
|
|
825
|
+
}
|
|
826
|
+
errors.assert(this._impl && !this._closing, errors.ERR_INVALID_CONNECTION);
|
|
827
|
+
|
|
828
|
+
this._closing = true;
|
|
829
|
+
try {
|
|
830
|
+
// If connection is part of a pool, notify the pool of its availability
|
|
831
|
+
if (this._pool) {
|
|
832
|
+
await this._pool._release(this._impl, options);
|
|
833
|
+
} else {
|
|
834
|
+
await this._impl.close(options);
|
|
835
|
+
}
|
|
836
|
+
} finally {
|
|
837
|
+
this._closing = false;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
delete this._impl;
|
|
841
|
+
if (!this.thin) {
|
|
842
|
+
for (const cls of this._dbObjectClasses.values()) {
|
|
843
|
+
cls._objType.refCleanup();
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
this._dbObjectClasses.clear();
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
//---------------------------------------------------------------------------
|
|
850
|
+
// commit()
|
|
851
|
+
//
|
|
852
|
+
// Commits the current transaction.
|
|
853
|
+
//---------------------------------------------------------------------------
|
|
854
|
+
async commit() {
|
|
855
|
+
errors.assertArgCount(arguments, 0, 0);
|
|
856
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
857
|
+
await this._impl.commit();
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
//---------------------------------------------------------------------------
|
|
861
|
+
// createLob()
|
|
862
|
+
//
|
|
863
|
+
// Creates a temporary LOB and returns it to the caller.
|
|
864
|
+
//---------------------------------------------------------------------------
|
|
865
|
+
async createLob(type) {
|
|
866
|
+
errors.assertArgCount(arguments, 1, 1);
|
|
867
|
+
errors.assertParamValue(type === types.DB_TYPE_CLOB ||
|
|
868
|
+
type === types.DB_TYPE_BLOB ||
|
|
869
|
+
type === types.DB_TYPE_NCLOB, 1);
|
|
870
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
871
|
+
const lob = new Lob();
|
|
872
|
+
lob._setup(await this._impl.createLob(type), false);
|
|
873
|
+
return lob;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
//---------------------------------------------------------------------------
|
|
877
|
+
// currentSchema
|
|
878
|
+
//
|
|
879
|
+
// Property for identifying the current schema to use in the database.
|
|
880
|
+
//---------------------------------------------------------------------------
|
|
881
|
+
get currentSchema() {
|
|
882
|
+
if (this._impl)
|
|
883
|
+
return this._impl.getCurrentSchema();
|
|
884
|
+
return undefined;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
set currentSchema(value) {
|
|
888
|
+
errors.assertPropValue(typeof value === 'string', "currentSchema");
|
|
889
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
890
|
+
this._impl.setCurrentSchema(value);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
//---------------------------------------------------------------------------
|
|
894
|
+
// dbOp
|
|
895
|
+
//
|
|
896
|
+
// Property for end-to-end tracing attribute.
|
|
897
|
+
//---------------------------------------------------------------------------
|
|
898
|
+
get dbOp() {
|
|
899
|
+
return null;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
set dbOp(value) {
|
|
903
|
+
errors.assertPropValue(typeof value === 'string', "dbOp");
|
|
904
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
905
|
+
this._impl.setDbOp(value);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
//---------------------------------------------------------------------------
|
|
909
|
+
// thin()
|
|
910
|
+
//
|
|
911
|
+
// return true, if driver mode is thin while acquiring connection
|
|
912
|
+
// return false, if driver mode is thick while acquiring connection
|
|
913
|
+
//---------------------------------------------------------------------------
|
|
914
|
+
get thin() {
|
|
915
|
+
return settings.thin;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
//---------------------------------------------------------------------------
|
|
919
|
+
// ecid
|
|
920
|
+
//
|
|
921
|
+
// Property for end-to-end tracing attribute.
|
|
922
|
+
//---------------------------------------------------------------------------
|
|
923
|
+
get ecid() {
|
|
924
|
+
return null;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
set ecid(value) {
|
|
928
|
+
errors.assertPropValue(typeof value === 'string', "ecid");
|
|
929
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
930
|
+
this._impl.setECID(value);
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
//---------------------------------------------------------------------------
|
|
934
|
+
// decode()
|
|
935
|
+
//
|
|
936
|
+
// Decodes OSON Buffer to JS data type.
|
|
937
|
+
//---------------------------------------------------------------------------
|
|
938
|
+
decodeOSON(buf) {
|
|
939
|
+
errors.assertArgCount(arguments, 1, 1);
|
|
940
|
+
errors.assertParamValue(Buffer.isBuffer(buf), 1);
|
|
941
|
+
const decoder = new oson.OsonDecoder(buf);
|
|
942
|
+
return decoder.decode();
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
//---------------------------------------------------------------------------
|
|
947
|
+
// encode()
|
|
948
|
+
//
|
|
949
|
+
// Encodes the JS value into OSON bytes.
|
|
950
|
+
//---------------------------------------------------------------------------
|
|
951
|
+
encodeOSON(value) {
|
|
952
|
+
const encoder = new oson.OsonEncoder();
|
|
953
|
+
return encoder.encode(transformer.transformJsonValue(value), this._impl._osonMaxFieldNameSize);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
//---------------------------------------------------------------------------
|
|
957
|
+
// execute()
|
|
958
|
+
//
|
|
959
|
+
// Executes a SQL statement and returns the results.
|
|
960
|
+
//---------------------------------------------------------------------------
|
|
961
|
+
async execute(sql, a2, a3) {
|
|
962
|
+
const numIters = 1;
|
|
963
|
+
let binds = [];
|
|
964
|
+
let options = {};
|
|
965
|
+
|
|
966
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
967
|
+
|
|
968
|
+
// process arguments
|
|
969
|
+
if (nodbUtil.isObject(sql) && typeof sql.statement === 'string') {
|
|
970
|
+
errors.assertArgCount(arguments, 1, 2);
|
|
971
|
+
if (sql.values) {
|
|
972
|
+
if (this._impl._callLevelTraceData) {
|
|
973
|
+
this._impl._callLevelTraceData.values = sql.values;
|
|
974
|
+
}
|
|
975
|
+
binds = await this._processExecuteBinds(sql.values);
|
|
976
|
+
}
|
|
977
|
+
sql = sql.statement;
|
|
978
|
+
if (arguments.length == 2) {
|
|
979
|
+
options = this._verifyExecOpts(a2, false);
|
|
980
|
+
}
|
|
981
|
+
} else {
|
|
982
|
+
errors.assertArgCount(arguments, 1, 3);
|
|
983
|
+
errors.assertParamValue(typeof sql === 'string', 1);
|
|
984
|
+
if (arguments.length >= 2) {
|
|
985
|
+
if (this._impl._callLevelTraceData) {
|
|
986
|
+
this._impl._callLevelTraceData.values = a2;
|
|
987
|
+
}
|
|
988
|
+
binds = await this._processExecuteBinds(a2);
|
|
989
|
+
}
|
|
990
|
+
if (arguments.length == 3) {
|
|
991
|
+
options = this._verifyExecOpts(a3, false);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
this._addDefaultsToExecOpts(options);
|
|
995
|
+
|
|
996
|
+
// perform actual execute
|
|
997
|
+
let result;
|
|
998
|
+
try {
|
|
999
|
+
if (this._impl._callLevelTraceData) {
|
|
1000
|
+
this._impl._callLevelTraceData.statement = sql;
|
|
1001
|
+
}
|
|
1002
|
+
result = await this._impl.execute(sql, numIters, binds, options, false);
|
|
1003
|
+
} catch (err) {
|
|
1004
|
+
if (err.errorNum === 1406)
|
|
1005
|
+
errors.throwErr(errors.ERR_INSUFFICIENT_BUFFER_FOR_BINDS);
|
|
1006
|
+
throw err;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
// convert ORA errors to NJS
|
|
1010
|
+
if (result.warning) {
|
|
1011
|
+
result.warning = errors.transformErr(result.warning);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
// process queries; if a result set is not desired, fetch all of the rows
|
|
1015
|
+
// from the result set and then destroy the result set
|
|
1016
|
+
if (result.resultSet !== undefined) {
|
|
1017
|
+
const resultSet = new ResultSet();
|
|
1018
|
+
resultSet._setup(this, result.resultSet);
|
|
1019
|
+
result.metaData = resultSet._impl.metaData;
|
|
1020
|
+
if (options.resultSet) {
|
|
1021
|
+
result.resultSet = resultSet;
|
|
1022
|
+
} else {
|
|
1023
|
+
result.rows = await resultSet._getAllRows();
|
|
1024
|
+
delete result.resultSet;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
// process output binds
|
|
1029
|
+
if (result.outBinds !== undefined) {
|
|
1030
|
+
for (const [key, value] of Object.entries(result.outBinds)) {
|
|
1031
|
+
const val = this._transformOutBind(value, options);
|
|
1032
|
+
result.outBinds[key] = val;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
// process implicit results; ensure all implicit results have their fetch
|
|
1037
|
+
// array size fixed, or, if a result set is not requested, that all rows
|
|
1038
|
+
// are fetched
|
|
1039
|
+
if (result.implicitResults) {
|
|
1040
|
+
for (const [key, impl] of Object.entries(result.implicitResults)) {
|
|
1041
|
+
const resultSet = new ResultSet();
|
|
1042
|
+
resultSet._setup(this, impl);
|
|
1043
|
+
if (options.resultSet) {
|
|
1044
|
+
result.implicitResults[key] = resultSet;
|
|
1045
|
+
} else {
|
|
1046
|
+
result.implicitResults[key] = await resultSet._getAllRows();
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
return (result);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
//---------------------------------------------------------------------------
|
|
1055
|
+
// executeMany()
|
|
1056
|
+
//
|
|
1057
|
+
// Executes a SQL statement multiple times and returns the results.
|
|
1058
|
+
//---------------------------------------------------------------------------
|
|
1059
|
+
async executeMany(sql, bindsOrNumIters, a3) {
|
|
1060
|
+
let options = {};
|
|
1061
|
+
let binds = [];
|
|
1062
|
+
let numIters;
|
|
1063
|
+
|
|
1064
|
+
errors.assertArgCount(arguments, 2, 3);
|
|
1065
|
+
errors.assertParamValue(typeof sql === 'string', 1);
|
|
1066
|
+
if (arguments.length == 3) {
|
|
1067
|
+
options = this._verifyExecOpts(a3, true);
|
|
1068
|
+
}
|
|
1069
|
+
this._addDefaultsToExecOpts(options);
|
|
1070
|
+
if (typeof bindsOrNumIters === 'number') {
|
|
1071
|
+
errors.assertParamValue(Number.isInteger(bindsOrNumIters) &&
|
|
1072
|
+
bindsOrNumIters > 0, 2);
|
|
1073
|
+
numIters = bindsOrNumIters;
|
|
1074
|
+
if (options.bindDefs !== undefined) {
|
|
1075
|
+
binds = await this._processExecuteManyBinds([], options.bindDefs);
|
|
1076
|
+
}
|
|
1077
|
+
} else {
|
|
1078
|
+
errors.assertParamValue(Array.isArray(bindsOrNumIters) &&
|
|
1079
|
+
bindsOrNumIters.length > 0, 2);
|
|
1080
|
+
numIters = bindsOrNumIters.length;
|
|
1081
|
+
binds = await this._processExecuteManyBinds(bindsOrNumIters,
|
|
1082
|
+
options.bindDefs);
|
|
1083
|
+
}
|
|
1084
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1085
|
+
|
|
1086
|
+
const result = await this._impl.execute(sql, numIters, binds, options,
|
|
1087
|
+
true);
|
|
1088
|
+
|
|
1089
|
+
// convert ORA warnings to NJS
|
|
1090
|
+
if (result.warning) {
|
|
1091
|
+
result.warning = errors.transformErr(result.warning);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
// process output binds
|
|
1095
|
+
if (result.outBinds !== undefined) {
|
|
1096
|
+
for (let i = 0; i < result.outBinds.length; i++) {
|
|
1097
|
+
const outBind = result.outBinds[i];
|
|
1098
|
+
for (const [key, value] of Object.entries(outBind)) {
|
|
1099
|
+
outBind[key] = this._transformOutBind(value, options);
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
return result;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
//---------------------------------------------------------------------------
|
|
1108
|
+
// externalName
|
|
1109
|
+
//
|
|
1110
|
+
// Property for identifying the external name to use in TPC logging.
|
|
1111
|
+
//---------------------------------------------------------------------------
|
|
1112
|
+
get externalName() {
|
|
1113
|
+
if (this._impl)
|
|
1114
|
+
return this._impl.getExternalName();
|
|
1115
|
+
return undefined;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
set externalName(value) {
|
|
1119
|
+
errors.assertPropValue(typeof value === 'string', "externalName");
|
|
1120
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1121
|
+
this._impl.setExternalName(value);
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
//---------------------------------------------------------------------------
|
|
1125
|
+
// dbDomain (READONLY)
|
|
1126
|
+
//
|
|
1127
|
+
// Property for identifying the dbDomain of the Oracle Database.
|
|
1128
|
+
//---------------------------------------------------------------------------
|
|
1129
|
+
get dbDomain() {
|
|
1130
|
+
return this._impl && this._impl.getDbDomain();
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
//---------------------------------------------------------------------------
|
|
1134
|
+
// dbName (READONLY)
|
|
1135
|
+
//
|
|
1136
|
+
// Property for identifying the dbName of the Oracle Database.
|
|
1137
|
+
//---------------------------------------------------------------------------
|
|
1138
|
+
get dbName() {
|
|
1139
|
+
return this._impl && this._impl.getDbName();
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
//---------------------------------------------------------------------------
|
|
1143
|
+
// hostName (READONLY)
|
|
1144
|
+
//
|
|
1145
|
+
// Property for identifying the hostName of the Oracle Database.
|
|
1146
|
+
//---------------------------------------------------------------------------
|
|
1147
|
+
get hostName() {
|
|
1148
|
+
return this._impl && this._impl.getHostName();
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
//---------------------------------------------------------------------------
|
|
1152
|
+
// port (READONLY)
|
|
1153
|
+
//
|
|
1154
|
+
// Property for identifying the port to which client is connected.
|
|
1155
|
+
//---------------------------------------------------------------------------
|
|
1156
|
+
get port() {
|
|
1157
|
+
return this._impl && this._impl.getPort();
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
//---------------------------------------------------------------------------
|
|
1161
|
+
// protocol (READONLY)
|
|
1162
|
+
//
|
|
1163
|
+
// Property for identifying the protocol used to connect to Oracle Database.
|
|
1164
|
+
//---------------------------------------------------------------------------
|
|
1165
|
+
get protocol() {
|
|
1166
|
+
return this._impl && this._impl.getProtocol();
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
//---------------------------------------------------------------------------
|
|
1170
|
+
// connectString (READONLY)
|
|
1171
|
+
//
|
|
1172
|
+
// User provided connectString to connect to Oracle Database.
|
|
1173
|
+
//---------------------------------------------------------------------------
|
|
1174
|
+
get connectString() {
|
|
1175
|
+
return this._impl && this._impl._connectString;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
//---------------------------------------------------------------------------
|
|
1179
|
+
// user
|
|
1180
|
+
//
|
|
1181
|
+
// User property provided to connect to Oracle Database.
|
|
1182
|
+
//---------------------------------------------------------------------------
|
|
1183
|
+
get user() {
|
|
1184
|
+
if (this.currentSchema.length) {
|
|
1185
|
+
return this.currentSchema;
|
|
1186
|
+
}
|
|
1187
|
+
return this._impl && this._impl._user;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
//---------------------------------------------------------------------------
|
|
1191
|
+
// connectTraceConfig
|
|
1192
|
+
//
|
|
1193
|
+
// Property for getting the connection related config.
|
|
1194
|
+
//---------------------------------------------------------------------------
|
|
1195
|
+
get connectTraceConfig() {
|
|
1196
|
+
return this._impl && this._impl._getConnectTraceConfig();
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
//---------------------------------------------------------------------------
|
|
1200
|
+
// getDbObjectClass()
|
|
1201
|
+
//
|
|
1202
|
+
// Returns a database object class given its name. The cache is searched
|
|
1203
|
+
// first, but if not found, the database is queried and the result is cached
|
|
1204
|
+
// using the type information (as well as the name for easier lookup later).
|
|
1205
|
+
//---------------------------------------------------------------------------
|
|
1206
|
+
async getDbObjectClass(name) {
|
|
1207
|
+
errors.assertArgCount(arguments, 1, 1);
|
|
1208
|
+
errors.assertParamValue(typeof name === 'string', 1);
|
|
1209
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1210
|
+
return await this._getDbObjectClassForName(name);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
//---------------------------------------------------------------------------
|
|
1214
|
+
// getQueue()
|
|
1215
|
+
//
|
|
1216
|
+
// Returns a queue with the specified name.
|
|
1217
|
+
//---------------------------------------------------------------------------
|
|
1218
|
+
async getQueue(name, a2) {
|
|
1219
|
+
let options = {};
|
|
1220
|
+
|
|
1221
|
+
errors.assertArgCount(arguments, 1, 2);
|
|
1222
|
+
errors.assertParamValue(typeof name === 'string', 1);
|
|
1223
|
+
if (arguments.length == 2) {
|
|
1224
|
+
errors.assertParamValue(nodbUtil.isObject(a2), 2);
|
|
1225
|
+
options = {...a2};
|
|
1226
|
+
}
|
|
1227
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1228
|
+
const queue = new AqQueue();
|
|
1229
|
+
await queue.create(this, name, options);
|
|
1230
|
+
return queue;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
//---------------------------------------------------------------------------
|
|
1234
|
+
// getSodaDatabase()
|
|
1235
|
+
//
|
|
1236
|
+
// Returns a SodaDatabase object (high-level SODA object associated with
|
|
1237
|
+
// the current connection).
|
|
1238
|
+
//---------------------------------------------------------------------------
|
|
1239
|
+
getSodaDatabase() {
|
|
1240
|
+
errors.assertArgCount(arguments, 0, 0);
|
|
1241
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1242
|
+
const sodaDb = new SodaDatabase();
|
|
1243
|
+
sodaDb._impl = this._impl.getSodaDatabase();
|
|
1244
|
+
return sodaDb;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
//---------------------------------------------------------------------------
|
|
1248
|
+
// getStatementInfo()
|
|
1249
|
+
//
|
|
1250
|
+
// Returns information about the statement.
|
|
1251
|
+
//---------------------------------------------------------------------------
|
|
1252
|
+
async getStatementInfo(sql) {
|
|
1253
|
+
errors.assertArgCount(arguments, 1, 1);
|
|
1254
|
+
errors.assertParamValue(typeof sql === 'string', 1);
|
|
1255
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1256
|
+
const info = await this._impl.getStatementInfo(sql);
|
|
1257
|
+
if (info.metaData) {
|
|
1258
|
+
for (let i = 0; i < info.metaData.length; i++) {
|
|
1259
|
+
const m = info.metaData[i];
|
|
1260
|
+
nodbUtil.addTypeProperties(m, "dbType");
|
|
1261
|
+
m.fetchType = types.DB_TYPE_FETCH_TYPE_MAP.get(m.dbType);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
return info;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
//---------------------------------------------------------------------------
|
|
1268
|
+
// instanceName
|
|
1269
|
+
//
|
|
1270
|
+
// Returns the Oracle Database instance name associated with the connection.
|
|
1271
|
+
// This is the equivalent of the SQL expression:
|
|
1272
|
+
// sys_context('userenv', 'instance_name')
|
|
1273
|
+
//---------------------------------------------------------------------------
|
|
1274
|
+
get instanceName() {
|
|
1275
|
+
if (this._impl)
|
|
1276
|
+
return this._impl.getInstanceName();
|
|
1277
|
+
return undefined;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
//---------------------------------------------------------------------------
|
|
1281
|
+
// internalName
|
|
1282
|
+
//
|
|
1283
|
+
// Property for identifying the internal name to use in TPC logging.
|
|
1284
|
+
//---------------------------------------------------------------------------
|
|
1285
|
+
get internalName() {
|
|
1286
|
+
if (this._impl)
|
|
1287
|
+
return this._impl.getInternalName();
|
|
1288
|
+
return undefined;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
set internalName(value) {
|
|
1292
|
+
errors.assertPropValue(typeof value === 'string', "internalName");
|
|
1293
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1294
|
+
this._impl.setInternalName(value);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
//---------------------------------------------------------------------------
|
|
1298
|
+
// ltxid
|
|
1299
|
+
//
|
|
1300
|
+
// Property for identifying the logical transaction ID to avoid duplicate
|
|
1301
|
+
// transactions. Used with Oracle Transaction Guard.
|
|
1302
|
+
//---------------------------------------------------------------------------
|
|
1303
|
+
get ltxid() {
|
|
1304
|
+
if (this._impl)
|
|
1305
|
+
return this._impl.getLTXID();
|
|
1306
|
+
return undefined;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
//--------------------------------------------------------------------------
|
|
1310
|
+
// isHealthy()
|
|
1311
|
+
//
|
|
1312
|
+
// Returns the health status of the connection. If this function returns
|
|
1313
|
+
// false, the caller should close the connection.
|
|
1314
|
+
//---------------------------------------------------------------------------
|
|
1315
|
+
isHealthy() {
|
|
1316
|
+
return (this._impl !== undefined && !this._closing &&
|
|
1317
|
+
this._impl.isHealthy());
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
isCompressionEnabled() {
|
|
1321
|
+
return (this._impl && this._impl.isCompressionEnabled());
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
//---------------------------------------------------------------------------
|
|
1325
|
+
// maxIdentifierLength
|
|
1326
|
+
//
|
|
1327
|
+
// Returns the maximum length of identifiers supported by the database to
|
|
1328
|
+
// which this connection has been established.
|
|
1329
|
+
//---------------------------------------------------------------------------
|
|
1330
|
+
get maxIdentifierLength() {
|
|
1331
|
+
return this._impl && this._impl.getMaxIdentifierLength();
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
//---------------------------------------------------------------------------
|
|
1335
|
+
// maxOpenCursors
|
|
1336
|
+
//
|
|
1337
|
+
// Returns maximum number of cursors that can be opened in one session.
|
|
1338
|
+
//---------------------------------------------------------------------------
|
|
1339
|
+
get maxOpenCursors() {
|
|
1340
|
+
return this._impl && this._impl.getMaxOpenCursors();
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
//---------------------------------------------------------------------------
|
|
1344
|
+
// warning
|
|
1345
|
+
//
|
|
1346
|
+
// Returns warningInfo.
|
|
1347
|
+
//---------------------------------------------------------------------------
|
|
1348
|
+
get warning() {
|
|
1349
|
+
let warning = this._impl.getWarning();
|
|
1350
|
+
if (warning) {
|
|
1351
|
+
// Make sure that warning code attribute is populated and ORA error
|
|
1352
|
+
// is converted to NJS, if required
|
|
1353
|
+
warning = errors.transformErr(warning);
|
|
1354
|
+
}
|
|
1355
|
+
return this._impl && warning;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
//---------------------------------------------------------------------------
|
|
1359
|
+
// module
|
|
1360
|
+
//
|
|
1361
|
+
// Property for end-to-end tracing attribute.
|
|
1362
|
+
//---------------------------------------------------------------------------
|
|
1363
|
+
get module() {
|
|
1364
|
+
return null;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
set module(value) {
|
|
1368
|
+
errors.assertPropValue(typeof value === 'string', "module");
|
|
1369
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1370
|
+
this._impl.setModule(value);
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
//---------------------------------------------------------------------------
|
|
1374
|
+
// oracleServerVersion
|
|
1375
|
+
//
|
|
1376
|
+
// Returns an integer identifying the Oracle Server version.
|
|
1377
|
+
//---------------------------------------------------------------------------
|
|
1378
|
+
get oracleServerVersion() {
|
|
1379
|
+
if (this._impl)
|
|
1380
|
+
return this._impl.getOracleServerVersion();
|
|
1381
|
+
return undefined;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
//---------------------------------------------------------------------------
|
|
1385
|
+
// oracleServerVersionString
|
|
1386
|
+
//
|
|
1387
|
+
// Returns a string identifying the Oracle Server version.
|
|
1388
|
+
//---------------------------------------------------------------------------
|
|
1389
|
+
get oracleServerVersionString() {
|
|
1390
|
+
if (this._impl)
|
|
1391
|
+
return this._impl.getOracleServerVersionString();
|
|
1392
|
+
return undefined;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
//---------------------------------------------------------------------------
|
|
1396
|
+
// serviceName
|
|
1397
|
+
//
|
|
1398
|
+
// Returns the Oracle Database service name associated with the connection.
|
|
1399
|
+
//---------------------------------------------------------------------------
|
|
1400
|
+
get serviceName() {
|
|
1401
|
+
return this._impl && this._impl.getServiceName();
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
//---------------------------------------------------------------------------
|
|
1405
|
+
// transactionInProgress
|
|
1406
|
+
//
|
|
1407
|
+
// Returns a boolean value based on the presence of an active transaction
|
|
1408
|
+
// on the connection
|
|
1409
|
+
//---------------------------------------------------------------------------
|
|
1410
|
+
get transactionInProgress() {
|
|
1411
|
+
return this._impl && this._impl.getTransactionInProgress();
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
//---------------------------------------------------------------------------
|
|
1415
|
+
// ping()
|
|
1416
|
+
//
|
|
1417
|
+
// Sends a "ping" to the database to see if it is "alive".
|
|
1418
|
+
//---------------------------------------------------------------------------
|
|
1419
|
+
async ping() {
|
|
1420
|
+
errors.assertArgCount(arguments, 0, 0);
|
|
1421
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1422
|
+
await this._impl.ping();
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
//--------------------------------------------------------------------------
|
|
1426
|
+
// queryStream()
|
|
1427
|
+
//
|
|
1428
|
+
// Similar to execute() except that it immediately returns a QueryStream
|
|
1429
|
+
// object.
|
|
1430
|
+
// ---------------------------------------------------------------------------
|
|
1431
|
+
queryStream(sql, binds, options) {
|
|
1432
|
+
errors.assertArgCount(arguments, 1, 3);
|
|
1433
|
+
errors.assertParamValue(typeof sql === 'string', 1);
|
|
1434
|
+
if (arguments.length == 3) {
|
|
1435
|
+
errors.assertParamValue(nodbUtil.isObject(options), 3);
|
|
1436
|
+
options = {...options};
|
|
1437
|
+
} else {
|
|
1438
|
+
options = {};
|
|
1439
|
+
}
|
|
1440
|
+
options.resultSet = true;
|
|
1441
|
+
|
|
1442
|
+
const stream = new QueryStream();
|
|
1443
|
+
|
|
1444
|
+
// calling execute() via nextTick to ensure that handlers are registered
|
|
1445
|
+
// prior to the events being emitted
|
|
1446
|
+
process.nextTick(async () => {
|
|
1447
|
+
try {
|
|
1448
|
+
const result = await this.execute(sql, binds || [], options);
|
|
1449
|
+
if (!result.resultSet)
|
|
1450
|
+
errors.throwErr(errors.ERR_NOT_A_QUERY);
|
|
1451
|
+
stream._open(result.resultSet);
|
|
1452
|
+
} catch (err) {
|
|
1453
|
+
stream.destroy(err);
|
|
1454
|
+
return;
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1457
|
+
|
|
1458
|
+
return (stream);
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
//---------------------------------------------------------------------------
|
|
1462
|
+
// resumeSessionlessTransaction()
|
|
1463
|
+
//
|
|
1464
|
+
// Resume an existing sessionlesss transaction using given transactionId
|
|
1465
|
+
//---------------------------------------------------------------------------
|
|
1466
|
+
async resumeSessionlessTransaction(transactionId, options = {}) {
|
|
1467
|
+
errors.assertArgCount(arguments, 1, 2);
|
|
1468
|
+
errors.assertParamValue(nodbUtil.isTransactionId(transactionId), 1);
|
|
1469
|
+
errors.assertParamValue(nodbUtil.isObject(options), 2);
|
|
1470
|
+
errors.assertParamPropUnsignedInt(options, 2, 'timeout');
|
|
1471
|
+
errors.assertParamPropBool(options, 2, 'deferRoundTrip');
|
|
1472
|
+
const normalizedTransactionId =
|
|
1473
|
+
nodbUtil.normalizeTransactionId(transactionId);
|
|
1474
|
+
const {timeout = 60, deferRoundTrip = false} = options;
|
|
1475
|
+
await this._impl.startSessionlessTransaction(normalizedTransactionId,
|
|
1476
|
+
timeout, constants.TPC_BEGIN_RESUME, deferRoundTrip);
|
|
1477
|
+
return normalizedTransactionId;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
//---------------------------------------------------------------------------
|
|
1481
|
+
// rollback()
|
|
1482
|
+
//
|
|
1483
|
+
// Rolls back the current transaction.
|
|
1484
|
+
//---------------------------------------------------------------------------
|
|
1485
|
+
async rollback() {
|
|
1486
|
+
errors.assertArgCount(arguments, 0, 0);
|
|
1487
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1488
|
+
await this._impl.rollback();
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
//---------------------------------------------------------------------------
|
|
1492
|
+
// shutdown()
|
|
1493
|
+
// Shuts down the database instance.
|
|
1494
|
+
//---------------------------------------------------------------------------
|
|
1495
|
+
async shutdown(a1) {
|
|
1496
|
+
let mode = constants.SHUTDOWN_MODE_DEFAULT;
|
|
1497
|
+
|
|
1498
|
+
errors.assertArgCount(arguments, 0, 1);
|
|
1499
|
+
if (a1 !== undefined) {
|
|
1500
|
+
errors.assertParamValue(typeof mode === 'number', 1);
|
|
1501
|
+
mode = a1;
|
|
1502
|
+
}
|
|
1503
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1504
|
+
|
|
1505
|
+
await this._impl.shutdown(mode);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
//---------------------------------------------------------------------------
|
|
1509
|
+
// startup()
|
|
1510
|
+
// Starts up the database instance.
|
|
1511
|
+
//---------------------------------------------------------------------------
|
|
1512
|
+
async startup(a1) {
|
|
1513
|
+
let options = {};
|
|
1514
|
+
|
|
1515
|
+
errors.assertArgCount(arguments, 0, 1);
|
|
1516
|
+
if (arguments.length == 1) {
|
|
1517
|
+
errors.assertParamValue(typeof options === 'object', 1);
|
|
1518
|
+
options = a1;
|
|
1519
|
+
errors.assertParamPropBool(options, 1, "force");
|
|
1520
|
+
errors.assertParamPropBool(options, 1, "restrict");
|
|
1521
|
+
errors.assertParamPropString(options, 1, "pfile");
|
|
1522
|
+
}
|
|
1523
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1524
|
+
|
|
1525
|
+
await this._impl.startup(options);
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
//---------------------------------------------------------------------------
|
|
1529
|
+
// stmtCacheSize
|
|
1530
|
+
//
|
|
1531
|
+
// Property for statement cache size.
|
|
1532
|
+
//---------------------------------------------------------------------------
|
|
1533
|
+
get stmtCacheSize() {
|
|
1534
|
+
if (this._impl)
|
|
1535
|
+
return this._impl.getStmtCacheSize();
|
|
1536
|
+
return undefined;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
set stmtCacheSize(value) {
|
|
1540
|
+
errors.assertPropValue(Number.isInteger(value) && value >= 0,
|
|
1541
|
+
"stmtCacheSize");
|
|
1542
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1543
|
+
this._impl.setStmtCacheSize(value);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
//---------------------------------------------------------------------------
|
|
1547
|
+
// subscribe()
|
|
1548
|
+
//
|
|
1549
|
+
// Creates a subscription which can be used to get notifications of database
|
|
1550
|
+
// changes or of AQ messages available to dequeue.
|
|
1551
|
+
//---------------------------------------------------------------------------
|
|
1552
|
+
async subscribe(name, options) {
|
|
1553
|
+
errors.assertArgCount(arguments, 2, 2);
|
|
1554
|
+
errors.assertParamValue(typeof name === 'string', 1);
|
|
1555
|
+
errors.assertParamValue(nodbUtil.isObject(options), 2);
|
|
1556
|
+
options = {name: name, ...options};
|
|
1557
|
+
errors.assertParamPropUnsignedInt(options, 2, "namespace");
|
|
1558
|
+
if (options.namespace === undefined)
|
|
1559
|
+
options.namespace = constants.SUBSCR_NAMESPACE_DBCHANGE;
|
|
1560
|
+
errors.assertParamPropString(options, 2, "ipAddress");
|
|
1561
|
+
errors.assertParamPropUnsignedInt(options, 2, "port");
|
|
1562
|
+
errors.assertParamPropUnsignedInt(options, 2, "timeout");
|
|
1563
|
+
errors.assertParamPropUnsignedInt(options, 2, "operations");
|
|
1564
|
+
errors.assertParamPropUnsignedInt(options, 2, "qos");
|
|
1565
|
+
errors.assertParamPropUnsignedInt(options, 2, "groupingClass");
|
|
1566
|
+
errors.assertParamPropUnsignedInt(options, 2, "groupingValue");
|
|
1567
|
+
errors.assertParamPropUnsignedInt(options, 2, "groupingType");
|
|
1568
|
+
errors.assertParamPropBool(options, 2, "clientInitiated");
|
|
1569
|
+
errors.assertParamPropFunction(options, 2, "callback");
|
|
1570
|
+
errors.assert(options.callback, errors.ERR_MISSING_SUBSCR_CALLBACK);
|
|
1571
|
+
if (options.namespace === constants.SUBSCR_NAMESPACE_DBCHANGE) {
|
|
1572
|
+
errors.assertParamPropString(options, 2, "sql");
|
|
1573
|
+
errors.assert(options.sql && options.sql.length > 0,
|
|
1574
|
+
errors.ERR_MISSING_SUBSCR_SQL);
|
|
1575
|
+
if (options.binds !== undefined) {
|
|
1576
|
+
options.binds = await this._processExecuteBinds(options.binds);
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1580
|
+
|
|
1581
|
+
const inSubscr = _subscriptions.get(name);
|
|
1582
|
+
const outValue = await this._impl.subscribe(inSubscr, options);
|
|
1583
|
+
let subscription;
|
|
1584
|
+
if (options.namespace === constants.SUBSCR_NAMESPACE_DBCHANGE) {
|
|
1585
|
+
subscription = outValue.subscription;
|
|
1586
|
+
delete outValue.subscription;
|
|
1587
|
+
} else {
|
|
1588
|
+
subscription = outValue;
|
|
1589
|
+
}
|
|
1590
|
+
_subscriptions.set(name, subscription);
|
|
1591
|
+
return outValue;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
//---------------------------------------------------------------------------
|
|
1595
|
+
// suspendSessionlessTransaction()
|
|
1596
|
+
//
|
|
1597
|
+
// Suspend any active sessionless transaction immediately
|
|
1598
|
+
//---------------------------------------------------------------------------
|
|
1599
|
+
async suspendSessionlessTransaction() {
|
|
1600
|
+
errors.assertArgCount(arguments, 0, 0);
|
|
1601
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1602
|
+
await this._impl.suspendSessionlessTransaction();
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
//---------------------------------------------------------------------------
|
|
1606
|
+
// tag
|
|
1607
|
+
//
|
|
1608
|
+
// Property for tag to associate with the connection.
|
|
1609
|
+
//---------------------------------------------------------------------------
|
|
1610
|
+
get tag() {
|
|
1611
|
+
if (this._impl)
|
|
1612
|
+
return this._impl.getTag();
|
|
1613
|
+
return undefined;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
set tag(value) {
|
|
1617
|
+
errors.assertPropValue(typeof value === 'string', "tag");
|
|
1618
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1619
|
+
this._impl.setTag(value);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
//---------------------------------------------------------------------------
|
|
1623
|
+
// tpcBegin()
|
|
1624
|
+
//
|
|
1625
|
+
// Starts a two-phase-commit transaction.
|
|
1626
|
+
//--------------------------------------------------------------------------
|
|
1627
|
+
async tpcBegin(xid, flag, timeout) {
|
|
1628
|
+
errors.assertArgCount(arguments, 1, 3);
|
|
1629
|
+
errors.assertParamValue(nodbUtil.isXid(xid), 1);
|
|
1630
|
+
const normalizedXid = nodbUtil.normalizeXid(xid);
|
|
1631
|
+
if (arguments.length < 3) {
|
|
1632
|
+
timeout = 60; // seconds
|
|
1633
|
+
} else {
|
|
1634
|
+
errors.assertParamValue(typeof timeout === 'number', 3);
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
if (arguments.length < 2) {
|
|
1638
|
+
flag = constants.TPC_BEGIN_NEW;
|
|
1639
|
+
} else {
|
|
1640
|
+
errors.assertParamValue(typeof flag === 'number', 2);
|
|
1641
|
+
const options = [constants.TPC_BEGIN_NEW, constants.TPC_BEGIN_JOIN,
|
|
1642
|
+
constants.TPC_BEGIN_RESUME, constants.TPC_BEGIN_PROMOTE];
|
|
1643
|
+
if (options.indexOf(flag) < 0) {
|
|
1644
|
+
errors.throwErr(errors.ERR_INVALID_TPC_BEGIN_FLAGS);
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1648
|
+
await this._impl.tpcBegin(normalizedXid, flag, timeout);
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
//---------------------------------------------------------------------------
|
|
1652
|
+
// tpcCommit()
|
|
1653
|
+
//
|
|
1654
|
+
// Commits a two-phase-commit transaction.
|
|
1655
|
+
//---------------------------------------------------------------------------
|
|
1656
|
+
async tpcCommit(xid, onePhase) {
|
|
1657
|
+
errors.assertArgCount(arguments, 0, 2);
|
|
1658
|
+
|
|
1659
|
+
if (arguments.length < 2) {
|
|
1660
|
+
onePhase = false;
|
|
1661
|
+
} else {
|
|
1662
|
+
errors.assertParamValue(typeof onePhase === 'boolean', 2);
|
|
1663
|
+
}
|
|
1664
|
+
let normalizedXid;
|
|
1665
|
+
if (arguments.length >= 1) {
|
|
1666
|
+
errors.assertParamValue(nodbUtil.isXid(xid), 1);
|
|
1667
|
+
normalizedXid = nodbUtil.normalizeXid(xid);
|
|
1668
|
+
}
|
|
1669
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1670
|
+
await this._impl.tpcCommit(normalizedXid, onePhase);
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
//---------------------------------------------------------------------------
|
|
1674
|
+
// tpcEnd()
|
|
1675
|
+
//
|
|
1676
|
+
// Ends a two-phase-commit transaction.
|
|
1677
|
+
//---------------------------------------------------------------------------
|
|
1678
|
+
async tpcEnd(xid, flag) {
|
|
1679
|
+
errors.assertArgCount(arguments, 0, 2);
|
|
1680
|
+
|
|
1681
|
+
if (arguments.length < 2) {
|
|
1682
|
+
flag = constants.TPC_END_NORMAL;
|
|
1683
|
+
} else {
|
|
1684
|
+
errors.assertParamValue(typeof flag === 'number', 2);
|
|
1685
|
+
const options = [constants.TPC_END_NORMAL, constants.TPC_END_SUSPEND];
|
|
1686
|
+
if (!options.includes(flag)) {
|
|
1687
|
+
errors.throwErr(errors.ERR_INVALID_TPC_END_FLAGS);
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
let normalizedXid;
|
|
1691
|
+
if (arguments.length >= 1) {
|
|
1692
|
+
errors.assertParamValue(nodbUtil.isXid(xid), 1);
|
|
1693
|
+
normalizedXid = nodbUtil.normalizeXid(xid);
|
|
1694
|
+
}
|
|
1695
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1696
|
+
|
|
1697
|
+
await this._impl.tpcEnd(normalizedXid, flag);
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
//---------------------------------------------------------------------------
|
|
1701
|
+
// tpcForget()
|
|
1702
|
+
//
|
|
1703
|
+
// Causes the server to forget a heuristically completed two-phase-commit
|
|
1704
|
+
// transaction.
|
|
1705
|
+
// ---------------------------------------------------------------------------
|
|
1706
|
+
async tpcForget(xid) {
|
|
1707
|
+
errors.assertArgCount(arguments, 1, 1);
|
|
1708
|
+
errors.assertParamValue(nodbUtil.isXid(xid), 1);
|
|
1709
|
+
const normalizedXid = nodbUtil.normalizeXid(xid);
|
|
1710
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1711
|
+
|
|
1712
|
+
await this._impl.tpcForget(normalizedXid);
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
//---------------------------------------------------------------------------
|
|
1716
|
+
// tpcPrepare()
|
|
1717
|
+
//
|
|
1718
|
+
// Prepares a two-phase-commit transaction for commit.
|
|
1719
|
+
//---------------------------------------------------------------------------
|
|
1720
|
+
async tpcPrepare(xid) {
|
|
1721
|
+
errors.assertArgCount(arguments, 0, 1);
|
|
1722
|
+
let normalizedXid;
|
|
1723
|
+
if (arguments.length >= 1) {
|
|
1724
|
+
errors.assertParamValue(nodbUtil.isXid(xid), 1);
|
|
1725
|
+
normalizedXid = nodbUtil.normalizeXid(xid);
|
|
1726
|
+
}
|
|
1727
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1728
|
+
|
|
1729
|
+
return await this._impl.tpcPrepare(normalizedXid);
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
//---------------------------------------------------------------------------
|
|
1733
|
+
// tpcRecover()
|
|
1734
|
+
//
|
|
1735
|
+
// Returns a list of pending two-phase-commit transactions.
|
|
1736
|
+
//---------------------------------------------------------------------------
|
|
1737
|
+
async tpcRecover(asString) {
|
|
1738
|
+
errors.assertArgCount(arguments, 0, 1);
|
|
1739
|
+
|
|
1740
|
+
if (arguments.length == 1) {
|
|
1741
|
+
errors.assertParamValue(typeof asString === 'boolean', 1);
|
|
1742
|
+
} else {
|
|
1743
|
+
asString = true;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
const sqlStr = `
|
|
1747
|
+
SELECT
|
|
1748
|
+
formatid as "formatId",
|
|
1749
|
+
UTL_RAW.CAST_TO_VARCHAR2(globalid) as "globalTransactionId",
|
|
1750
|
+
UTL_RAW.CAST_TO_VARCHAR2(branchid) as "branchQualifier"
|
|
1751
|
+
FROM DBA_PENDING_TRANSACTIONS`;
|
|
1752
|
+
const sqlBuf = `
|
|
1753
|
+
SELECT
|
|
1754
|
+
formatid as "formatId",
|
|
1755
|
+
globalid as "globalTransactionId",
|
|
1756
|
+
branchid as "branchQualifier"
|
|
1757
|
+
FROM DBA_PENDING_TRANSACTIONS`;
|
|
1758
|
+
const options = {
|
|
1759
|
+
outFormat: constants.OUT_FORMAT_OBJECT,
|
|
1760
|
+
resultSet: false
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
const result = await this.execute(asString ? sqlStr : sqlBuf, {}, options);
|
|
1764
|
+
return result.rows;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
//---------------------------------------------------------------------------
|
|
1768
|
+
// tpcRollback()
|
|
1769
|
+
//
|
|
1770
|
+
// Rolls back the current changes in a two-phase-commit transaction.
|
|
1771
|
+
//---------------------------------------------------------------------------
|
|
1772
|
+
async tpcRollback(xid) {
|
|
1773
|
+
errors.assertArgCount(arguments, 0, 1);
|
|
1774
|
+
let normalizedXid;
|
|
1775
|
+
if (arguments.length == 1) {
|
|
1776
|
+
errors.assertParamValue(nodbUtil.isXid(xid), 1);
|
|
1777
|
+
normalizedXid = nodbUtil.normalizeXid(xid);
|
|
1778
|
+
}
|
|
1779
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1780
|
+
|
|
1781
|
+
await this._impl.tpcRollback(normalizedXid);
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
//---------------------------------------------------------------------------
|
|
1785
|
+
// unsubscribe()
|
|
1786
|
+
//
|
|
1787
|
+
// Destroy a subscription which was earlier created using subscribe().
|
|
1788
|
+
//---------------------------------------------------------------------------
|
|
1789
|
+
async unsubscribe(name) {
|
|
1790
|
+
errors.assertArgCount(arguments, 1, 1);
|
|
1791
|
+
errors.assertParamValue(typeof name === 'string', 1);
|
|
1792
|
+
errors.assert(this._impl, errors.ERR_INVALID_CONNECTION);
|
|
1793
|
+
errors.assert(_subscriptions.has(name), errors.ERR_INVALID_SUBSCR);
|
|
1794
|
+
await this._impl.unsubscribe(_subscriptions.get(name));
|
|
1795
|
+
|
|
1796
|
+
// Delay decreasing the reference count
|
|
1797
|
+
// as NJS layer starts cleanup (uv_close) of async handle asynchronously.
|
|
1798
|
+
setTimeout(() => {
|
|
1799
|
+
_subscriptions.delete(name);
|
|
1800
|
+
}, 0);
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
// adjust functions to support the old callback style and to serialize calls
|
|
1806
|
+
// that cannot take place concurrently
|
|
1807
|
+
// NOTE: breakExecution() should not be serialized
|
|
1808
|
+
Connection.prototype.break =
|
|
1809
|
+
nodbUtil.callbackify(nodbUtil.wrapFn(Connection.prototype.breakExecution));
|
|
1810
|
+
Connection.prototype.tpcRecover =
|
|
1811
|
+
nodbUtil.callbackify(nodbUtil.wrapFn(Connection.prototype.tpcRecover));
|
|
1812
|
+
nodbUtil.wrapFns(Connection.prototype,
|
|
1813
|
+
"beginSessionlessTransaction",
|
|
1814
|
+
"changePassword",
|
|
1815
|
+
"close",
|
|
1816
|
+
"commit",
|
|
1817
|
+
"createLob",
|
|
1818
|
+
"execute",
|
|
1819
|
+
"executeMany",
|
|
1820
|
+
"getDbObjectClass",
|
|
1821
|
+
"getQueue",
|
|
1822
|
+
"getStatementInfo",
|
|
1823
|
+
"ping",
|
|
1824
|
+
"resumeSessionlessTransaction",
|
|
1825
|
+
"rollback",
|
|
1826
|
+
"shutdown",
|
|
1827
|
+
"startup",
|
|
1828
|
+
"subscribe",
|
|
1829
|
+
"suspendSessionlessTransaction",
|
|
1830
|
+
"tpcBegin",
|
|
1831
|
+
"tpcCommit",
|
|
1832
|
+
"tpcEnd",
|
|
1833
|
+
"tpcForget",
|
|
1834
|
+
"tpcPrepare",
|
|
1835
|
+
"tpcRollback",
|
|
1836
|
+
"unsubscribe");
|
|
1837
|
+
|
|
1838
|
+
// add alias for release()
|
|
1839
|
+
Connection.prototype.release = Connection.prototype.close;
|
|
1840
|
+
|
|
1841
|
+
// export just the Connection class
|
|
1842
|
+
module.exports = Connection;
|