orcaq 1.0.26 → 1.0.28
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/-lZvfnzr.js +1 -0
- package/.output/public/_nuxt/ACi_yrrw.js +1 -0
- package/.output/public/_nuxt/AgentWorkspace.67IpTcyl.css +1 -0
- package/.output/public/_nuxt/B-E3EDXq.js +21 -0
- package/.output/public/_nuxt/B-o1cyu1.js +1 -0
- package/.output/public/_nuxt/B-rj9QI0.js +1 -0
- package/.output/public/_nuxt/B0pvfm-W.js +1 -0
- package/.output/public/_nuxt/B3XOCDJg.js +1 -0
- package/.output/public/_nuxt/B7iORLht.js +8 -0
- package/.output/public/_nuxt/B9xm8XSJ.js +1 -0
- package/.output/public/_nuxt/BDPGejuO.js +2 -0
- package/.output/public/_nuxt/BHFnD9yO.js +1 -0
- package/.output/public/_nuxt/BHp-OX9z.js +1 -0
- package/.output/public/_nuxt/BIW9Rd2L.js +1 -0
- package/.output/public/_nuxt/BJdgR-zN.js +1 -0
- package/.output/public/_nuxt/BKltSiU0.js +1 -0
- package/.output/public/_nuxt/BQAF7cM_.js +53 -0
- package/.output/public/_nuxt/BRpeq4XL.js +1 -0
- package/.output/public/_nuxt/BSs5g8DH.js +1 -0
- package/.output/public/_nuxt/BUuSKT2f.js +152 -0
- package/.output/public/_nuxt/BV4_2PzU.js +1 -0
- package/.output/public/_nuxt/BVmBXPoG.js +1 -0
- package/.output/public/_nuxt/BZEKLHO-.js +1 -0
- package/.output/public/_nuxt/BaseCodeEditor.SAr2eD8R.css +1 -0
- package/.output/public/_nuxt/BiOIaWuc.js +1 -0
- package/.output/public/_nuxt/BlWNlw-C.js +15 -0
- package/.output/public/_nuxt/BranJUWp.js +1 -0
- package/.output/public/_nuxt/BsnN2mQb.js +3 -0
- package/.output/public/_nuxt/BwddCgOY.js +1 -0
- package/.output/public/_nuxt/C26aAkUg.js +39 -0
- package/.output/public/_nuxt/CAcIcjka.js +9 -0
- package/.output/public/_nuxt/CO-m0olR.js +2 -0
- package/.output/public/_nuxt/CQNFvXDN.js +1 -0
- package/.output/public/_nuxt/CQQKPHb8.js +225 -0
- package/.output/public/_nuxt/CQr87mff.js +1 -0
- package/.output/public/_nuxt/C__Jz_zH.js +40 -0
- package/.output/public/_nuxt/CbjqLbgu.js +1 -0
- package/.output/public/_nuxt/CfblXyCF.js +1 -0
- package/.output/public/_nuxt/Cqe10li5.js +1 -0
- package/.output/public/_nuxt/CwtNS48a.js +1 -0
- package/.output/public/_nuxt/D4jtSPyP.js +3 -0
- package/.output/public/_nuxt/D8s-WG7x.js +1 -0
- package/.output/public/_nuxt/D9SCXF1G.js +1 -0
- package/.output/public/_nuxt/DAsY4LnG.js +1 -0
- package/.output/public/_nuxt/DM73sEXg.js +1 -0
- package/.output/public/_nuxt/DNmOzKte.js +1 -0
- package/.output/public/_nuxt/DdMwxl0I.js +1 -0
- package/.output/public/_nuxt/DfL_wWxk.js +1 -0
- package/.output/public/_nuxt/DftZZFKd.js +732 -0
- package/.output/public/_nuxt/DgPgl0Vt.js +39 -0
- package/.output/public/_nuxt/DpyvTVPg.js +8 -0
- package/.output/public/_nuxt/Ds4ET3BG.js +72 -0
- package/.output/public/_nuxt/Dwm3kp4S.js +3867 -0
- package/.output/public/_nuxt/DynamicTable.BW0D7NXb.css +1 -0
- package/.output/public/_nuxt/GqcI3eLm.js +67 -0
- package/.output/public/_nuxt/QuickQuery.CJ7tNjo4.css +1 -0
- package/.output/public/_nuxt/S6q6IfIg.js +6 -0
- package/.output/public/_nuxt/SzZsnvJ-.js +2 -0
- package/.output/public/_nuxt/T2yrk5P8.js +1 -0
- package/.output/public/_nuxt/UrLgZoyE.js +9 -0
- package/.output/public/_nuxt/W0T58tNs.js +1 -0
- package/.output/public/_nuxt/WrapperErdDiagram.DsE2QNGr.css +1 -0
- package/.output/public/_nuxt/Yzrsuije.js +1 -0
- package/.output/public/_nuxt/_fileId_.B3PtfMYN.css +1 -0
- package/.output/public/_nuxt/aKVabwds.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/1e32d709-950d-49a3-8d61-1b3385318747.json +1 -0
- package/.output/public/_nuxt/default.DC7ec2JI.css +1 -0
- package/.output/public/_nuxt/entry.Kia9TCip.css +1 -0
- package/.output/public/_nuxt/fuZLfV_i.js +1 -0
- package/.output/public/_nuxt/iDT-eQ46.js +1 -0
- package/.output/public/_nuxt/index.P0q-dO_S.css +1 -0
- package/.output/public/_nuxt/lN7hePE6.js +1 -0
- package/.output/public/_nuxt/logo.BsJ2Dfin.png +0 -0
- package/.output/public/_nuxt/mW-nBTJP.js +1 -0
- package/.output/public/_nuxt/rdXrKZa8.js +68 -0
- package/.output/public/_nuxt/vU5dtBjy.js +1 -0
- package/.output/public/logo-8-bits.svg +4 -0
- package/.output/server/chunks/_/create-adapter.mjs +68 -0
- package/.output/server/chunks/_/create-adapter.mjs.map +1 -0
- package/.output/server/chunks/_/database-error.mjs +53 -0
- package/.output/server/chunks/_/database-error.mjs.map +1 -0
- package/.output/server/chunks/_/database-roles.factory.mjs +737 -0
- package/.output/server/chunks/_/database-roles.factory.mjs.map +1 -0
- package/.output/server/chunks/_/db-connection.mjs +352 -0
- package/.output/server/chunks/_/db-connection.mjs.map +1 -0
- package/.output/server/chunks/_/error.mjs +25 -0
- package/.output/server/chunks/_/error.mjs.map +1 -0
- package/.output/server/chunks/_/functions.factory.mjs +174 -0
- package/.output/server/chunks/_/functions.factory.mjs.map +1 -0
- package/.output/server/chunks/_/instance-insights.factory.mjs +643 -0
- package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -0
- package/.output/server/chunks/_/metadata.factory.mjs +583 -0
- package/.output/server/chunks/_/metadata.factory.mjs.map +1 -0
- package/.output/server/chunks/_/query.factory.mjs +163 -0
- package/.output/server/chunks/_/query.factory.mjs.map +1 -0
- package/.output/server/chunks/_/tables.factory.mjs +788 -0
- package/.output/server/chunks/_/tables.factory.mjs.map +1 -0
- package/.output/server/chunks/_/views.factory.mjs +227 -0
- package/.output/server/chunks/_/views.factory.mjs.map +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +565 -319
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +717 -804
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/ai/agent.mjs +1626 -0
- package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -0
- package/.output/server/chunks/routes/api/ai/chat.mjs +2 -2
- package/.output/server/chunks/routes/api/database-export/export-database.mjs +16 -5
- package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-import/import-database.mjs +31 -5
- package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs +13 -7
- 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 +13 -7
- 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 +13 -7
- 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 +20 -9
- 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 +13 -7
- 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 +13 -7
- 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 +13 -7
- 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 +13 -7
- 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 +13 -7
- 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 +13 -7
- 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 +13 -7
- 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 +13 -7
- 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 +13 -7
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs +35 -0
- package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/functions/delete.post.mjs +41 -0
- package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/functions/overview.post.mjs +42 -0
- package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/functions/rename.post.mjs +48 -0
- package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/functions/signature.post.mjs +35 -0
- package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/functions/update.post.mjs +45 -0
- package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +55 -0
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +58 -0
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +55 -0
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +55 -0
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +55 -0
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +55 -0
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +55 -0
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +60 -0
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +15 -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 +34 -0
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +36 -0
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +35 -0
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +103 -0
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/query/execute.post.mjs +46 -0
- package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +44 -0
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +48 -0
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +49 -0
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +50 -0
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs +32 -0
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/export.post.mjs +47 -0
- package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs +32 -0
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/meta.post.mjs +39 -0
- package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/overview.post.mjs +32 -0
- package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/rls.post.mjs +36 -0
- package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/rules.post.mjs +32 -0
- package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/size.post.mjs +32 -0
- package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/structure.post.mjs +32 -0
- package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs +32 -0
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/views/definition.post.mjs +27 -0
- package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs +27 -0
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/views/explain.post.mjs +29 -0
- package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/views/indexes.post.mjs +27 -0
- package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/views/meta.post.mjs +27 -0
- package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/views/overview.post.mjs +27 -0
- package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +4 -4
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +1 -1
- package/.output/server/index.mjs +3 -3
- package/.output/server/node_modules/.nitro/@ai-sdk/provider-utils@4.0.19/dist/index.mjs +2756 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider-utils@4.0.19/node_modules/@ai-sdk/provider/dist/index.mjs +404 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider-utils@4.0.19/node_modules/@ai-sdk/provider/package.json +63 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider-utils@4.0.19/package.json +81 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider-utils@4.0.4/dist/index.mjs +2549 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider-utils@4.0.4/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider-utils@4.0.4/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider-utils@4.0.4/package.json +75 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider@3.0.2/dist/index.mjs +377 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider@3.0.2/package.json +57 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider@3.0.8/dist/index.mjs +404 -0
- package/.output/server/node_modules/.nitro/@ai-sdk/provider@3.0.8/package.json +63 -0
- package/.output/server/node_modules/.nitro/debug@4.3.4/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/.nitro/debug@4.3.4/node_modules/ms/package.json +37 -0
- package/.output/server/node_modules/.nitro/debug@4.3.4/package.json +59 -0
- package/.output/server/node_modules/.nitro/debug@4.3.4/src/browser.js +269 -0
- package/.output/server/node_modules/.nitro/debug@4.3.4/src/common.js +274 -0
- package/.output/server/node_modules/.nitro/debug@4.3.4/src/index.js +10 -0
- package/.output/server/node_modules/.nitro/debug@4.3.4/src/node.js +263 -0
- package/.output/server/node_modules/.nitro/debug@4.4.0/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/.nitro/debug@4.4.0/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/.nitro/debug@4.4.0/package.json +65 -0
- package/.output/server/node_modules/.nitro/debug@4.4.0/src/browser.js +272 -0
- package/.output/server/node_modules/.nitro/debug@4.4.0/src/common.js +292 -0
- package/.output/server/node_modules/.nitro/debug@4.4.0/src/index.js +10 -0
- package/.output/server/node_modules/.nitro/debug@4.4.0/src/node.js +263 -0
- package/.output/server/node_modules/.nitro/ms@2.1.2/index.js +162 -0
- package/.output/server/node_modules/.nitro/ms@2.1.2/package.json +37 -0
- package/.output/server/node_modules/.nitro/ms@2.1.3/index.js +162 -0
- package/.output/server/node_modules/.nitro/ms@2.1.3/package.json +38 -0
- package/.output/server/node_modules/.nitro/pg-connection-string@2.6.2/index.js +112 -0
- package/.output/server/node_modules/.nitro/pg-connection-string@2.6.2/package.json +40 -0
- package/.output/server/node_modules/.nitro/pg-connection-string@2.7.0/index.js +112 -0
- package/.output/server/node_modules/.nitro/pg-connection-string@2.7.0/package.json +40 -0
- package/.output/server/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider-utils/dist/index.mjs +2549 -0
- package/.output/server/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider-utils/package.json +75 -0
- package/.output/server/node_modules/@ai-sdk/gateway/dist/index.mjs +539 -82
- package/.output/server/node_modules/@ai-sdk/gateway/node_modules/@ai-sdk/provider/dist/index.mjs +404 -0
- package/.output/server/node_modules/@ai-sdk/gateway/node_modules/@ai-sdk/provider/package.json +63 -0
- package/.output/server/node_modules/@ai-sdk/gateway/node_modules/@ai-sdk/provider-utils/dist/index.mjs +2756 -0
- package/.output/server/node_modules/@ai-sdk/gateway/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.mjs +404 -0
- package/.output/server/node_modules/@ai-sdk/gateway/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
- package/.output/server/node_modules/@ai-sdk/gateway/node_modules/@ai-sdk/provider-utils/package.json +81 -0
- package/.output/server/node_modules/@ai-sdk/gateway/package.json +16 -5
- package/.output/server/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider-utils/dist/index.mjs +2549 -0
- package/.output/server/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider-utils/package.json +75 -0
- package/.output/server/node_modules/@ai-sdk/openai/dist/index.mjs +1498 -961
- package/.output/server/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/dist/index.mjs +404 -0
- package/.output/server/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/package.json +63 -0
- package/.output/server/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider-utils/dist/index.mjs +2756 -0
- package/.output/server/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.mjs +404 -0
- package/.output/server/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
- package/.output/server/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider-utils/package.json +81 -0
- package/.output/server/node_modules/@ai-sdk/openai/package.json +14 -5
- package/.output/server/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider-utils/dist/index.mjs +2549 -0
- package/.output/server/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider-utils/package.json +75 -0
- package/.output/server/node_modules/@ai-sdk/provider/dist/index.mjs +32 -5
- package/.output/server/node_modules/@ai-sdk/provider/package.json +7 -1
- package/.output/server/node_modules/@ai-sdk/provider-utils/dist/index.mjs +231 -24
- package/.output/server/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.mjs +404 -0
- package/.output/server/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
- package/.output/server/node_modules/@ai-sdk/provider-utils/package.json +8 -2
- package/.output/server/node_modules/@ai-sdk/xai/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/xai/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/xai/node_modules/@ai-sdk/provider-utils/dist/index.mjs +2549 -0
- package/.output/server/node_modules/@ai-sdk/xai/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/xai/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/xai/node_modules/@ai-sdk/provider-utils/package.json +75 -0
- package/.output/server/node_modules/@iconify/utils/node_modules/debug/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/@iconify/utils/node_modules/debug/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/@iconify/utils/node_modules/debug/package.json +65 -0
- package/.output/server/node_modules/@iconify/utils/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/@iconify/utils/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/@iconify/utils/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/@iconify/utils/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs +4656 -0
- package/.output/server/node_modules/@openrouter/ai-sdk-provider/package.json +82 -0
- package/.output/server/node_modules/ag-grid-community/dist/package/main.esm.mjs +50065 -0
- package/.output/server/node_modules/ag-grid-community/package.json +113 -0
- package/.output/server/node_modules/ai/dist/index.mjs +2069 -918
- package/.output/server/node_modules/ai/node_modules/@ai-sdk/provider/dist/index.mjs +404 -0
- package/.output/server/node_modules/ai/node_modules/@ai-sdk/provider/package.json +63 -0
- package/.output/server/node_modules/ai/node_modules/@ai-sdk/provider-utils/dist/index.mjs +2756 -0
- package/.output/server/node_modules/ai/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.mjs +404 -0
- package/.output/server/node_modules/ai/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
- package/.output/server/node_modules/ai/node_modules/@ai-sdk/provider-utils/package.json +81 -0
- package/.output/server/node_modules/ai/package.json +15 -6
- package/.output/server/node_modules/asn1/lib/ber/errors.js +13 -0
- package/.output/server/node_modules/asn1/lib/ber/index.js +27 -0
- package/.output/server/node_modules/asn1/lib/ber/reader.js +262 -0
- package/.output/server/node_modules/asn1/lib/ber/types.js +36 -0
- package/.output/server/node_modules/asn1/lib/ber/writer.js +317 -0
- package/.output/server/node_modules/asn1/lib/index.js +20 -0
- package/.output/server/node_modules/asn1/package.json +31 -0
- package/.output/server/node_modules/bcrypt-pbkdf/index.js +556 -0
- package/.output/server/node_modules/bcrypt-pbkdf/package.json +15 -0
- package/.output/server/node_modules/colorette/index.cjs +218 -0
- package/.output/server/node_modules/colorette/package.json +39 -0
- package/.output/server/node_modules/debug/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/debug/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/file-saver/dist/FileSaver.min.js +3 -0
- package/.output/server/node_modules/file-saver/package.json +40 -0
- package/.output/server/node_modules/get-package-type/async.cjs +52 -0
- package/.output/server/node_modules/get-package-type/cache.cjs +3 -0
- package/.output/server/node_modules/get-package-type/index.cjs +7 -0
- package/.output/server/node_modules/get-package-type/is-node-modules.cjs +15 -0
- package/.output/server/node_modules/get-package-type/package.json +35 -0
- package/.output/server/node_modules/get-package-type/sync.cjs +42 -0
- package/.output/server/node_modules/knex/knex.js +23 -0
- package/.output/server/node_modules/knex/knex.mjs +11 -0
- package/.output/server/node_modules/knex/lib/builder-interface-augmenter.js +120 -0
- package/.output/server/node_modules/knex/lib/client.js +495 -0
- package/.output/server/node_modules/knex/lib/constants.js +61 -0
- package/.output/server/node_modules/knex/lib/dialects/better-sqlite3/index.js +77 -0
- package/.output/server/node_modules/knex/lib/dialects/cockroachdb/crdb-columncompiler.js +14 -0
- package/.output/server/node_modules/knex/lib/dialects/cockroachdb/crdb-querybuilder.js +11 -0
- package/.output/server/node_modules/knex/lib/dialects/cockroachdb/crdb-querycompiler.js +122 -0
- package/.output/server/node_modules/knex/lib/dialects/cockroachdb/crdb-tablecompiler.js +37 -0
- package/.output/server/node_modules/knex/lib/dialects/cockroachdb/crdb-viewcompiler.js +15 -0
- package/.output/server/node_modules/knex/lib/dialects/cockroachdb/index.js +86 -0
- package/.output/server/node_modules/knex/lib/dialects/index.js +34 -0
- package/.output/server/node_modules/knex/lib/dialects/mssql/index.js +500 -0
- package/.output/server/node_modules/knex/lib/dialects/mssql/mssql-formatter.js +34 -0
- package/.output/server/node_modules/knex/lib/dialects/mssql/query/mssql-querycompiler.js +601 -0
- package/.output/server/node_modules/knex/lib/dialects/mssql/schema/mssql-columncompiler.js +185 -0
- package/.output/server/node_modules/knex/lib/dialects/mssql/schema/mssql-compiler.js +91 -0
- package/.output/server/node_modules/knex/lib/dialects/mssql/schema/mssql-tablecompiler.js +378 -0
- package/.output/server/node_modules/knex/lib/dialects/mssql/schema/mssql-viewcompiler.js +55 -0
- package/.output/server/node_modules/knex/lib/dialects/mssql/transaction.js +176 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/index.js +206 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/query/mysql-querybuilder.js +14 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/query/mysql-querycompiler.js +292 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/schema/mysql-columncompiler.js +193 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/schema/mysql-compiler.js +60 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/schema/mysql-tablecompiler.js +405 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/schema/mysql-viewbuilder.js +21 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/schema/mysql-viewcompiler.js +15 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql/transaction.js +46 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql2/index.js +53 -0
- package/.output/server/node_modules/knex/lib/dialects/mysql2/transaction.js +44 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/index.js +92 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/query/oracle-querycompiler.js +343 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/schema/internal/incrementUtils.js +22 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/schema/internal/trigger.js +155 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/schema/oracle-columnbuilder.js +17 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/schema/oracle-columncompiler.js +126 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/schema/oracle-compiler.js +124 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/schema/oracle-tablecompiler.js +197 -0
- package/.output/server/node_modules/knex/lib/dialects/oracle/utils.js +106 -0
- package/.output/server/node_modules/knex/lib/dialects/oracledb/index.js +381 -0
- package/.output/server/node_modules/knex/lib/dialects/oracledb/query/oracledb-querycompiler.js +481 -0
- package/.output/server/node_modules/knex/lib/dialects/oracledb/schema/oracledb-columncompiler.js +61 -0
- package/.output/server/node_modules/knex/lib/dialects/oracledb/schema/oracledb-tablecompiler.js +19 -0
- package/.output/server/node_modules/knex/lib/dialects/oracledb/schema/oracledb-viewbuilder.js +13 -0
- package/.output/server/node_modules/knex/lib/dialects/oracledb/schema/oracledb-viewcompiler.js +19 -0
- package/.output/server/node_modules/knex/lib/dialects/oracledb/transaction.js +98 -0
- package/.output/server/node_modules/knex/lib/dialects/oracledb/utils.js +208 -0
- package/.output/server/node_modules/knex/lib/dialects/pgnative/index.js +60 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/execution/pg-transaction.js +19 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/index.js +361 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/query/pg-querybuilder.js +43 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/query/pg-querycompiler.js +400 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/schema/pg-columncompiler.js +156 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/schema/pg-compiler.js +138 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/schema/pg-tablecompiler.js +304 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/schema/pg-viewbuilder.js +21 -0
- package/.output/server/node_modules/knex/lib/dialects/postgres/schema/pg-viewcompiler.js +35 -0
- package/.output/server/node_modules/knex/lib/dialects/redshift/index.js +86 -0
- package/.output/server/node_modules/knex/lib/dialects/redshift/query/redshift-querycompiler.js +163 -0
- package/.output/server/node_modules/knex/lib/dialects/redshift/schema/redshift-columnbuilder.js +22 -0
- package/.output/server/node_modules/knex/lib/dialects/redshift/schema/redshift-columncompiler.js +67 -0
- package/.output/server/node_modules/knex/lib/dialects/redshift/schema/redshift-compiler.js +14 -0
- package/.output/server/node_modules/knex/lib/dialects/redshift/schema/redshift-tablecompiler.js +122 -0
- package/.output/server/node_modules/knex/lib/dialects/redshift/schema/redshift-viewcompiler.js +11 -0
- package/.output/server/node_modules/knex/lib/dialects/redshift/transaction.js +32 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/execution/sqlite-transaction.js +25 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/index.js +250 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/query/sqlite-querybuilder.js +33 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/query/sqlite-querycompiler.js +334 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/ddl.js +400 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/internal/compiler.js +327 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/internal/parser-combinator.js +161 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/internal/parser.js +638 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/internal/sqlite-ddl-operations.js +41 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/internal/tokenizer.js +38 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/internal/utils.js +12 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/sqlite-columncompiler.js +50 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/sqlite-compiler.js +80 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/sqlite-tablecompiler.js +347 -0
- package/.output/server/node_modules/knex/lib/dialects/sqlite3/schema/sqlite-viewcompiler.js +40 -0
- package/.output/server/node_modules/knex/lib/execution/batch-insert.js +51 -0
- package/.output/server/node_modules/knex/lib/execution/internal/delay.js +6 -0
- package/.output/server/node_modules/knex/lib/execution/internal/ensure-connection-callback.js +41 -0
- package/.output/server/node_modules/knex/lib/execution/internal/query-executioner.js +62 -0
- package/.output/server/node_modules/knex/lib/execution/runner.js +325 -0
- package/.output/server/node_modules/knex/lib/execution/transaction.js +413 -0
- package/.output/server/node_modules/knex/lib/formatter/formatterUtils.js +42 -0
- package/.output/server/node_modules/knex/lib/formatter/rawFormatter.js +84 -0
- package/.output/server/node_modules/knex/lib/formatter/wrappingFormatter.js +250 -0
- package/.output/server/node_modules/knex/lib/formatter.js +25 -0
- package/.output/server/node_modules/knex/lib/index.js +3 -0
- package/.output/server/node_modules/knex/lib/knex-builder/FunctionHelper.js +80 -0
- package/.output/server/node_modules/knex/lib/knex-builder/Knex.js +59 -0
- package/.output/server/node_modules/knex/lib/knex-builder/internal/config-resolver.js +57 -0
- package/.output/server/node_modules/knex/lib/knex-builder/internal/parse-connection.js +87 -0
- package/.output/server/node_modules/knex/lib/knex-builder/make-knex.js +345 -0
- package/.output/server/node_modules/knex/lib/logger.js +76 -0
- package/.output/server/node_modules/knex/lib/migrations/common/MigrationsLoader.js +36 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/MigrationGenerator.js +84 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/Migrator.js +599 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/migration-list-resolver.js +33 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/migrator-configuration-merger.js +58 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/sources/fs-migrations.js +74 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/cjs.stub +15 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/coffee.stub +13 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/eg.stub +14 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/js-schema.stub +22 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/js.stub +22 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/knexfile-coffee.stub +34 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/knexfile-eg.stub +43 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/knexfile-js.stub +47 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/knexfile-ls.stub +35 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/knexfile-ts.stub +47 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/ls.stub +14 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/mjs.stub +23 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/ts-schema.stub +21 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/stub/ts.stub +21 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/table-creator.js +77 -0
- package/.output/server/node_modules/knex/lib/migrations/migrate/table-resolver.js +27 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/Seeder.js +137 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/seeder-configuration-merger.js +60 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/sources/fs-seeds.js +65 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/stub/coffee.stub +9 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/stub/eg.stub +11 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/stub/js.stub +13 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/stub/ls.stub +11 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/stub/mjs.stub +12 -0
- package/.output/server/node_modules/knex/lib/migrations/seed/stub/ts.stub +13 -0
- package/.output/server/node_modules/knex/lib/migrations/util/fs.js +86 -0
- package/.output/server/node_modules/knex/lib/migrations/util/import-file.js +12 -0
- package/.output/server/node_modules/knex/lib/migrations/util/is-module-type.js +9 -0
- package/.output/server/node_modules/knex/lib/migrations/util/template.js +52 -0
- package/.output/server/node_modules/knex/lib/migrations/util/timestamp.js +14 -0
- package/.output/server/node_modules/knex/lib/query/analytic.js +52 -0
- package/.output/server/node_modules/knex/lib/query/constants.js +15 -0
- package/.output/server/node_modules/knex/lib/query/joinclause.js +270 -0
- package/.output/server/node_modules/knex/lib/query/method-constants.js +136 -0
- package/.output/server/node_modules/knex/lib/query/querybuilder.js +1793 -0
- package/.output/server/node_modules/knex/lib/query/querycompiler.js +1591 -0
- package/.output/server/node_modules/knex/lib/raw.js +139 -0
- package/.output/server/node_modules/knex/lib/ref.js +39 -0
- package/.output/server/node_modules/knex/lib/schema/builder.js +115 -0
- package/.output/server/node_modules/knex/lib/schema/columnbuilder.js +146 -0
- package/.output/server/node_modules/knex/lib/schema/columncompiler.js +307 -0
- package/.output/server/node_modules/knex/lib/schema/compiler.js +187 -0
- package/.output/server/node_modules/knex/lib/schema/internal/helpers.js +55 -0
- package/.output/server/node_modules/knex/lib/schema/tablebuilder.js +376 -0
- package/.output/server/node_modules/knex/lib/schema/tablecompiler.js +439 -0
- package/.output/server/node_modules/knex/lib/schema/viewbuilder.js +92 -0
- package/.output/server/node_modules/knex/lib/schema/viewcompiler.js +138 -0
- package/.output/server/node_modules/knex/lib/util/finally-mixin.js +13 -0
- package/.output/server/node_modules/knex/lib/util/helpers.js +95 -0
- package/.output/server/node_modules/knex/lib/util/is.js +32 -0
- package/.output/server/node_modules/knex/lib/util/nanoid.js +40 -0
- package/.output/server/node_modules/knex/lib/util/noop.js +1 -0
- package/.output/server/node_modules/knex/lib/util/save-async-stack.js +14 -0
- package/.output/server/node_modules/knex/lib/util/security.js +26 -0
- package/.output/server/node_modules/knex/lib/util/string.js +190 -0
- package/.output/server/node_modules/knex/lib/util/timeout.js +29 -0
- package/.output/server/node_modules/knex/node_modules/debug/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/knex/node_modules/debug/node_modules/ms/package.json +37 -0
- package/.output/server/node_modules/knex/node_modules/debug/package.json +59 -0
- package/.output/server/node_modules/knex/node_modules/debug/src/browser.js +269 -0
- package/.output/server/node_modules/knex/node_modules/debug/src/common.js +274 -0
- package/.output/server/node_modules/knex/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/knex/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/knex/node_modules/pg-connection-string/index.js +112 -0
- package/.output/server/node_modules/knex/node_modules/pg-connection-string/package.json +40 -0
- package/.output/server/node_modules/knex/package.json +267 -0
- package/.output/server/node_modules/lodash/_DataView.js +7 -0
- package/.output/server/node_modules/lodash/_Hash.js +32 -0
- package/.output/server/node_modules/lodash/_ListCache.js +32 -0
- package/.output/server/node_modules/lodash/_Map.js +7 -0
- package/.output/server/node_modules/lodash/_MapCache.js +32 -0
- package/.output/server/node_modules/lodash/_Promise.js +7 -0
- package/.output/server/node_modules/lodash/_Set.js +7 -0
- package/.output/server/node_modules/lodash/_SetCache.js +27 -0
- package/.output/server/node_modules/lodash/_Stack.js +27 -0
- package/.output/server/node_modules/lodash/_Symbol.js +6 -0
- package/.output/server/node_modules/lodash/_Uint8Array.js +6 -0
- package/.output/server/node_modules/lodash/_WeakMap.js +7 -0
- package/.output/server/node_modules/lodash/_apply.js +21 -0
- package/.output/server/node_modules/lodash/_arrayAggregator.js +22 -0
- package/.output/server/node_modules/lodash/_arrayEach.js +22 -0
- package/.output/server/node_modules/lodash/_arrayFilter.js +25 -0
- package/.output/server/node_modules/lodash/_arrayIncludes.js +17 -0
- package/.output/server/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/.output/server/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/.output/server/node_modules/lodash/_arrayMap.js +21 -0
- package/.output/server/node_modules/lodash/_arrayPush.js +20 -0
- package/.output/server/node_modules/lodash/_arrayReduce.js +26 -0
- package/.output/server/node_modules/lodash/_arraySome.js +23 -0
- package/.output/server/node_modules/lodash/_asciiToArray.js +12 -0
- package/.output/server/node_modules/lodash/_assignMergeValue.js +20 -0
- package/.output/server/node_modules/lodash/_assignValue.js +28 -0
- package/.output/server/node_modules/lodash/_assocIndexOf.js +21 -0
- package/.output/server/node_modules/lodash/_baseAggregator.js +21 -0
- package/.output/server/node_modules/lodash/_baseAssign.js +17 -0
- package/.output/server/node_modules/lodash/_baseAssignIn.js +17 -0
- package/.output/server/node_modules/lodash/_baseAssignValue.js +25 -0
- package/.output/server/node_modules/lodash/_baseClone.js +166 -0
- package/.output/server/node_modules/lodash/_baseCreate.js +30 -0
- package/.output/server/node_modules/lodash/_baseDelay.js +21 -0
- package/.output/server/node_modules/lodash/_baseDifference.js +67 -0
- package/.output/server/node_modules/lodash/_baseEach.js +14 -0
- package/.output/server/node_modules/lodash/_baseExtremum.js +32 -0
- package/.output/server/node_modules/lodash/_baseFilter.js +21 -0
- package/.output/server/node_modules/lodash/_baseFindIndex.js +24 -0
- package/.output/server/node_modules/lodash/_baseFlatten.js +38 -0
- package/.output/server/node_modules/lodash/_baseFor.js +16 -0
- package/.output/server/node_modules/lodash/_baseForOwn.js +16 -0
- package/.output/server/node_modules/lodash/_baseGet.js +24 -0
- package/.output/server/node_modules/lodash/_baseGetAllKeys.js +20 -0
- package/.output/server/node_modules/lodash/_baseGetTag.js +28 -0
- package/.output/server/node_modules/lodash/_baseGt.js +14 -0
- package/.output/server/node_modules/lodash/_baseHas.js +19 -0
- package/.output/server/node_modules/lodash/_baseHasIn.js +13 -0
- package/.output/server/node_modules/lodash/_baseIndexOf.js +20 -0
- package/.output/server/node_modules/lodash/_baseIsArguments.js +18 -0
- package/.output/server/node_modules/lodash/_baseIsEqual.js +28 -0
- package/.output/server/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- package/.output/server/node_modules/lodash/_baseIsMap.js +18 -0
- package/.output/server/node_modules/lodash/_baseIsMatch.js +62 -0
- package/.output/server/node_modules/lodash/_baseIsNaN.js +12 -0
- package/.output/server/node_modules/lodash/_baseIsNative.js +47 -0
- package/.output/server/node_modules/lodash/_baseIsSet.js +18 -0
- package/.output/server/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/.output/server/node_modules/lodash/_baseIteratee.js +31 -0
- package/.output/server/node_modules/lodash/_baseKeys.js +30 -0
- package/.output/server/node_modules/lodash/_baseKeysIn.js +33 -0
- package/.output/server/node_modules/lodash/_baseMap.js +22 -0
- package/.output/server/node_modules/lodash/_baseMatches.js +22 -0
- package/.output/server/node_modules/lodash/_baseMatchesProperty.js +33 -0
- package/.output/server/node_modules/lodash/_baseMerge.js +42 -0
- package/.output/server/node_modules/lodash/_baseMergeDeep.js +94 -0
- package/.output/server/node_modules/lodash/_baseOrderBy.js +49 -0
- package/.output/server/node_modules/lodash/_basePickBy.js +30 -0
- package/.output/server/node_modules/lodash/_baseProperty.js +14 -0
- package/.output/server/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/.output/server/node_modules/lodash/_basePropertyOf.js +14 -0
- package/.output/server/node_modules/lodash/_baseReduce.js +23 -0
- package/.output/server/node_modules/lodash/_baseRest.js +17 -0
- package/.output/server/node_modules/lodash/_baseSet.js +51 -0
- package/.output/server/node_modules/lodash/_baseSetToString.js +22 -0
- package/.output/server/node_modules/lodash/_baseSlice.js +31 -0
- package/.output/server/node_modules/lodash/_baseSome.js +22 -0
- package/.output/server/node_modules/lodash/_baseSortBy.js +21 -0
- package/.output/server/node_modules/lodash/_baseTimes.js +20 -0
- package/.output/server/node_modules/lodash/_baseToString.js +37 -0
- package/.output/server/node_modules/lodash/_baseTrim.js +19 -0
- package/.output/server/node_modules/lodash/_baseUnary.js +14 -0
- package/.output/server/node_modules/lodash/_baseUniq.js +72 -0
- package/.output/server/node_modules/lodash/_baseValues.js +19 -0
- package/.output/server/node_modules/lodash/_cacheHas.js +13 -0
- package/.output/server/node_modules/lodash/_castFunction.js +14 -0
- package/.output/server/node_modules/lodash/_castPath.js +21 -0
- package/.output/server/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/.output/server/node_modules/lodash/_cloneBuffer.js +35 -0
- package/.output/server/node_modules/lodash/_cloneDataView.js +16 -0
- package/.output/server/node_modules/lodash/_cloneRegExp.js +17 -0
- package/.output/server/node_modules/lodash/_cloneSymbol.js +18 -0
- package/.output/server/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/.output/server/node_modules/lodash/_compareAscending.js +41 -0
- package/.output/server/node_modules/lodash/_compareMultiple.js +44 -0
- package/.output/server/node_modules/lodash/_copyArray.js +20 -0
- package/.output/server/node_modules/lodash/_copyObject.js +40 -0
- package/.output/server/node_modules/lodash/_copySymbols.js +16 -0
- package/.output/server/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/.output/server/node_modules/lodash/_coreJsData.js +6 -0
- package/.output/server/node_modules/lodash/_createAggregator.js +23 -0
- package/.output/server/node_modules/lodash/_createAssigner.js +37 -0
- package/.output/server/node_modules/lodash/_createBaseEach.js +32 -0
- package/.output/server/node_modules/lodash/_createBaseFor.js +25 -0
- package/.output/server/node_modules/lodash/_createSet.js +19 -0
- package/.output/server/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- package/.output/server/node_modules/lodash/_defineProperty.js +11 -0
- package/.output/server/node_modules/lodash/_equalArrays.js +84 -0
- package/.output/server/node_modules/lodash/_equalByTag.js +112 -0
- package/.output/server/node_modules/lodash/_equalObjects.js +90 -0
- package/.output/server/node_modules/lodash/_escapeHtmlChar.js +21 -0
- package/.output/server/node_modules/lodash/_escapeStringChar.js +22 -0
- package/.output/server/node_modules/lodash/_freeGlobal.js +4 -0
- package/.output/server/node_modules/lodash/_getAllKeys.js +16 -0
- package/.output/server/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/.output/server/node_modules/lodash/_getMapData.js +18 -0
- package/.output/server/node_modules/lodash/_getMatchData.js +24 -0
- package/.output/server/node_modules/lodash/_getNative.js +17 -0
- package/.output/server/node_modules/lodash/_getPrototype.js +6 -0
- package/.output/server/node_modules/lodash/_getRawTag.js +46 -0
- package/.output/server/node_modules/lodash/_getSymbols.js +30 -0
- package/.output/server/node_modules/lodash/_getSymbolsIn.js +25 -0
- package/.output/server/node_modules/lodash/_getTag.js +58 -0
- package/.output/server/node_modules/lodash/_getValue.js +13 -0
- package/.output/server/node_modules/lodash/_hasPath.js +39 -0
- package/.output/server/node_modules/lodash/_hasUnicode.js +26 -0
- package/.output/server/node_modules/lodash/_hashClear.js +15 -0
- package/.output/server/node_modules/lodash/_hashDelete.js +17 -0
- package/.output/server/node_modules/lodash/_hashGet.js +30 -0
- package/.output/server/node_modules/lodash/_hashHas.js +23 -0
- package/.output/server/node_modules/lodash/_hashSet.js +23 -0
- package/.output/server/node_modules/lodash/_initCloneArray.js +26 -0
- package/.output/server/node_modules/lodash/_initCloneByTag.js +77 -0
- package/.output/server/node_modules/lodash/_initCloneObject.js +18 -0
- package/.output/server/node_modules/lodash/_isFlattenable.js +20 -0
- package/.output/server/node_modules/lodash/_isIndex.js +25 -0
- package/.output/server/node_modules/lodash/_isIterateeCall.js +30 -0
- package/.output/server/node_modules/lodash/_isKey.js +29 -0
- package/.output/server/node_modules/lodash/_isKeyable.js +15 -0
- package/.output/server/node_modules/lodash/_isMasked.js +20 -0
- package/.output/server/node_modules/lodash/_isPrototype.js +18 -0
- package/.output/server/node_modules/lodash/_isStrictComparable.js +15 -0
- package/.output/server/node_modules/lodash/_iteratorToArray.js +18 -0
- package/.output/server/node_modules/lodash/_listCacheClear.js +13 -0
- package/.output/server/node_modules/lodash/_listCacheDelete.js +35 -0
- package/.output/server/node_modules/lodash/_listCacheGet.js +19 -0
- package/.output/server/node_modules/lodash/_listCacheHas.js +16 -0
- package/.output/server/node_modules/lodash/_listCacheSet.js +26 -0
- package/.output/server/node_modules/lodash/_mapCacheClear.js +21 -0
- package/.output/server/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/.output/server/node_modules/lodash/_mapCacheGet.js +16 -0
- package/.output/server/node_modules/lodash/_mapCacheHas.js +16 -0
- package/.output/server/node_modules/lodash/_mapCacheSet.js +22 -0
- package/.output/server/node_modules/lodash/_mapToArray.js +18 -0
- package/.output/server/node_modules/lodash/_matchesStrictComparable.js +20 -0
- package/.output/server/node_modules/lodash/_memoizeCapped.js +26 -0
- package/.output/server/node_modules/lodash/_nativeCreate.js +6 -0
- package/.output/server/node_modules/lodash/_nativeKeys.js +6 -0
- package/.output/server/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/.output/server/node_modules/lodash/_nodeUtil.js +30 -0
- package/.output/server/node_modules/lodash/_objectToString.js +22 -0
- package/.output/server/node_modules/lodash/_overArg.js +15 -0
- package/.output/server/node_modules/lodash/_overRest.js +36 -0
- package/.output/server/node_modules/lodash/_reEscape.js +4 -0
- package/.output/server/node_modules/lodash/_reEvaluate.js +4 -0
- package/.output/server/node_modules/lodash/_reInterpolate.js +4 -0
- package/.output/server/node_modules/lodash/_root.js +9 -0
- package/.output/server/node_modules/lodash/_safeGet.js +21 -0
- package/.output/server/node_modules/lodash/_setCacheAdd.js +19 -0
- package/.output/server/node_modules/lodash/_setCacheHas.js +14 -0
- package/.output/server/node_modules/lodash/_setToArray.js +18 -0
- package/.output/server/node_modules/lodash/_setToString.js +14 -0
- package/.output/server/node_modules/lodash/_shortOut.js +37 -0
- package/.output/server/node_modules/lodash/_stackClear.js +15 -0
- package/.output/server/node_modules/lodash/_stackDelete.js +18 -0
- package/.output/server/node_modules/lodash/_stackGet.js +14 -0
- package/.output/server/node_modules/lodash/_stackHas.js +14 -0
- package/.output/server/node_modules/lodash/_stackSet.js +34 -0
- package/.output/server/node_modules/lodash/_strictIndexOf.js +23 -0
- package/.output/server/node_modules/lodash/_stringToArray.js +18 -0
- package/.output/server/node_modules/lodash/_stringToPath.js +27 -0
- package/.output/server/node_modules/lodash/_toKey.js +21 -0
- package/.output/server/node_modules/lodash/_toSource.js +26 -0
- package/.output/server/node_modules/lodash/_trimmedEndIndex.js +19 -0
- package/.output/server/node_modules/lodash/_unicodeToArray.js +40 -0
- package/.output/server/node_modules/lodash/assign.js +58 -0
- package/.output/server/node_modules/lodash/assignIn.js +40 -0
- package/.output/server/node_modules/lodash/assignInWith.js +38 -0
- package/.output/server/node_modules/lodash/attempt.js +35 -0
- package/.output/server/node_modules/lodash/chunk.js +50 -0
- package/.output/server/node_modules/lodash/clone.js +36 -0
- package/.output/server/node_modules/lodash/cloneDeep.js +29 -0
- package/.output/server/node_modules/lodash/compact.js +31 -0
- package/.output/server/node_modules/lodash/constant.js +26 -0
- package/.output/server/node_modules/lodash/defaults.js +64 -0
- package/.output/server/node_modules/lodash/defer.js +26 -0
- package/.output/server/node_modules/lodash/differenceWith.js +40 -0
- package/.output/server/node_modules/lodash/each.js +1 -0
- package/.output/server/node_modules/lodash/eq.js +37 -0
- package/.output/server/node_modules/lodash/escape.js +43 -0
- package/.output/server/node_modules/lodash/extend.js +1 -0
- package/.output/server/node_modules/lodash/filter.js +52 -0
- package/.output/server/node_modules/lodash/first.js +1 -0
- package/.output/server/node_modules/lodash/flatten.js +22 -0
- package/.output/server/node_modules/lodash/forEach.js +41 -0
- package/.output/server/node_modules/lodash/get.js +33 -0
- package/.output/server/node_modules/lodash/groupBy.js +41 -0
- package/.output/server/node_modules/lodash/has.js +35 -0
- package/.output/server/node_modules/lodash/hasIn.js +34 -0
- package/.output/server/node_modules/lodash/head.js +23 -0
- package/.output/server/node_modules/lodash/identity.js +21 -0
- package/.output/server/node_modules/lodash/includes.js +53 -0
- package/.output/server/node_modules/lodash/indexOf.js +42 -0
- package/.output/server/node_modules/lodash/isArguments.js +36 -0
- package/.output/server/node_modules/lodash/isArray.js +26 -0
- package/.output/server/node_modules/lodash/isArrayLike.js +33 -0
- package/.output/server/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/.output/server/node_modules/lodash/isBuffer.js +38 -0
- package/.output/server/node_modules/lodash/isEmpty.js +77 -0
- package/.output/server/node_modules/lodash/isError.js +36 -0
- package/.output/server/node_modules/lodash/isFunction.js +37 -0
- package/.output/server/node_modules/lodash/isLength.js +35 -0
- package/.output/server/node_modules/lodash/isMap.js +27 -0
- package/.output/server/node_modules/lodash/isNil.js +25 -0
- package/.output/server/node_modules/lodash/isObject.js +31 -0
- package/.output/server/node_modules/lodash/isObjectLike.js +29 -0
- package/.output/server/node_modules/lodash/isPlainObject.js +62 -0
- package/.output/server/node_modules/lodash/isSet.js +27 -0
- package/.output/server/node_modules/lodash/isString.js +30 -0
- package/.output/server/node_modules/lodash/isSymbol.js +29 -0
- package/.output/server/node_modules/lodash/isTypedArray.js +27 -0
- package/.output/server/node_modules/lodash/keys.js +37 -0
- package/.output/server/node_modules/lodash/keysIn.js +32 -0
- package/.output/server/node_modules/lodash/last.js +20 -0
- package/.output/server/node_modules/lodash/map.js +53 -0
- package/.output/server/node_modules/lodash/max.js +29 -0
- package/.output/server/node_modules/lodash/memoize.js +73 -0
- package/.output/server/node_modules/lodash/merge.js +39 -0
- package/.output/server/node_modules/lodash/negate.js +40 -0
- package/.output/server/node_modules/lodash/noop.js +17 -0
- package/.output/server/node_modules/lodash/omitBy.js +29 -0
- package/.output/server/node_modules/lodash/package.json +19 -0
- package/.output/server/node_modules/lodash/pickBy.js +37 -0
- package/.output/server/node_modules/lodash/property.js +32 -0
- package/.output/server/node_modules/lodash/reduce.js +51 -0
- package/.output/server/node_modules/lodash/reject.js +46 -0
- package/.output/server/node_modules/lodash/some.js +51 -0
- package/.output/server/node_modules/lodash/sortBy.js +48 -0
- package/.output/server/node_modules/lodash/stubArray.js +23 -0
- package/.output/server/node_modules/lodash/stubFalse.js +18 -0
- package/.output/server/node_modules/lodash/tail.js +22 -0
- package/.output/server/node_modules/lodash/template.js +272 -0
- package/.output/server/node_modules/lodash/templateSettings.js +67 -0
- package/.output/server/node_modules/lodash/toArray.js +58 -0
- package/.output/server/node_modules/lodash/toFinite.js +42 -0
- package/.output/server/node_modules/lodash/toInteger.js +36 -0
- package/.output/server/node_modules/lodash/toNumber.js +64 -0
- package/.output/server/node_modules/lodash/toPlainObject.js +32 -0
- package/.output/server/node_modules/lodash/toString.js +28 -0
- package/.output/server/node_modules/lodash/transform.js +65 -0
- package/.output/server/node_modules/lodash/uniq.js +25 -0
- package/.output/server/node_modules/lodash/uniqueId.js +28 -0
- package/.output/server/node_modules/lodash/values.js +34 -0
- package/.output/server/node_modules/papaparse/package.json +58 -0
- package/.output/server/node_modules/papaparse/papaparse.js +1945 -0
- package/.output/server/node_modules/pg/node_modules/pg-connection-string/index.js +112 -0
- package/.output/server/node_modules/pg/node_modules/pg-connection-string/package.json +40 -0
- package/.output/server/node_modules/safer-buffer/package.json +34 -0
- package/.output/server/node_modules/safer-buffer/safer.js +77 -0
- package/.output/server/node_modules/ssh2/lib/Channel.js +295 -0
- package/.output/server/node_modules/ssh2/lib/agent.js +1123 -0
- package/.output/server/node_modules/ssh2/lib/client.js +2176 -0
- package/.output/server/node_modules/ssh2/lib/http-agents.js +84 -0
- package/.output/server/node_modules/ssh2/lib/index.js +44 -0
- package/.output/server/node_modules/ssh2/lib/keygen.js +582 -0
- package/.output/server/node_modules/ssh2/lib/protocol/Protocol.js +2136 -0
- package/.output/server/node_modules/ssh2/lib/protocol/SFTP.js +4052 -0
- package/.output/server/node_modules/ssh2/lib/protocol/constants.js +356 -0
- package/.output/server/node_modules/ssh2/lib/protocol/crypto/poly1305.js +43 -0
- package/.output/server/node_modules/ssh2/lib/protocol/crypto.js +1602 -0
- package/.output/server/node_modules/ssh2/lib/protocol/handlers.js +16 -0
- package/.output/server/node_modules/ssh2/lib/protocol/handlers.misc.js +1285 -0
- package/.output/server/node_modules/ssh2/lib/protocol/kex.js +1908 -0
- package/.output/server/node_modules/ssh2/lib/protocol/keyParser.js +1484 -0
- package/.output/server/node_modules/ssh2/lib/protocol/node-fs-compat.js +115 -0
- package/.output/server/node_modules/ssh2/lib/protocol/utils.js +356 -0
- package/.output/server/node_modules/ssh2/lib/protocol/zlib.js +255 -0
- package/.output/server/node_modules/ssh2/lib/server.js +1380 -0
- package/.output/server/node_modules/ssh2/lib/utils.js +336 -0
- package/.output/server/node_modules/ssh2/package.json +49 -0
- package/.output/server/node_modules/ssh2/util/pagent.exe +0 -0
- package/.output/server/node_modules/tarn/dist/PendingOperation.js +48 -0
- package/.output/server/node_modules/tarn/dist/Pool.js +516 -0
- package/.output/server/node_modules/tarn/dist/PromiseInspection.js +21 -0
- package/.output/server/node_modules/tarn/dist/Resource.js +19 -0
- package/.output/server/node_modules/tarn/dist/TimeoutError.js +5 -0
- package/.output/server/node_modules/tarn/dist/tarn.js +10 -0
- package/.output/server/node_modules/tarn/dist/utils.js +60 -0
- package/.output/server/node_modules/tarn/package.json +66 -0
- package/.output/server/node_modules/tweetnacl/nacl-fast.js +2388 -0
- package/.output/server/node_modules/tweetnacl/package.json +58 -0
- package/.output/server/package.json +20 -35
- package/package.json +1 -1
- package/.output/public/_nuxt/AKIL8y6B.js +0 -1
- package/.output/public/_nuxt/B5vWsFeq.js +0 -160
- package/.output/public/_nuxt/B7OaQ1wH.js +0 -8
- package/.output/public/_nuxt/BG-9_o0s.js +0 -3
- package/.output/public/_nuxt/BHnp06h8.js +0 -1
- package/.output/public/_nuxt/BKxFOGv6.js +0 -1
- package/.output/public/_nuxt/BNIRlgC1.js +0 -1
- package/.output/public/_nuxt/BNdHe5KI.js +0 -1
- package/.output/public/_nuxt/BQANhp-y.js +0 -1
- package/.output/public/_nuxt/BUYy1lWT.js +0 -215
- package/.output/public/_nuxt/Ber6tLDb.js +0 -1
- package/.output/public/_nuxt/BgEovngA.js +0 -1
- package/.output/public/_nuxt/BhgYrVrc.js +0 -6
- package/.output/public/_nuxt/BmnOz39b.js +0 -2
- package/.output/public/_nuxt/BuKJVBv4.js +0 -1
- package/.output/public/_nuxt/BxMjn94S.js +0 -4
- package/.output/public/_nuxt/C1dxTB9p.js +0 -39
- package/.output/public/_nuxt/C4mc67xO.js +0 -31
- package/.output/public/_nuxt/CAOPafml.js +0 -1
- package/.output/public/_nuxt/CPxn9ATh.js +0 -1
- package/.output/public/_nuxt/CQ_P7x7z.js +0 -3
- package/.output/public/_nuxt/CS9PCQVw.js +0 -6
- package/.output/public/_nuxt/CdEjcJco.js +0 -1
- package/.output/public/_nuxt/CeQk_zaG.js +0 -3867
- package/.output/public/_nuxt/CijEBUIh.js +0 -9
- package/.output/public/_nuxt/Cn-07UHL.js +0 -1
- package/.output/public/_nuxt/D4_A4fm4.js +0 -1
- package/.output/public/_nuxt/DAs4584G.js +0 -72
- package/.output/public/_nuxt/DBO1CAN4.js +0 -1
- package/.output/public/_nuxt/DF7Phtj8.js +0 -39
- package/.output/public/_nuxt/DMMO4O3Y.js +0 -1
- package/.output/public/_nuxt/DP-hoxaC.js +0 -1
- package/.output/public/_nuxt/DREcM-oC.js +0 -20
- package/.output/public/_nuxt/DX-rdvVh.js +0 -28
- package/.output/public/_nuxt/DXei3mDv.js +0 -1
- package/.output/public/_nuxt/DZcRPyDc.js +0 -26
- package/.output/public/_nuxt/D_QjJZ_n.js +0 -1
- package/.output/public/_nuxt/Dj2IVxO7.js +0 -1
- package/.output/public/_nuxt/DmMeuvwr.js +0 -1
- package/.output/public/_nuxt/DqlhGxxN.js +0 -32
- package/.output/public/_nuxt/DynamicTable.DJeANwbG.css +0 -1
- package/.output/public/_nuxt/GmXmO94-.js +0 -1
- package/.output/public/_nuxt/HPyUOgdi.js +0 -1
- package/.output/public/_nuxt/MdxV8r4v.js +0 -1
- package/.output/public/_nuxt/Mp6jDt1I.js +0 -1
- package/.output/public/_nuxt/QuickQuery.h4epNPla.css +0 -1
- package/.output/public/_nuxt/WrapperErdDiagram.DeMTjOwN.css +0 -1
- package/.output/public/_nuxt/Zvfofmwe.js +0 -1
- package/.output/public/_nuxt/_fileId_.BHiWIaF7.css +0 -1
- package/.output/public/_nuxt/builds/meta/db42d692-1628-4dd8-9442-d7621bdd9ac6.json +0 -1
- package/.output/public/_nuxt/cQYBDqKG.js +0 -1
- package/.output/public/_nuxt/default.BfdyU-m9.css +0 -1
- package/.output/public/_nuxt/entry.0UG0MnUy.css +0 -1
- package/.output/public/_nuxt/fIC3FurW.js +0 -1
- package/.output/public/_nuxt/index.BHg08rtV.css +0 -1
- package/.output/public/_nuxt/n9bD6NrC.js +0 -2
- package/.output/public/_nuxt/ykQL1ia3.js +0 -271
- package/.output/public/_nuxt/zD3bTrJp.js +0 -1
- package/.output/server/chunks/routes/api/database-roles/adapters/postgres.adapter.mjs +0 -700
- package/.output/server/chunks/routes/api/database-roles/adapters/postgres.adapter.mjs.map +0 -1
- package/.output/server/chunks/routes/api/database-roles/adapters/types.mjs +0 -2
- package/.output/server/chunks/routes/api/database-roles/adapters/types.mjs.map +0 -1
- package/.output/server/chunks/routes/api/database-roles/index.mjs +0 -39
- package/.output/server/chunks/routes/api/database-roles/index.mjs.map +0 -1
- package/.output/server/chunks/routes/api/delete-function.mjs +0 -65
- package/.output/server/chunks/routes/api/delete-function.mjs.map +0 -1
- package/.output/server/chunks/routes/api/execute-bulk-delete.mjs +0 -100
- package/.output/server/chunks/routes/api/execute-bulk-delete.mjs.map +0 -1
- package/.output/server/chunks/routes/api/execute-bulk-update.mjs +0 -105
- package/.output/server/chunks/routes/api/execute-bulk-update.mjs.map +0 -1
- package/.output/server/chunks/routes/api/execute.mjs +0 -47
- package/.output/server/chunks/routes/api/execute.mjs.map +0 -1
- package/.output/server/chunks/routes/api/export-table-data.mjs +0 -229
- package/.output/server/chunks/routes/api/export-table-data.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-function-signature.mjs +0 -96
- package/.output/server/chunks/routes/api/get-function-signature.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-one-function.mjs +0 -34
- package/.output/server/chunks/routes/api/get-one-function.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-one-table.mjs +0 -180
- package/.output/server/chunks/routes/api/get-one-table.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-over-view-function.mjs +0 -41
- package/.output/server/chunks/routes/api/get-over-view-function.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-over-view-tables.mjs +0 -53
- package/.output/server/chunks/routes/api/get-over-view-tables.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-over-view-views.mjs +0 -44
- package/.output/server/chunks/routes/api/get-over-view-views.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-reverse-table-schemas.mjs +0 -123
- package/.output/server/chunks/routes/api/get-reverse-table-schemas.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-schema-meta-data.mjs +0 -220
- package/.output/server/chunks/routes/api/get-schema-meta-data.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-table-ddl.mjs +0 -185
- package/.output/server/chunks/routes/api/get-table-ddl.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-table-size.mjs +0 -49
- package/.output/server/chunks/routes/api/get-table-size.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-table-structure.mjs +0 -111
- package/.output/server/chunks/routes/api/get-table-structure.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-tables.mjs +0 -287
- package/.output/server/chunks/routes/api/get-tables.mjs.map +0 -1
- package/.output/server/chunks/routes/api/get-view-definition.mjs +0 -57
- package/.output/server/chunks/routes/api/get-view-definition.mjs.map +0 -1
- package/.output/server/chunks/routes/api/getMetricMonitor.mjs +0 -46
- package/.output/server/chunks/routes/api/getMetricMonitor.mjs.map +0 -1
- package/.output/server/chunks/routes/api/raw-execute.mjs +0 -47
- package/.output/server/chunks/routes/api/raw-execute.mjs.map +0 -1
- package/.output/server/chunks/routes/api/rename-function.mjs +0 -77
- package/.output/server/chunks/routes/api/rename-function.mjs.map +0 -1
- package/.output/server/chunks/routes/api/update-function.mjs +0 -65
- package/.output/server/chunks/routes/api/update-function.mjs.map +0 -1
- package/.output/server/node_modules/@ioredis/commands/built/commands.json +0 -2447
- package/.output/server/node_modules/@ioredis/commands/built/index.js +0 -208
- package/.output/server/node_modules/@ioredis/commands/package.json +0 -52
- package/.output/server/node_modules/@sqltools/formatter/lib/core/Formatter.js +0 -234
- package/.output/server/node_modules/@sqltools/formatter/lib/core/Indentation.js +0 -42
- package/.output/server/node_modules/@sqltools/formatter/lib/core/InlineBlock.js +0 -60
- package/.output/server/node_modules/@sqltools/formatter/lib/core/Params.js +0 -21
- package/.output/server/node_modules/@sqltools/formatter/lib/core/Tokenizer.js +0 -272
- package/.output/server/node_modules/@sqltools/formatter/lib/core/escapeRegExp.js +0 -10
- package/.output/server/node_modules/@sqltools/formatter/lib/core/last.js +0 -7
- package/.output/server/node_modules/@sqltools/formatter/lib/core/types.js +0 -22
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/Db2Formatter.js +0 -585
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/N1qlFormatter.js +0 -257
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/PlSqlFormatter.js +0 -459
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/StandardSqlFormatter.js +0 -369
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/utils/abstract.js +0 -23
- package/.output/server/node_modules/@sqltools/formatter/lib/sqlFormatter.js +0 -34
- package/.output/server/node_modules/@sqltools/formatter/package.json +0 -59
- package/.output/server/node_modules/ansis/index.js +0 -1
- package/.output/server/node_modules/ansis/package.json +0 -28
- package/.output/server/node_modules/app-root-path/index.js +0 -4
- package/.output/server/node_modules/app-root-path/lib/app-root-path.js +0 -30
- package/.output/server/node_modules/app-root-path/lib/resolve.js +0 -128
- package/.output/server/node_modules/app-root-path/package.json +0 -66
- package/.output/server/node_modules/balanced-match/index.js +0 -62
- package/.output/server/node_modules/balanced-match/package.json +0 -48
- package/.output/server/node_modules/brace-expansion/index.js +0 -203
- package/.output/server/node_modules/brace-expansion/package.json +0 -46
- package/.output/server/node_modules/cluster-key-slot/lib/index.js +0 -166
- package/.output/server/node_modules/cluster-key-slot/package.json +0 -56
- package/.output/server/node_modules/dedent/dist/dedent.js +0 -73
- package/.output/server/node_modules/dedent/package.json +0 -119
- package/.output/server/node_modules/denque/index.js +0 -481
- package/.output/server/node_modules/denque/package.json +0 -58
- package/.output/server/node_modules/dotenv/lib/main.js +0 -361
- package/.output/server/node_modules/dotenv/package.json +0 -61
- package/.output/server/node_modules/glob/dist/commonjs/glob.js +0 -247
- package/.output/server/node_modules/glob/dist/commonjs/has-magic.js +0 -27
- package/.output/server/node_modules/glob/dist/commonjs/ignore.js +0 -119
- package/.output/server/node_modules/glob/dist/commonjs/index.js +0 -68
- package/.output/server/node_modules/glob/dist/commonjs/package.json +0 -3
- package/.output/server/node_modules/glob/dist/commonjs/pattern.js +0 -219
- package/.output/server/node_modules/glob/dist/commonjs/processor.js +0 -301
- package/.output/server/node_modules/glob/dist/commonjs/walker.js +0 -387
- package/.output/server/node_modules/glob/package.json +0 -99
- package/.output/server/node_modules/inherits/inherits.js +0 -9
- package/.output/server/node_modules/inherits/inherits_browser.js +0 -27
- package/.output/server/node_modules/inherits/package.json +0 -29
- package/.output/server/node_modules/ioredis/built/Command.js +0 -349
- package/.output/server/node_modules/ioredis/built/DataHandler.js +0 -220
- package/.output/server/node_modules/ioredis/built/Pipeline.js +0 -334
- package/.output/server/node_modules/ioredis/built/Redis.js +0 -697
- package/.output/server/node_modules/ioredis/built/ScanStream.js +0 -51
- package/.output/server/node_modules/ioredis/built/Script.js +0 -62
- package/.output/server/node_modules/ioredis/built/SubscriptionSet.js +0 -41
- package/.output/server/node_modules/ioredis/built/autoPipelining.js +0 -159
- package/.output/server/node_modules/ioredis/built/cluster/ClusterOptions.js +0 -22
- package/.output/server/node_modules/ioredis/built/cluster/ClusterSubscriber.js +0 -202
- package/.output/server/node_modules/ioredis/built/cluster/ClusterSubscriberGroup.js +0 -224
- package/.output/server/node_modules/ioredis/built/cluster/ConnectionPool.js +0 -154
- package/.output/server/node_modules/ioredis/built/cluster/DelayQueue.js +0 -53
- package/.output/server/node_modules/ioredis/built/cluster/index.js +0 -862
- package/.output/server/node_modules/ioredis/built/cluster/util.js +0 -100
- package/.output/server/node_modules/ioredis/built/connectors/AbstractConnector.js +0 -26
- package/.output/server/node_modules/ioredis/built/connectors/SentinelConnector/FailoverDetector.js +0 -45
- package/.output/server/node_modules/ioredis/built/connectors/SentinelConnector/SentinelIterator.js +0 -37
- package/.output/server/node_modules/ioredis/built/connectors/SentinelConnector/index.js +0 -305
- package/.output/server/node_modules/ioredis/built/connectors/StandaloneConnector.js +0 -69
- package/.output/server/node_modules/ioredis/built/connectors/index.js +0 -7
- package/.output/server/node_modules/ioredis/built/constants/TLSProfiles.js +0 -149
- package/.output/server/node_modules/ioredis/built/errors/ClusterAllFailedError.js +0 -15
- package/.output/server/node_modules/ioredis/built/errors/MaxRetriesPerRequestError.js +0 -14
- package/.output/server/node_modules/ioredis/built/errors/index.js +0 -5
- package/.output/server/node_modules/ioredis/built/index.js +0 -62
- package/.output/server/node_modules/ioredis/built/redis/RedisOptions.js +0 -55
- package/.output/server/node_modules/ioredis/built/redis/event_handler.js +0 -292
- package/.output/server/node_modules/ioredis/built/transaction.js +0 -93
- package/.output/server/node_modules/ioredis/built/utils/Commander.js +0 -117
- package/.output/server/node_modules/ioredis/built/utils/applyMixin.js +0 -8
- package/.output/server/node_modules/ioredis/built/utils/debug.js +0 -95
- package/.output/server/node_modules/ioredis/built/utils/index.js +0 -297
- package/.output/server/node_modules/ioredis/built/utils/lodash.js +0 -9
- package/.output/server/node_modules/ioredis/package.json +0 -100
- package/.output/server/node_modules/lodash.defaults/index.js +0 -668
- package/.output/server/node_modules/lodash.defaults/package.json +0 -19
- package/.output/server/node_modules/lodash.isarguments/index.js +0 -229
- package/.output/server/node_modules/lodash.isarguments/package.json +0 -19
- package/.output/server/node_modules/lru-cache/dist/commonjs/index.js +0 -1546
- package/.output/server/node_modules/lru-cache/dist/commonjs/package.json +0 -3
- package/.output/server/node_modules/lru-cache/package.json +0 -116
- package/.output/server/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
- package/.output/server/node_modules/minimatch/dist/commonjs/ast.js +0 -592
- package/.output/server/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -152
- package/.output/server/node_modules/minimatch/dist/commonjs/escape.js +0 -22
- package/.output/server/node_modules/minimatch/dist/commonjs/index.js +0 -1017
- package/.output/server/node_modules/minimatch/dist/commonjs/package.json +0 -3
- package/.output/server/node_modules/minimatch/dist/commonjs/unescape.js +0 -24
- package/.output/server/node_modules/minimatch/package.json +0 -82
- package/.output/server/node_modules/minipass/dist/commonjs/index.js +0 -1028
- package/.output/server/node_modules/minipass/dist/commonjs/package.json +0 -3
- package/.output/server/node_modules/minipass/package.json +0 -82
- package/.output/server/node_modules/path-scurry/dist/commonjs/index.js +0 -2014
- package/.output/server/node_modules/path-scurry/dist/commonjs/package.json +0 -3
- package/.output/server/node_modules/path-scurry/package.json +0 -89
- package/.output/server/node_modules/redis-errors/index.js +0 -7
- package/.output/server/node_modules/redis-errors/lib/modern.js +0 -59
- package/.output/server/node_modules/redis-errors/lib/old.js +0 -119
- package/.output/server/node_modules/redis-errors/package.json +0 -41
- package/.output/server/node_modules/redis-parser/index.js +0 -3
- package/.output/server/node_modules/redis-parser/lib/parser.js +0 -552
- package/.output/server/node_modules/redis-parser/package.json +0 -53
- package/.output/server/node_modules/reflect-metadata/Reflect.js +0 -1415
- package/.output/server/node_modules/reflect-metadata/package.json +0 -68
- package/.output/server/node_modules/safe-buffer/index.js +0 -65
- package/.output/server/node_modules/safe-buffer/package.json +0 -51
- package/.output/server/node_modules/sha.js/hash.js +0 -81
- package/.output/server/node_modules/sha.js/index.js +0 -15
- package/.output/server/node_modules/sha.js/package.json +0 -30
- package/.output/server/node_modules/sha.js/sha.js +0 -94
- package/.output/server/node_modules/sha.js/sha1.js +0 -99
- package/.output/server/node_modules/sha.js/sha224.js +0 -53
- package/.output/server/node_modules/sha.js/sha256.js +0 -135
- package/.output/server/node_modules/sha.js/sha384.js +0 -57
- package/.output/server/node_modules/sha.js/sha512.js +0 -260
- package/.output/server/node_modules/sql-highlight/lib/escapeHtml.js +0 -59
- package/.output/server/node_modules/sql-highlight/lib/index.js +0 -85
- package/.output/server/node_modules/sql-highlight/lib/keywords.js +0 -145
- package/.output/server/node_modules/sql-highlight/package.json +0 -49
- package/.output/server/node_modules/standard-as-callback/built/index.js +0 -41
- package/.output/server/node_modules/standard-as-callback/built/utils.js +0 -23
- package/.output/server/node_modules/standard-as-callback/package.json +0 -40
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/node_modules/typeorm/cache/DbQueryResultCache.js +0 -264
- package/.output/server/node_modules/typeorm/cache/QueryResultCacheFactory.js +0 -42
- package/.output/server/node_modules/typeorm/cache/RedisQueryResultCache.js +0 -197
- package/.output/server/node_modules/typeorm/common/DeepPartial.js +0 -4
- package/.output/server/node_modules/typeorm/common/EntityTarget.js +0 -4
- package/.output/server/node_modules/typeorm/common/MixedList.js +0 -4
- package/.output/server/node_modules/typeorm/common/ObjectLiteral.js +0 -4
- package/.output/server/node_modules/typeorm/common/ObjectType.js +0 -4
- package/.output/server/node_modules/typeorm/common/RelationType.js +0 -4
- package/.output/server/node_modules/typeorm/connection/Connection.js +0 -16
- package/.output/server/node_modules/typeorm/connection/ConnectionManager.js +0 -66
- package/.output/server/node_modules/typeorm/connection/ConnectionMetadataBuilder.js +0 -74
- package/.output/server/node_modules/typeorm/connection/ConnectionOptionsReader.js +0 -198
- package/.output/server/node_modules/typeorm/connection/options-reader/ConnectionOptionsEnvReader.js +0 -111
- package/.output/server/node_modules/typeorm/container.js +0 -60
- package/.output/server/node_modules/typeorm/data-source/DataSource.js +0 -517
- package/.output/server/node_modules/typeorm/decorator/Check.js +0 -27
- package/.output/server/node_modules/typeorm/decorator/EntityRepository.js +0 -21
- package/.output/server/node_modules/typeorm/decorator/Exclusion.js +0 -27
- package/.output/server/node_modules/typeorm/decorator/ForeignKey.js +0 -44
- package/.output/server/node_modules/typeorm/decorator/Generated.js +0 -24
- package/.output/server/node_modules/typeorm/decorator/Index.js +0 -56
- package/.output/server/node_modules/typeorm/decorator/Unique.js +0 -50
- package/.output/server/node_modules/typeorm/decorator/columns/Column.js +0 -78
- package/.output/server/node_modules/typeorm/decorator/columns/CreateDateColumn.js +0 -21
- package/.output/server/node_modules/typeorm/decorator/columns/DeleteDateColumn.js +0 -20
- package/.output/server/node_modules/typeorm/decorator/columns/ObjectIdColumn.js +0 -27
- package/.output/server/node_modules/typeorm/decorator/columns/PrimaryColumn.js +0 -63
- package/.output/server/node_modules/typeorm/decorator/columns/PrimaryGeneratedColumn.js +0 -59
- package/.output/server/node_modules/typeorm/decorator/columns/UpdateDateColumn.js +0 -20
- package/.output/server/node_modules/typeorm/decorator/columns/VersionColumn.js +0 -21
- package/.output/server/node_modules/typeorm/decorator/columns/ViewColumn.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/columns/VirtualColumn.js +0 -49
- package/.output/server/node_modules/typeorm/decorator/entity/ChildEntity.js +0 -25
- package/.output/server/node_modules/typeorm/decorator/entity/Entity.js +0 -31
- package/.output/server/node_modules/typeorm/decorator/entity/TableInheritance.js +0 -22
- package/.output/server/node_modules/typeorm/decorator/entity-view/ViewEntity.js +0 -32
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterInsert.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterLoad.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterRecover.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterRemove.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterSoftRemove.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterUpdate.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeInsert.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeRecover.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeRemove.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeSoftRemove.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeUpdate.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/listeners/EventSubscriber.js +0 -17
- package/.output/server/node_modules/typeorm/decorator/options/ColumnOptions.js +0 -4
- package/.output/server/node_modules/typeorm/decorator/options/EntityOptions.js +0 -4
- package/.output/server/node_modules/typeorm/decorator/options/IndexOptions.js +0 -4
- package/.output/server/node_modules/typeorm/decorator/options/JoinColumnOptions.js +0 -4
- package/.output/server/node_modules/typeorm/decorator/options/JoinTableOptions.js +0 -4
- package/.output/server/node_modules/typeorm/decorator/options/RelationOptions.js +0 -4
- package/.output/server/node_modules/typeorm/decorator/options/ValueTransformer.js +0 -4
- package/.output/server/node_modules/typeorm/decorator/relations/JoinColumn.js +0 -27
- package/.output/server/node_modules/typeorm/decorator/relations/JoinTable.js +0 -34
- package/.output/server/node_modules/typeorm/decorator/relations/ManyToMany.js +0 -46
- package/.output/server/node_modules/typeorm/decorator/relations/ManyToOne.js +0 -46
- package/.output/server/node_modules/typeorm/decorator/relations/OneToMany.js +0 -37
- package/.output/server/node_modules/typeorm/decorator/relations/OneToOne.js +0 -45
- package/.output/server/node_modules/typeorm/decorator/relations/RelationCount.js +0 -23
- package/.output/server/node_modules/typeorm/decorator/relations/RelationId.js +0 -22
- package/.output/server/node_modules/typeorm/decorator/tree/Tree.js +0 -21
- package/.output/server/node_modules/typeorm/decorator/tree/TreeChildren.js +0 -34
- package/.output/server/node_modules/typeorm/decorator/tree/TreeLevelColumn.js +0 -19
- package/.output/server/node_modules/typeorm/decorator/tree/TreeParent.js +0 -33
- package/.output/server/node_modules/typeorm/driver/DriverFactory.js +0 -98
- package/.output/server/node_modules/typeorm/driver/DriverUtils.js +0 -228
- package/.output/server/node_modules/typeorm/driver/Query.js +0 -16
- package/.output/server/node_modules/typeorm/driver/SqlInMemory.js +0 -15
- package/.output/server/node_modules/typeorm/driver/aurora-mysql/AuroraMysqlDriver.js +0 -847
- package/.output/server/node_modules/typeorm/driver/aurora-mysql/AuroraMysqlQueryRunner.js +0 -1709
- package/.output/server/node_modules/typeorm/driver/aurora-postgres/AuroraPostgresDriver.js +0 -103
- package/.output/server/node_modules/typeorm/driver/aurora-postgres/AuroraPostgresQueryRunner.js +0 -146
- package/.output/server/node_modules/typeorm/driver/better-sqlite3/BetterSqlite3Driver.js +0 -153
- package/.output/server/node_modules/typeorm/driver/better-sqlite3/BetterSqlite3QueryRunner.js +0 -126
- package/.output/server/node_modules/typeorm/driver/capacitor/CapacitorDriver.js +0 -78
- package/.output/server/node_modules/typeorm/driver/capacitor/CapacitorQueryRunner.js +0 -98
- package/.output/server/node_modules/typeorm/driver/cockroachdb/CockroachDriver.js +0 -885
- package/.output/server/node_modules/typeorm/driver/cockroachdb/CockroachQueryRunner.js +0 -2453
- package/.output/server/node_modules/typeorm/driver/cordova/CordovaDriver.js +0 -76
- package/.output/server/node_modules/typeorm/driver/cordova/CordovaQueryRunner.js +0 -170
- package/.output/server/node_modules/typeorm/driver/expo/ExpoDriver.js +0 -29
- package/.output/server/node_modules/typeorm/driver/expo/ExpoDriverFactory.js +0 -22
- package/.output/server/node_modules/typeorm/driver/expo/ExpoQueryRunner.js +0 -65
- package/.output/server/node_modules/typeorm/driver/expo/legacy/ExpoLegacyDriver.js +0 -75
- package/.output/server/node_modules/typeorm/driver/expo/legacy/ExpoLegacyQueryRunner.js +0 -169
- package/.output/server/node_modules/typeorm/driver/mongodb/MongoDriver.js +0 -404
- package/.output/server/node_modules/typeorm/driver/mongodb/MongoQueryRunner.js +0 -701
- package/.output/server/node_modules/typeorm/driver/mongodb/bson.typings.js +0 -5
- package/.output/server/node_modules/typeorm/driver/mongodb/typings.js +0 -23
- package/.output/server/node_modules/typeorm/driver/mysql/MysqlDriver.js +0 -1105
- package/.output/server/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js +0 -2139
- package/.output/server/node_modules/typeorm/driver/nativescript/NativescriptDriver.js +0 -94
- package/.output/server/node_modules/typeorm/driver/nativescript/NativescriptQueryRunner.js +0 -92
- package/.output/server/node_modules/typeorm/driver/oracle/OracleDriver.js +0 -869
- package/.output/server/node_modules/typeorm/driver/oracle/OracleQueryRunner.js +0 -1884
- package/.output/server/node_modules/typeorm/driver/postgres/PostgresDriver.js +0 -1259
- package/.output/server/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js +0 -2729
- package/.output/server/node_modules/typeorm/driver/react-native/ReactNativeDriver.js +0 -728
- package/.output/server/node_modules/typeorm/driver/react-native/ReactNativeQueryRunner.js +0 -107
- package/.output/server/node_modules/typeorm/driver/sap/SapDriver.js +0 -681
- package/.output/server/node_modules/typeorm/driver/sap/SapQueryRunner.js +0 -2054
- package/.output/server/node_modules/typeorm/driver/spanner/SpannerDriver.js +0 -613
- package/.output/server/node_modules/typeorm/driver/spanner/SpannerQueryRunner.js +0 -1464
- package/.output/server/node_modules/typeorm/driver/sqlite/SqliteDriver.js +0 -174
- package/.output/server/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js +0 -124
- package/.output/server/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.js +0 -695
- package/.output/server/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.js +0 -1511
- package/.output/server/node_modules/typeorm/driver/sqljs/SqljsDriver.js +0 -250
- package/.output/server/node_modules/typeorm/driver/sqljs/SqljsQueryRunner.js +0 -123
- package/.output/server/node_modules/typeorm/driver/sqlserver/MssqlParameter.js +0 -23
- package/.output/server/node_modules/typeorm/driver/sqlserver/SqlServerDriver.js +0 -922
- package/.output/server/node_modules/typeorm/driver/sqlserver/SqlServerQueryRunner.js +0 -2484
- package/.output/server/node_modules/typeorm/driver/types/DatabaseType.js +0 -4
- package/.output/server/node_modules/typeorm/driver/types/GeoJsonTypes.js +0 -4
- package/.output/server/node_modules/typeorm/driver/types/MetadataTableType.js +0 -11
- package/.output/server/node_modules/typeorm/driver/types/ReplicationMode.js +0 -4
- package/.output/server/node_modules/typeorm/entity-manager/EntityManager.js +0 -853
- package/.output/server/node_modules/typeorm/entity-manager/EntityManagerFactory.js +0 -24
- package/.output/server/node_modules/typeorm/entity-manager/MongoEntityManager.js +0 -668
- package/.output/server/node_modules/typeorm/entity-manager/SqljsEntityManager.js +0 -44
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchema.js +0 -15
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.js +0 -8
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchemaEmbeddedError.js +0 -18
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchemaOptions.js +0 -11
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchemaTransformer.js +0 -333
- package/.output/server/node_modules/typeorm/error/AlreadyHasActiveConnectionError.js +0 -16
- package/.output/server/node_modules/typeorm/error/CannotAttachTreeChildrenEntityError.js +0 -16
- package/.output/server/node_modules/typeorm/error/CannotConnectAlreadyConnectedError.js +0 -15
- package/.output/server/node_modules/typeorm/error/CannotCreateEntityIdMapError.js +0 -21
- package/.output/server/node_modules/typeorm/error/CannotDetermineEntityError.js +0 -16
- package/.output/server/node_modules/typeorm/error/CannotExecuteNotConnectedError.js +0 -15
- package/.output/server/node_modules/typeorm/error/CannotGetEntityManagerNotConnectedError.js +0 -15
- package/.output/server/node_modules/typeorm/error/CannotReflectMethodParameterTypeError.js +0 -18
- package/.output/server/node_modules/typeorm/error/CircularRelationsError.js +0 -16
- package/.output/server/node_modules/typeorm/error/ColumnTypeUndefinedError.js +0 -19
- package/.output/server/node_modules/typeorm/error/ConnectionIsNotSetError.js +0 -15
- package/.output/server/node_modules/typeorm/error/ConnectionNotFoundError.js +0 -15
- package/.output/server/node_modules/typeorm/error/CustomRepositoryCannotInheritRepositoryError.js +0 -18
- package/.output/server/node_modules/typeorm/error/CustomRepositoryDoesNotHaveEntityError.js +0 -18
- package/.output/server/node_modules/typeorm/error/CustomRepositoryNotFoundError.js +0 -18
- package/.output/server/node_modules/typeorm/error/DataTypeNotSupportedError.js +0 -14
- package/.output/server/node_modules/typeorm/error/DriverOptionNotSetError.js +0 -16
- package/.output/server/node_modules/typeorm/error/DriverPackageNotInstalledError.js +0 -16
- package/.output/server/node_modules/typeorm/error/EntityMetadataNotFoundError.js +0 -29
- package/.output/server/node_modules/typeorm/error/EntityNotFoundError.js +0 -42
- package/.output/server/node_modules/typeorm/error/EntityPropertyNotFoundError.js +0 -17
- package/.output/server/node_modules/typeorm/error/FindRelationsNotFoundError.js +0 -23
- package/.output/server/node_modules/typeorm/error/ForbiddenTransactionModeOverrideError.js +0 -16
- package/.output/server/node_modules/typeorm/error/InitializedRelationError.js +0 -20
- package/.output/server/node_modules/typeorm/error/InsertValuesMissingError.js +0 -16
- package/.output/server/node_modules/typeorm/error/LimitOnUpdateNotSupportedError.js +0 -15
- package/.output/server/node_modules/typeorm/error/LockNotSupportedOnGivenDriverError.js +0 -15
- package/.output/server/node_modules/typeorm/error/MetadataAlreadyExistsError.js +0 -18
- package/.output/server/node_modules/typeorm/error/MetadataWithSuchNameAlreadyExistsError.js +0 -16
- package/.output/server/node_modules/typeorm/error/MissingDeleteDateColumnError.js +0 -12
- package/.output/server/node_modules/typeorm/error/MissingDriverError.js +0 -16
- package/.output/server/node_modules/typeorm/error/MissingJoinColumnError.js +0 -23
- package/.output/server/node_modules/typeorm/error/MissingJoinTableError.js +0 -23
- package/.output/server/node_modules/typeorm/error/MissingPrimaryColumnError.js +0 -13
- package/.output/server/node_modules/typeorm/error/MustBeEntityError.js +0 -15
- package/.output/server/node_modules/typeorm/error/NestedSetMultipleRootError.js +0 -12
- package/.output/server/node_modules/typeorm/error/NoConnectionForRepositoryError.js +0 -16
- package/.output/server/node_modules/typeorm/error/NoConnectionOptionError.js +0 -16
- package/.output/server/node_modules/typeorm/error/NoNeedToReleaseEntityManagerError.js +0 -17
- package/.output/server/node_modules/typeorm/error/NoVersionOrUpdateDateColumnError.js +0 -15
- package/.output/server/node_modules/typeorm/error/OffsetWithoutLimitNotSupportedError.js +0 -17
- package/.output/server/node_modules/typeorm/error/OptimisticLockCanNotBeUsedError.js +0 -15
- package/.output/server/node_modules/typeorm/error/OptimisticLockVersionMismatchError.js +0 -15
- package/.output/server/node_modules/typeorm/error/PersistedEntityNotFoundError.js +0 -15
- package/.output/server/node_modules/typeorm/error/PessimisticLockTransactionRequiredError.js +0 -15
- package/.output/server/node_modules/typeorm/error/PrimaryColumnCannotBeNullableError.js +0 -13
- package/.output/server/node_modules/typeorm/error/QueryFailedError.js +0 -30
- package/.output/server/node_modules/typeorm/error/QueryRunnerAlreadyReleasedError.js +0 -12
- package/.output/server/node_modules/typeorm/error/QueryRunnerProviderAlreadyReleasedError.js +0 -16
- package/.output/server/node_modules/typeorm/error/RepositoryNotTreeError.js +0 -32
- package/.output/server/node_modules/typeorm/error/ReturningStatementNotSupportedError.js +0 -16
- package/.output/server/node_modules/typeorm/error/SubjectRemovedAndUpdatedError.js +0 -16
- package/.output/server/node_modules/typeorm/error/SubjectWithoutIdentifierError.js +0 -17
- package/.output/server/node_modules/typeorm/error/TransactionAlreadyStartedError.js +0 -15
- package/.output/server/node_modules/typeorm/error/TransactionNotStartedError.js +0 -15
- package/.output/server/node_modules/typeorm/error/TreeRepositoryNotSupportedError.js +0 -12
- package/.output/server/node_modules/typeorm/error/TypeORMError.js +0 -23
- package/.output/server/node_modules/typeorm/error/UpdateValuesMissingError.js +0 -12
- package/.output/server/node_modules/typeorm/error/UsingJoinColumnIsNotAllowedError.js +0 -13
- package/.output/server/node_modules/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.js +0 -14
- package/.output/server/node_modules/typeorm/error/UsingJoinTableIsNotAllowedError.js +0 -14
- package/.output/server/node_modules/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.js +0 -14
- package/.output/server/node_modules/typeorm/error/index.js +0 -66
- package/.output/server/node_modules/typeorm/find-options/EqualOperator.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/FindManyOptions.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/FindOneOptions.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/FindOperator.js +0 -96
- package/.output/server/node_modules/typeorm/find-options/FindOperatorType.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/FindOptionsOrder.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/FindOptionsRelations.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/FindOptionsSelect.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/FindOptionsUtils.js +0 -350
- package/.output/server/node_modules/typeorm/find-options/FindOptionsWhere.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/FindTreeOptions.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/JoinOptions.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/OrderByCondition.js +0 -4
- package/.output/server/node_modules/typeorm/find-options/operator/And.js +0 -9
- package/.output/server/node_modules/typeorm/find-options/operator/Any.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/ArrayContainedBy.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/ArrayContains.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/ArrayOverlap.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/Between.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/Equal.js +0 -17
- package/.output/server/node_modules/typeorm/find-options/operator/ILike.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/In.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/IsNull.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/JsonContains.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/LessThan.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/LessThanOrEqual.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/Like.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/MoreThan.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/MoreThanOrEqual.js +0 -13
- package/.output/server/node_modules/typeorm/find-options/operator/Not.js +0 -14
- package/.output/server/node_modules/typeorm/find-options/operator/Or.js +0 -9
- package/.output/server/node_modules/typeorm/find-options/operator/Raw.js +0 -12
- package/.output/server/node_modules/typeorm/globals.js +0 -182
- package/.output/server/node_modules/typeorm/index.js +0 -196
- package/.output/server/node_modules/typeorm/index.mjs +0 -422
- package/.output/server/node_modules/typeorm/logger/AbstractLogger.js +0 -238
- package/.output/server/node_modules/typeorm/logger/AdvancedConsoleLogger.js +0 -56
- package/.output/server/node_modules/typeorm/logger/DebugLogger.js +0 -78
- package/.output/server/node_modules/typeorm/logger/FileLogger.js +0 -88
- package/.output/server/node_modules/typeorm/logger/FormattedConsoleLogger.js +0 -59
- package/.output/server/node_modules/typeorm/logger/Logger.js +0 -4
- package/.output/server/node_modules/typeorm/logger/LoggerFactory.js +0 -39
- package/.output/server/node_modules/typeorm/logger/LoggerOptions.js +0 -4
- package/.output/server/node_modules/typeorm/logger/SimpleConsoleLogger.js +0 -57
- package/.output/server/node_modules/typeorm/metadata/CheckMetadata.js +0 -35
- package/.output/server/node_modules/typeorm/metadata/ColumnMetadata.js +0 -618
- package/.output/server/node_modules/typeorm/metadata/EmbeddedMetadata.js +0 -224
- package/.output/server/node_modules/typeorm/metadata/EntityListenerMetadata.js +0 -77
- package/.output/server/node_modules/typeorm/metadata/EntityMetadata.js +0 -692
- package/.output/server/node_modules/typeorm/metadata/ExclusionMetadata.js +0 -35
- package/.output/server/node_modules/typeorm/metadata/ForeignKeyMetadata.js +0 -57
- package/.output/server/node_modules/typeorm/metadata/IndexMetadata.js +0 -144
- package/.output/server/node_modules/typeorm/metadata/RelationCountMetadata.js +0 -39
- package/.output/server/node_modules/typeorm/metadata/RelationIdMetadata.js +0 -62
- package/.output/server/node_modules/typeorm/metadata/RelationMetadata.js +0 -440
- package/.output/server/node_modules/typeorm/metadata/UniqueMetadata.js +0 -101
- package/.output/server/node_modules/typeorm/metadata/types/EventListenerTypes.js +0 -22
- package/.output/server/node_modules/typeorm/metadata-args/MetadataArgsStorage.js +0 -236
- package/.output/server/node_modules/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.js +0 -145
- package/.output/server/node_modules/typeorm/metadata-builder/EntityMetadataBuilder.js +0 -838
- package/.output/server/node_modules/typeorm/metadata-builder/EntityMetadataValidator.js +0 -258
- package/.output/server/node_modules/typeorm/metadata-builder/JunctionEntityMetadataBuilder.js +0 -287
- package/.output/server/node_modules/typeorm/metadata-builder/MetadataUtils.js +0 -44
- package/.output/server/node_modules/typeorm/metadata-builder/RelationJoinColumnBuilder.js +0 -185
- package/.output/server/node_modules/typeorm/migration/Migration.js +0 -21
- package/.output/server/node_modules/typeorm/migration/MigrationExecutor.js +0 -534
- package/.output/server/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.js +0 -145
- package/.output/server/node_modules/typeorm/naming-strategy/LegacyOracleNamingStrategy.js +0 -50
- package/.output/server/node_modules/typeorm/package.json +0 -268
- package/.output/server/node_modules/typeorm/persistence/EntityPersistExecutor.js +0 -170
- package/.output/server/node_modules/typeorm/persistence/Subject.js +0 -239
- package/.output/server/node_modules/typeorm/persistence/SubjectChangedColumnsComputer.js +0 -216
- package/.output/server/node_modules/typeorm/persistence/SubjectDatabaseEntityLoader.js +0 -135
- package/.output/server/node_modules/typeorm/persistence/SubjectExecutor.js +0 -760
- package/.output/server/node_modules/typeorm/persistence/SubjectTopologicalSorter.js +0 -174
- package/.output/server/node_modules/typeorm/persistence/subject-builder/CascadesSubjectBuilder.js +0 -107
- package/.output/server/node_modules/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.js +0 -218
- package/.output/server/node_modules/typeorm/persistence/subject-builder/OneToManySubjectBuilder.js +0 -181
- package/.output/server/node_modules/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.js +0 -155
- package/.output/server/node_modules/typeorm/persistence/tree/ClosureSubjectExecutor.js +0 -241
- package/.output/server/node_modules/typeorm/persistence/tree/MaterializedPathSubjectExecutor.js +0 -125
- package/.output/server/node_modules/typeorm/persistence/tree/NestedSetSubjectExecutor.js +0 -271
- package/.output/server/node_modules/typeorm/platform/PlatformTools.js +0 -243
- package/.output/server/node_modules/typeorm/query-builder/Alias.js +0 -29
- package/.output/server/node_modules/typeorm/query-builder/Brackets.js +0 -19
- package/.output/server/node_modules/typeorm/query-builder/DeleteQueryBuilder.js +0 -200
- package/.output/server/node_modules/typeorm/query-builder/InsertQueryBuilder.js +0 -745
- package/.output/server/node_modules/typeorm/query-builder/JoinAttribute.js +0 -175
- package/.output/server/node_modules/typeorm/query-builder/NotBrackets.js +0 -17
- package/.output/server/node_modules/typeorm/query-builder/QueryBuilder.js +0 -1139
- package/.output/server/node_modules/typeorm/query-builder/QueryBuilderUtils.js +0 -32
- package/.output/server/node_modules/typeorm/query-builder/QueryExpressionMap.js +0 -328
- package/.output/server/node_modules/typeorm/query-builder/RelationIdLoader.js +0 -503
- package/.output/server/node_modules/typeorm/query-builder/RelationLoader.js +0 -283
- package/.output/server/node_modules/typeorm/query-builder/RelationQueryBuilder.js +0 -155
- package/.output/server/node_modules/typeorm/query-builder/RelationRemover.js +0 -143
- package/.output/server/node_modules/typeorm/query-builder/RelationUpdater.js +0 -152
- package/.output/server/node_modules/typeorm/query-builder/ReturningResultsEntityUpdator.js +0 -176
- package/.output/server/node_modules/typeorm/query-builder/SelectQueryBuilder.js +0 -2656
- package/.output/server/node_modules/typeorm/query-builder/SoftDeleteQueryBuilder.js +0 -368
- package/.output/server/node_modules/typeorm/query-builder/UpdateQueryBuilder.js +0 -498
- package/.output/server/node_modules/typeorm/query-builder/index.js +0 -20
- package/.output/server/node_modules/typeorm/query-builder/relation-count/RelationCountAttribute.js +0 -80
- package/.output/server/node_modules/typeorm/query-builder/relation-count/RelationCountLoader.js +0 -168
- package/.output/server/node_modules/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.js +0 -55
- package/.output/server/node_modules/typeorm/query-builder/relation-id/RelationIdAttribute.js +0 -88
- package/.output/server/node_modules/typeorm/query-builder/relation-id/RelationIdLoader.js +0 -275
- package/.output/server/node_modules/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.js +0 -55
- package/.output/server/node_modules/typeorm/query-builder/result/DeleteResult.js +0 -17
- package/.output/server/node_modules/typeorm/query-builder/result/InsertResult.js +0 -28
- package/.output/server/node_modules/typeorm/query-builder/result/UpdateResult.js +0 -29
- package/.output/server/node_modules/typeorm/query-builder/transformer/DocumentToEntityTransformer.js +0 -196
- package/.output/server/node_modules/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.js +0 -112
- package/.output/server/node_modules/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.js +0 -92
- package/.output/server/node_modules/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.js +0 -447
- package/.output/server/node_modules/typeorm/query-runner/BaseQueryRunner.js +0 -454
- package/.output/server/node_modules/typeorm/query-runner/QueryLock.js +0 -28
- package/.output/server/node_modules/typeorm/query-runner/QueryResult.js +0 -17
- package/.output/server/node_modules/typeorm/repository/AbstractRepository.js +0 -92
- package/.output/server/node_modules/typeorm/repository/BaseEntity.js +0 -328
- package/.output/server/node_modules/typeorm/repository/MongoRepository.js +0 -305
- package/.output/server/node_modules/typeorm/repository/RemoveOptions.js +0 -4
- package/.output/server/node_modules/typeorm/repository/Repository.js +0 -379
- package/.output/server/node_modules/typeorm/repository/SaveOptions.js +0 -4
- package/.output/server/node_modules/typeorm/repository/TreeRepository.js +0 -255
- package/.output/server/node_modules/typeorm/schema-builder/MongoSchemaBuilder.js +0 -66
- package/.output/server/node_modules/typeorm/schema-builder/RdbmsSchemaBuilder.js +0 -929
- package/.output/server/node_modules/typeorm/schema-builder/options/TableCheckOptions.js +0 -4
- package/.output/server/node_modules/typeorm/schema-builder/options/TableColumnOptions.js +0 -4
- package/.output/server/node_modules/typeorm/schema-builder/options/TableExclusionOptions.js +0 -4
- package/.output/server/node_modules/typeorm/schema-builder/options/TableForeignKeyOptions.js +0 -4
- package/.output/server/node_modules/typeorm/schema-builder/options/TableIndexOptions.js +0 -4
- package/.output/server/node_modules/typeorm/schema-builder/options/TableOptions.js +0 -4
- package/.output/server/node_modules/typeorm/schema-builder/options/TableUniqueOptions.js +0 -4
- package/.output/server/node_modules/typeorm/schema-builder/options/ViewOptions.js +0 -4
- package/.output/server/node_modules/typeorm/schema-builder/table/Table.js +0 -296
- package/.output/server/node_modules/typeorm/schema-builder/table/TableCheck.js +0 -49
- package/.output/server/node_modules/typeorm/schema-builder/table/TableColumn.js +0 -117
- package/.output/server/node_modules/typeorm/schema-builder/table/TableExclusion.js +0 -43
- package/.output/server/node_modules/typeorm/schema-builder/table/TableForeignKey.js +0 -72
- package/.output/server/node_modules/typeorm/schema-builder/table/TableIndex.js +0 -68
- package/.output/server/node_modules/typeorm/schema-builder/table/TableUnique.js +0 -50
- package/.output/server/node_modules/typeorm/schema-builder/util/TableUtils.js +0 -41
- package/.output/server/node_modules/typeorm/schema-builder/util/ViewUtils.js +0 -27
- package/.output/server/node_modules/typeorm/schema-builder/view/View.js +0 -71
- package/.output/server/node_modules/typeorm/subscriber/Broadcaster.js +0 -660
- package/.output/server/node_modules/typeorm/subscriber/BroadcasterResult.js +0 -30
- package/.output/server/node_modules/typeorm/subscriber/event/QueryEvent.js +0 -4
- package/.output/server/node_modules/typeorm/util/ApplyValueTransformers.js +0 -25
- package/.output/server/node_modules/typeorm/util/DateUtils.js +0 -229
- package/.output/server/node_modules/typeorm/util/DepGraph.js +0 -230
- package/.output/server/node_modules/typeorm/util/DirectoryExportedClassesLoader.js +0 -65
- package/.output/server/node_modules/typeorm/util/ImportUtils.js +0 -66
- package/.output/server/node_modules/typeorm/util/InstanceChecker.js +0 -104
- package/.output/server/node_modules/typeorm/util/ObjectUtils.js +0 -49
- package/.output/server/node_modules/typeorm/util/OrmUtils.js +0 -443
- package/.output/server/node_modules/typeorm/util/PathUtils.js +0 -33
- package/.output/server/node_modules/typeorm/util/RandomGenerator.js +0 -154
- package/.output/server/node_modules/typeorm/util/SqlTagUtils.js +0 -43
- package/.output/server/node_modules/typeorm/util/StringUtils.js +0 -113
- package/.output/server/node_modules/typeorm/util/TreeRepositoryUtils.js +0 -67
- package/.output/server/node_modules/typeorm/util/VersionUtils.js +0 -27
- package/.output/server/node_modules/typeorm/util/escapeRegExp.js +0 -10
- package/.output/server/node_modules/uuid/dist/cjs/index.js +0 -31
- package/.output/server/node_modules/uuid/dist/cjs/max.js +0 -3
- package/.output/server/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/.output/server/node_modules/uuid/dist/cjs/native.js +0 -4
- package/.output/server/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/.output/server/node_modules/uuid/dist/cjs/package.json +0 -1
- package/.output/server/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/.output/server/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/.output/server/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/.output/server/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/.output/server/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/.output/server/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/.output/server/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/.output/server/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/.output/server/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/.output/server/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/.output/server/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/.output/server/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/.output/server/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/.output/server/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/.output/server/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/.output/server/node_modules/uuid/dist/cjs/version.js +0 -10
- package/.output/server/node_modules/uuid/package.json +0 -132
|
@@ -0,0 +1,1793 @@
|
|
|
1
|
+
// Builder
|
|
2
|
+
// -------
|
|
3
|
+
const assert = require('assert');
|
|
4
|
+
const { EventEmitter } = require('events');
|
|
5
|
+
const assign = require('lodash/assign');
|
|
6
|
+
const clone = require('lodash/clone');
|
|
7
|
+
const each = require('lodash/each');
|
|
8
|
+
const isEmpty = require('lodash/isEmpty');
|
|
9
|
+
const isPlainObject = require('lodash/isPlainObject');
|
|
10
|
+
const last = require('lodash/last');
|
|
11
|
+
const reject = require('lodash/reject');
|
|
12
|
+
const tail = require('lodash/tail');
|
|
13
|
+
const toArray = require('lodash/toArray');
|
|
14
|
+
|
|
15
|
+
const { addQueryContext, normalizeArr } = require('../util/helpers');
|
|
16
|
+
const JoinClause = require('./joinclause');
|
|
17
|
+
const Analytic = require('./analytic');
|
|
18
|
+
const saveAsyncStack = require('../util/save-async-stack');
|
|
19
|
+
const {
|
|
20
|
+
isBoolean,
|
|
21
|
+
isNumber,
|
|
22
|
+
isObject,
|
|
23
|
+
isString,
|
|
24
|
+
isFunction,
|
|
25
|
+
} = require('../util/is');
|
|
26
|
+
|
|
27
|
+
const { lockMode, waitMode } = require('./constants');
|
|
28
|
+
const {
|
|
29
|
+
augmentWithBuilderInterface,
|
|
30
|
+
} = require('../builder-interface-augmenter');
|
|
31
|
+
|
|
32
|
+
const SELECT_COMMANDS = new Set(['pluck', 'first', 'select']);
|
|
33
|
+
const CLEARABLE_STATEMENTS = new Set([
|
|
34
|
+
'with',
|
|
35
|
+
'select',
|
|
36
|
+
'columns',
|
|
37
|
+
'hintComments',
|
|
38
|
+
'where',
|
|
39
|
+
'union',
|
|
40
|
+
'join',
|
|
41
|
+
'group',
|
|
42
|
+
'order',
|
|
43
|
+
'having',
|
|
44
|
+
'limit',
|
|
45
|
+
'offset',
|
|
46
|
+
'counter',
|
|
47
|
+
'counters',
|
|
48
|
+
]);
|
|
49
|
+
const LOCK_MODES = new Set([
|
|
50
|
+
lockMode.forShare,
|
|
51
|
+
lockMode.forUpdate,
|
|
52
|
+
lockMode.forNoKeyUpdate,
|
|
53
|
+
lockMode.forKeyShare,
|
|
54
|
+
]);
|
|
55
|
+
|
|
56
|
+
// Typically called from `knex.builder`,
|
|
57
|
+
// start a new query building chain.
|
|
58
|
+
class Builder extends EventEmitter {
|
|
59
|
+
constructor(client) {
|
|
60
|
+
super();
|
|
61
|
+
this.client = client;
|
|
62
|
+
this.and = this;
|
|
63
|
+
this._single = {};
|
|
64
|
+
this._comments = [];
|
|
65
|
+
this._statements = [];
|
|
66
|
+
this._method = 'select';
|
|
67
|
+
if (client.config) {
|
|
68
|
+
saveAsyncStack(this, 5);
|
|
69
|
+
this._debug = client.config.debug;
|
|
70
|
+
}
|
|
71
|
+
// Internal flags used in the builder.
|
|
72
|
+
this._joinFlag = 'inner';
|
|
73
|
+
this._boolFlag = 'and';
|
|
74
|
+
this._notFlag = false;
|
|
75
|
+
this._asColumnFlag = false;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
toString() {
|
|
79
|
+
return this.toQuery();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Convert the current query "toSQL"
|
|
83
|
+
toSQL(method, tz) {
|
|
84
|
+
return this.client.queryCompiler(this).toSQL(method || this._method, tz);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Create a shallow clone of the current query builder.
|
|
88
|
+
clone() {
|
|
89
|
+
const cloned = new this.constructor(this.client);
|
|
90
|
+
cloned._method = this._method;
|
|
91
|
+
cloned._single = clone(this._single);
|
|
92
|
+
cloned._comments = clone(this._comments);
|
|
93
|
+
cloned._statements = clone(this._statements);
|
|
94
|
+
cloned._debug = this._debug;
|
|
95
|
+
|
|
96
|
+
// `_option` is assigned by the `Interface` mixin.
|
|
97
|
+
if (this._options !== undefined) {
|
|
98
|
+
cloned._options = clone(this._options);
|
|
99
|
+
}
|
|
100
|
+
if (this._queryContext !== undefined) {
|
|
101
|
+
cloned._queryContext = clone(this._queryContext);
|
|
102
|
+
}
|
|
103
|
+
if (this._connection !== undefined) {
|
|
104
|
+
cloned._connection = this._connection;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return cloned;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
timeout(ms, { cancel } = {}) {
|
|
111
|
+
if (isNumber(ms) && ms > 0) {
|
|
112
|
+
this._timeout = ms;
|
|
113
|
+
if (cancel) {
|
|
114
|
+
this.client.assertCanCancelQuery();
|
|
115
|
+
this._cancelOnTimeout = true;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return this;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// With
|
|
122
|
+
// ------
|
|
123
|
+
isValidStatementArg(statement) {
|
|
124
|
+
return (
|
|
125
|
+
typeof statement === 'function' ||
|
|
126
|
+
statement instanceof Builder ||
|
|
127
|
+
(statement && statement.isRawInstance)
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
_validateWithArgs(alias, statementOrColumnList, nothingOrStatement, method) {
|
|
132
|
+
const [query, columnList] =
|
|
133
|
+
typeof nothingOrStatement === 'undefined'
|
|
134
|
+
? [statementOrColumnList, undefined]
|
|
135
|
+
: [nothingOrStatement, statementOrColumnList];
|
|
136
|
+
if (typeof alias !== 'string') {
|
|
137
|
+
throw new Error(`${method}() first argument must be a string`);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (this.isValidStatementArg(query) && typeof columnList === 'undefined') {
|
|
141
|
+
// Validated as two-arg variant (alias, statement).
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Attempt to interpret as three-arg variant (alias, columnList, statement).
|
|
146
|
+
const isNonEmptyNameList =
|
|
147
|
+
Array.isArray(columnList) &&
|
|
148
|
+
columnList.length > 0 &&
|
|
149
|
+
columnList.every((it) => typeof it === 'string');
|
|
150
|
+
if (!isNonEmptyNameList) {
|
|
151
|
+
throw new Error(
|
|
152
|
+
`${method}() second argument must be a statement or non-empty column name list.`
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (this.isValidStatementArg(query)) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
throw new Error(
|
|
160
|
+
`${method}() third argument must be a function / QueryBuilder or a raw when its second argument is a column name list`
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
with(alias, statementOrColumnList, nothingOrStatement) {
|
|
165
|
+
this._validateWithArgs(
|
|
166
|
+
alias,
|
|
167
|
+
statementOrColumnList,
|
|
168
|
+
nothingOrStatement,
|
|
169
|
+
'with'
|
|
170
|
+
);
|
|
171
|
+
return this.withWrapped(alias, statementOrColumnList, nothingOrStatement);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
withMaterialized(alias, statementOrColumnList, nothingOrStatement) {
|
|
175
|
+
throw new Error('With materialized is not supported by this dialect');
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
withNotMaterialized(alias, statementOrColumnList, nothingOrStatement) {
|
|
179
|
+
throw new Error('With materialized is not supported by this dialect');
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// Helper for compiling any advanced `with` queries.
|
|
183
|
+
withWrapped(alias, statementOrColumnList, nothingOrStatement, materialized) {
|
|
184
|
+
const [query, columnList] =
|
|
185
|
+
typeof nothingOrStatement === 'undefined'
|
|
186
|
+
? [statementOrColumnList, undefined]
|
|
187
|
+
: [nothingOrStatement, statementOrColumnList];
|
|
188
|
+
const statement = {
|
|
189
|
+
grouping: 'with',
|
|
190
|
+
type: 'withWrapped',
|
|
191
|
+
alias: alias,
|
|
192
|
+
columnList,
|
|
193
|
+
value: query,
|
|
194
|
+
};
|
|
195
|
+
if (materialized !== undefined) {
|
|
196
|
+
statement.materialized = materialized;
|
|
197
|
+
}
|
|
198
|
+
this._statements.push(statement);
|
|
199
|
+
return this;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// With Recursive
|
|
203
|
+
// ------
|
|
204
|
+
|
|
205
|
+
withRecursive(alias, statementOrColumnList, nothingOrStatement) {
|
|
206
|
+
this._validateWithArgs(
|
|
207
|
+
alias,
|
|
208
|
+
statementOrColumnList,
|
|
209
|
+
nothingOrStatement,
|
|
210
|
+
'withRecursive'
|
|
211
|
+
);
|
|
212
|
+
return this.withRecursiveWrapped(
|
|
213
|
+
alias,
|
|
214
|
+
statementOrColumnList,
|
|
215
|
+
nothingOrStatement
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Helper for compiling any advanced `withRecursive` queries.
|
|
220
|
+
withRecursiveWrapped(alias, statementOrColumnList, nothingOrStatement) {
|
|
221
|
+
this.withWrapped(alias, statementOrColumnList, nothingOrStatement);
|
|
222
|
+
this._statements[this._statements.length - 1].recursive = true;
|
|
223
|
+
return this;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Select
|
|
227
|
+
// ------
|
|
228
|
+
|
|
229
|
+
// Adds a column or columns to the list of "columns"
|
|
230
|
+
// being selected on the query.
|
|
231
|
+
columns(column) {
|
|
232
|
+
if (!column && column !== 0) return this;
|
|
233
|
+
this._statements.push({
|
|
234
|
+
grouping: 'columns',
|
|
235
|
+
value: normalizeArr(...arguments),
|
|
236
|
+
});
|
|
237
|
+
return this;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Adds a comment to the query
|
|
241
|
+
comment(txt) {
|
|
242
|
+
if (!isString(txt)) {
|
|
243
|
+
throw new Error('Comment must be a string');
|
|
244
|
+
}
|
|
245
|
+
const forbiddenChars = ['/*', '*/', '?'];
|
|
246
|
+
if (forbiddenChars.some((chars) => txt.includes(chars))) {
|
|
247
|
+
throw new Error(`Cannot include ${forbiddenChars.join(', ')} in comment`);
|
|
248
|
+
}
|
|
249
|
+
this._comments.push({
|
|
250
|
+
comment: txt,
|
|
251
|
+
});
|
|
252
|
+
return this;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// Allow for a sub-select to be explicitly aliased as a column,
|
|
256
|
+
// without needing to compile the query in a where.
|
|
257
|
+
as(column) {
|
|
258
|
+
this._single.as = column;
|
|
259
|
+
return this;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// Adds a single hint or an array of hits to the list of "hintComments" on the query.
|
|
263
|
+
hintComment(hints) {
|
|
264
|
+
hints = Array.isArray(hints) ? hints : [hints];
|
|
265
|
+
if (hints.some((hint) => !isString(hint))) {
|
|
266
|
+
throw new Error('Hint comment must be a string');
|
|
267
|
+
}
|
|
268
|
+
if (hints.some((hint) => hint.includes('/*') || hint.includes('*/'))) {
|
|
269
|
+
throw new Error('Hint comment cannot include "/*" or "*/"');
|
|
270
|
+
}
|
|
271
|
+
if (hints.some((hint) => hint.includes('?'))) {
|
|
272
|
+
throw new Error('Hint comment cannot include "?"');
|
|
273
|
+
}
|
|
274
|
+
this._statements.push({
|
|
275
|
+
grouping: 'hintComments',
|
|
276
|
+
value: hints,
|
|
277
|
+
});
|
|
278
|
+
return this;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// Prepends the `schemaName` on `tableName` defined by `.table` and `.join`.
|
|
282
|
+
withSchema(schemaName) {
|
|
283
|
+
this._single.schema = schemaName;
|
|
284
|
+
return this;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// Sets the `tableName` on the query.
|
|
288
|
+
// Alias to "from" for select and "into" for insert statements
|
|
289
|
+
// e.g. builder.insert({a: value}).into('tableName')
|
|
290
|
+
// `options`: options object containing keys:
|
|
291
|
+
// - `only`: whether the query should use SQL's ONLY to not return
|
|
292
|
+
// inheriting table data. Defaults to false.
|
|
293
|
+
table(tableName, options = {}) {
|
|
294
|
+
this._single.table = tableName;
|
|
295
|
+
this._single.only = options.only === true;
|
|
296
|
+
return this;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// Adds a `distinct` clause to the query.
|
|
300
|
+
distinct(...args) {
|
|
301
|
+
this._statements.push({
|
|
302
|
+
grouping: 'columns',
|
|
303
|
+
value: normalizeArr(...args),
|
|
304
|
+
distinct: true,
|
|
305
|
+
});
|
|
306
|
+
return this;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
distinctOn(...args) {
|
|
310
|
+
if (isEmpty(args)) {
|
|
311
|
+
throw new Error('distinctOn requires at least on argument');
|
|
312
|
+
}
|
|
313
|
+
this._statements.push({
|
|
314
|
+
grouping: 'columns',
|
|
315
|
+
value: normalizeArr(...args),
|
|
316
|
+
distinctOn: true,
|
|
317
|
+
});
|
|
318
|
+
return this;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// Adds a join clause to the query, allowing for advanced joins
|
|
322
|
+
// with an anonymous function as the second argument.
|
|
323
|
+
join(table, first, ...args) {
|
|
324
|
+
let join;
|
|
325
|
+
const schema =
|
|
326
|
+
table instanceof Builder || typeof table === 'function'
|
|
327
|
+
? undefined
|
|
328
|
+
: this._single.schema;
|
|
329
|
+
const joinType = this._joinType();
|
|
330
|
+
if (typeof first === 'function') {
|
|
331
|
+
join = new JoinClause(table, joinType, schema);
|
|
332
|
+
first.call(join, join);
|
|
333
|
+
} else if (joinType === 'raw') {
|
|
334
|
+
join = new JoinClause(this.client.raw(table, first), 'raw');
|
|
335
|
+
} else {
|
|
336
|
+
join = new JoinClause(table, joinType, schema);
|
|
337
|
+
if (first) {
|
|
338
|
+
join.on(first, ...args);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
this._statements.push(join);
|
|
342
|
+
return this;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
using(tables) {
|
|
346
|
+
throw new Error(
|
|
347
|
+
"'using' function is only available in PostgreSQL dialect with Delete statements."
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// JOIN blocks:
|
|
352
|
+
innerJoin(...args) {
|
|
353
|
+
return this._joinType('inner').join(...args);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
leftJoin(...args) {
|
|
357
|
+
return this._joinType('left').join(...args);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
leftOuterJoin(...args) {
|
|
361
|
+
return this._joinType('left outer').join(...args);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
rightJoin(...args) {
|
|
365
|
+
return this._joinType('right').join(...args);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
rightOuterJoin(...args) {
|
|
369
|
+
return this._joinType('right outer').join(...args);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
outerJoin(...args) {
|
|
373
|
+
return this._joinType('outer').join(...args);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
fullOuterJoin(...args) {
|
|
377
|
+
return this._joinType('full outer').join(...args);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
crossJoin(...args) {
|
|
381
|
+
return this._joinType('cross').join(...args);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
joinRaw(...args) {
|
|
385
|
+
return this._joinType('raw').join(...args);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Where modifiers:
|
|
389
|
+
get or() {
|
|
390
|
+
return this._bool('or');
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
get not() {
|
|
394
|
+
return this._not(true);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// The where function can be used in several ways:
|
|
398
|
+
// The most basic is `where(key, value)`, which expands to
|
|
399
|
+
// where key = value.
|
|
400
|
+
where(column, operator, value) {
|
|
401
|
+
const argsLength = arguments.length;
|
|
402
|
+
|
|
403
|
+
// Support "where true || where false"
|
|
404
|
+
if (column === false || column === true) {
|
|
405
|
+
return this.where(1, '=', column ? 1 : 0);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Check if the column is a function, in which case it's
|
|
409
|
+
// a where statement wrapped in parens.
|
|
410
|
+
if (typeof column === 'function') {
|
|
411
|
+
return this.whereWrapped(column);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// Allows `where({id: 2})` syntax.
|
|
415
|
+
if (isObject(column) && !column.isRawInstance)
|
|
416
|
+
return this._objectWhere(column);
|
|
417
|
+
|
|
418
|
+
// Allow a raw statement to be passed along to the query.
|
|
419
|
+
if (column && column.isRawInstance && argsLength === 1)
|
|
420
|
+
return this.whereRaw(column);
|
|
421
|
+
|
|
422
|
+
// Enable the where('key', value) syntax, only when there
|
|
423
|
+
// are explicitly two arguments passed, so it's not possible to
|
|
424
|
+
// do where('key', '!=') and have that turn into where key != null
|
|
425
|
+
if (argsLength === 2) {
|
|
426
|
+
value = operator;
|
|
427
|
+
operator = '=';
|
|
428
|
+
|
|
429
|
+
// If the value is null, and it's a two argument query,
|
|
430
|
+
// we assume we're going for a `whereNull`.
|
|
431
|
+
if (value === null) {
|
|
432
|
+
return this.whereNull(column);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// lower case the operator for comparison purposes
|
|
437
|
+
const checkOperator = `${operator}`.toLowerCase().trim();
|
|
438
|
+
|
|
439
|
+
// If there are 3 arguments, check whether 'in' is one of them.
|
|
440
|
+
if (argsLength === 3) {
|
|
441
|
+
if (checkOperator === 'in' || checkOperator === 'not in') {
|
|
442
|
+
return this._not(checkOperator === 'not in').whereIn(column, value);
|
|
443
|
+
}
|
|
444
|
+
if (checkOperator === 'between' || checkOperator === 'not between') {
|
|
445
|
+
return this._not(checkOperator === 'not between').whereBetween(
|
|
446
|
+
column,
|
|
447
|
+
value
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// If the value is still null, check whether they're meaning
|
|
453
|
+
// where value is null
|
|
454
|
+
if (value === null) {
|
|
455
|
+
// Check for .where(key, 'is', null) or .where(key, 'is not', 'null');
|
|
456
|
+
if (checkOperator === 'is' || checkOperator === 'is not') {
|
|
457
|
+
return this._not(checkOperator === 'is not').whereNull(column);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
// Push onto the where statement stack.
|
|
462
|
+
this._statements.push({
|
|
463
|
+
grouping: 'where',
|
|
464
|
+
type: 'whereBasic',
|
|
465
|
+
column,
|
|
466
|
+
operator,
|
|
467
|
+
value,
|
|
468
|
+
not: this._not(),
|
|
469
|
+
bool: this._bool(),
|
|
470
|
+
asColumn: this._asColumnFlag,
|
|
471
|
+
});
|
|
472
|
+
return this;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
whereColumn(...args) {
|
|
476
|
+
this._asColumnFlag = true;
|
|
477
|
+
this.where(...args);
|
|
478
|
+
this._asColumnFlag = false;
|
|
479
|
+
return this;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// Adds an `or where` clause to the query.
|
|
483
|
+
orWhere(column, ...args) {
|
|
484
|
+
this._bool('or');
|
|
485
|
+
const obj = column;
|
|
486
|
+
if (isObject(obj) && !obj.isRawInstance) {
|
|
487
|
+
return this.whereWrapped(function () {
|
|
488
|
+
for (const key in obj) {
|
|
489
|
+
this.andWhere(key, obj[key]);
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
return this.where(column, ...args);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
orWhereColumn(column, ...args) {
|
|
497
|
+
this._bool('or');
|
|
498
|
+
const obj = column;
|
|
499
|
+
if (isObject(obj) && !obj.isRawInstance) {
|
|
500
|
+
return this.whereWrapped(function () {
|
|
501
|
+
for (const key in obj) {
|
|
502
|
+
this.andWhereColumn(key, '=', obj[key]);
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
return this.whereColumn(column, ...args);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
// Adds an `not where` clause to the query.
|
|
510
|
+
whereNot(column, ...args) {
|
|
511
|
+
if (args.length >= 2) {
|
|
512
|
+
if (args[0] === 'in' || args[0] === 'between') {
|
|
513
|
+
this.client.logger.warn(
|
|
514
|
+
'whereNot is not suitable for "in" and "between" type subqueries. You should use "not in" and "not between" instead.'
|
|
515
|
+
);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return this._not(true).where(column, ...args);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
whereNotColumn(...args) {
|
|
522
|
+
return this._not(true).whereColumn(...args);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// Adds an `or not where` clause to the query.
|
|
526
|
+
orWhereNot(...args) {
|
|
527
|
+
return this._bool('or').whereNot(...args);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
orWhereNotColumn(...args) {
|
|
531
|
+
return this._bool('or').whereNotColumn(...args);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// Processes an object literal provided in a "where" clause.
|
|
535
|
+
_objectWhere(obj) {
|
|
536
|
+
const boolVal = this._bool();
|
|
537
|
+
const notVal = this._not() ? 'Not' : '';
|
|
538
|
+
for (const key in obj) {
|
|
539
|
+
this[boolVal + 'Where' + notVal](key, obj[key]);
|
|
540
|
+
}
|
|
541
|
+
return this;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
// Adds a raw `where` clause to the query.
|
|
545
|
+
whereRaw(sql, bindings) {
|
|
546
|
+
const raw = sql.isRawInstance ? sql : this.client.raw(sql, bindings);
|
|
547
|
+
|
|
548
|
+
this._statements.push({
|
|
549
|
+
grouping: 'where',
|
|
550
|
+
type: 'whereRaw',
|
|
551
|
+
value: raw,
|
|
552
|
+
not: this._not(),
|
|
553
|
+
bool: this._bool(),
|
|
554
|
+
});
|
|
555
|
+
return this;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
orWhereRaw(sql, bindings) {
|
|
559
|
+
return this._bool('or').whereRaw(sql, bindings);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
// Helper for compiling any advanced `where` queries.
|
|
563
|
+
whereWrapped(callback) {
|
|
564
|
+
this._statements.push({
|
|
565
|
+
grouping: 'where',
|
|
566
|
+
type: 'whereWrapped',
|
|
567
|
+
value: callback,
|
|
568
|
+
not: this._not(),
|
|
569
|
+
bool: this._bool(),
|
|
570
|
+
});
|
|
571
|
+
return this;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// Adds a `where exists` clause to the query.
|
|
575
|
+
whereExists(callback) {
|
|
576
|
+
this._statements.push({
|
|
577
|
+
grouping: 'where',
|
|
578
|
+
type: 'whereExists',
|
|
579
|
+
value: callback,
|
|
580
|
+
not: this._not(),
|
|
581
|
+
bool: this._bool(),
|
|
582
|
+
});
|
|
583
|
+
return this;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// Adds an `or where exists` clause to the query.
|
|
587
|
+
orWhereExists(callback) {
|
|
588
|
+
return this._bool('or').whereExists(callback);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
// Adds a `where not exists` clause to the query.
|
|
592
|
+
whereNotExists(callback) {
|
|
593
|
+
return this._not(true).whereExists(callback);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// Adds a `or where not exists` clause to the query.
|
|
597
|
+
orWhereNotExists(callback) {
|
|
598
|
+
return this._bool('or').whereNotExists(callback);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// Adds a `where in` clause to the query.
|
|
602
|
+
whereIn(column, values) {
|
|
603
|
+
if (Array.isArray(values) && isEmpty(values))
|
|
604
|
+
return this.where(this._not());
|
|
605
|
+
this._statements.push({
|
|
606
|
+
grouping: 'where',
|
|
607
|
+
type: 'whereIn',
|
|
608
|
+
column,
|
|
609
|
+
value: values,
|
|
610
|
+
not: this._not(),
|
|
611
|
+
bool: this._bool(),
|
|
612
|
+
});
|
|
613
|
+
return this;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// Adds a `or where in` clause to the query.
|
|
617
|
+
orWhereIn(column, values) {
|
|
618
|
+
return this._bool('or').whereIn(column, values);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
// Adds a `where not in` clause to the query.
|
|
622
|
+
whereNotIn(column, values) {
|
|
623
|
+
return this._not(true).whereIn(column, values);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
// Adds a `or where not in` clause to the query.
|
|
627
|
+
orWhereNotIn(column, values) {
|
|
628
|
+
return this._bool('or')._not(true).whereIn(column, values);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// Adds a `where null` clause to the query.
|
|
632
|
+
whereNull(column) {
|
|
633
|
+
this._statements.push({
|
|
634
|
+
grouping: 'where',
|
|
635
|
+
type: 'whereNull',
|
|
636
|
+
column,
|
|
637
|
+
not: this._not(),
|
|
638
|
+
bool: this._bool(),
|
|
639
|
+
});
|
|
640
|
+
return this;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// Adds a `or where null` clause to the query.
|
|
644
|
+
orWhereNull(column) {
|
|
645
|
+
return this._bool('or').whereNull(column);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// Adds a `where not null` clause to the query.
|
|
649
|
+
whereNotNull(column) {
|
|
650
|
+
return this._not(true).whereNull(column);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
// Adds a `or where not null` clause to the query.
|
|
654
|
+
orWhereNotNull(column) {
|
|
655
|
+
return this._bool('or').whereNotNull(column);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
// Adds a `where between` clause to the query.
|
|
659
|
+
whereBetween(column, values) {
|
|
660
|
+
assert(
|
|
661
|
+
Array.isArray(values),
|
|
662
|
+
'The second argument to whereBetween must be an array.'
|
|
663
|
+
);
|
|
664
|
+
assert(
|
|
665
|
+
values.length === 2,
|
|
666
|
+
'You must specify 2 values for the whereBetween clause'
|
|
667
|
+
);
|
|
668
|
+
this._statements.push({
|
|
669
|
+
grouping: 'where',
|
|
670
|
+
type: 'whereBetween',
|
|
671
|
+
column,
|
|
672
|
+
value: values,
|
|
673
|
+
not: this._not(),
|
|
674
|
+
bool: this._bool(),
|
|
675
|
+
});
|
|
676
|
+
return this;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
// Adds a `where not between` clause to the query.
|
|
680
|
+
whereNotBetween(column, values) {
|
|
681
|
+
return this._not(true).whereBetween(column, values);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
// Adds a `or where between` clause to the query.
|
|
685
|
+
orWhereBetween(column, values) {
|
|
686
|
+
return this._bool('or').whereBetween(column, values);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
// Adds a `or where not between` clause to the query.
|
|
690
|
+
orWhereNotBetween(column, values) {
|
|
691
|
+
return this._bool('or').whereNotBetween(column, values);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
_whereLike(type, column, value) {
|
|
695
|
+
this._statements.push({
|
|
696
|
+
grouping: 'where',
|
|
697
|
+
type: type,
|
|
698
|
+
column,
|
|
699
|
+
value: value,
|
|
700
|
+
not: this._not(),
|
|
701
|
+
bool: this._bool(),
|
|
702
|
+
asColumn: this._asColumnFlag,
|
|
703
|
+
});
|
|
704
|
+
return this;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
// Adds a `where like` clause to the query.
|
|
708
|
+
whereLike(column, value) {
|
|
709
|
+
return this._whereLike('whereLike', column, value);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
// Adds a `or where like` clause to the query.
|
|
713
|
+
orWhereLike(column, value) {
|
|
714
|
+
return this._bool('or')._whereLike('whereLike', column, value);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
// Adds a `where ilike` clause to the query.
|
|
718
|
+
whereILike(column, value) {
|
|
719
|
+
return this._whereLike('whereILike', column, value);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
// Adds a `or where ilike` clause to the query.
|
|
723
|
+
orWhereILike(column, value) {
|
|
724
|
+
return this._bool('or')._whereLike('whereILike', column, value);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
// Adds a `group by` clause to the query.
|
|
728
|
+
groupBy(item) {
|
|
729
|
+
if (item && item.isRawInstance) {
|
|
730
|
+
return this.groupByRaw.apply(this, arguments);
|
|
731
|
+
}
|
|
732
|
+
this._statements.push({
|
|
733
|
+
grouping: 'group',
|
|
734
|
+
type: 'groupByBasic',
|
|
735
|
+
value: normalizeArr(...arguments),
|
|
736
|
+
});
|
|
737
|
+
return this;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
// Adds a raw `group by` clause to the query.
|
|
741
|
+
groupByRaw(sql, bindings) {
|
|
742
|
+
const raw = sql.isRawInstance ? sql : this.client.raw(sql, bindings);
|
|
743
|
+
this._statements.push({
|
|
744
|
+
grouping: 'group',
|
|
745
|
+
type: 'groupByRaw',
|
|
746
|
+
value: raw,
|
|
747
|
+
});
|
|
748
|
+
return this;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
// Adds a `order by` clause to the query.
|
|
752
|
+
orderBy(column, direction, nulls = '') {
|
|
753
|
+
if (Array.isArray(column)) {
|
|
754
|
+
return this._orderByArray(column);
|
|
755
|
+
}
|
|
756
|
+
this._statements.push({
|
|
757
|
+
grouping: 'order',
|
|
758
|
+
type: 'orderByBasic',
|
|
759
|
+
value: column,
|
|
760
|
+
direction,
|
|
761
|
+
nulls,
|
|
762
|
+
});
|
|
763
|
+
return this;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
// Adds a `order by` with multiple columns to the query.
|
|
767
|
+
_orderByArray(columnDefs) {
|
|
768
|
+
for (let i = 0; i < columnDefs.length; i++) {
|
|
769
|
+
const columnInfo = columnDefs[i];
|
|
770
|
+
if (isObject(columnInfo)) {
|
|
771
|
+
this._statements.push({
|
|
772
|
+
grouping: 'order',
|
|
773
|
+
type: 'orderByBasic',
|
|
774
|
+
value: columnInfo['column'],
|
|
775
|
+
direction: columnInfo['order'],
|
|
776
|
+
nulls: columnInfo['nulls'],
|
|
777
|
+
});
|
|
778
|
+
} else if (isString(columnInfo) || isNumber(columnInfo)) {
|
|
779
|
+
this._statements.push({
|
|
780
|
+
grouping: 'order',
|
|
781
|
+
type: 'orderByBasic',
|
|
782
|
+
value: columnInfo,
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
return this;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
// Add a raw `order by` clause to the query.
|
|
790
|
+
orderByRaw(sql, bindings) {
|
|
791
|
+
const raw = sql.isRawInstance ? sql : this.client.raw(sql, bindings);
|
|
792
|
+
this._statements.push({
|
|
793
|
+
grouping: 'order',
|
|
794
|
+
type: 'orderByRaw',
|
|
795
|
+
value: raw,
|
|
796
|
+
});
|
|
797
|
+
return this;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
_union(clause, args) {
|
|
801
|
+
let callbacks = args[0];
|
|
802
|
+
let wrap = args[1];
|
|
803
|
+
if (args.length === 1 || (args.length === 2 && isBoolean(wrap))) {
|
|
804
|
+
if (!Array.isArray(callbacks)) {
|
|
805
|
+
callbacks = [callbacks];
|
|
806
|
+
}
|
|
807
|
+
for (let i = 0, l = callbacks.length; i < l; i++) {
|
|
808
|
+
this._statements.push({
|
|
809
|
+
grouping: 'union',
|
|
810
|
+
clause: clause,
|
|
811
|
+
value: callbacks[i],
|
|
812
|
+
wrap: wrap || false,
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
} else {
|
|
816
|
+
callbacks = toArray(args).slice(0, args.length - 1);
|
|
817
|
+
wrap = args[args.length - 1];
|
|
818
|
+
if (!isBoolean(wrap)) {
|
|
819
|
+
callbacks.push(wrap);
|
|
820
|
+
wrap = false;
|
|
821
|
+
}
|
|
822
|
+
this._union(clause, [callbacks, wrap]);
|
|
823
|
+
}
|
|
824
|
+
return this;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
// Add a union statement to the query.
|
|
828
|
+
union(...args) {
|
|
829
|
+
return this._union('union', args);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
// Adds a union all statement to the query.
|
|
833
|
+
unionAll(...args) {
|
|
834
|
+
return this._union('union all', args);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
intersect(...args) {
|
|
838
|
+
return this._union('intersect', args);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
except(...args) {
|
|
842
|
+
return this._union('except', args);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
// Adds a `having` clause to the query.
|
|
846
|
+
having(column, operator, value) {
|
|
847
|
+
if (column.isRawInstance && arguments.length === 1) {
|
|
848
|
+
return this.havingRaw(column);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
// Check if the column is a function, in which case it's
|
|
852
|
+
// a having statement wrapped in parens.
|
|
853
|
+
if (typeof column === 'function') {
|
|
854
|
+
return this.havingWrapped(column);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
this._statements.push({
|
|
858
|
+
grouping: 'having',
|
|
859
|
+
type: 'havingBasic',
|
|
860
|
+
column,
|
|
861
|
+
operator,
|
|
862
|
+
value,
|
|
863
|
+
bool: this._bool(),
|
|
864
|
+
not: this._not(),
|
|
865
|
+
});
|
|
866
|
+
return this;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
orHaving(column, ...args) {
|
|
870
|
+
this._bool('or');
|
|
871
|
+
const obj = column;
|
|
872
|
+
if (isObject(obj) && !obj.isRawInstance) {
|
|
873
|
+
return this.havingWrapped(function () {
|
|
874
|
+
for (const key in obj) {
|
|
875
|
+
this.andHaving(key, obj[key]);
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
return this.having(column, ...args);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
// Helper for compiling any advanced `having` queries.
|
|
883
|
+
havingWrapped(callback) {
|
|
884
|
+
this._statements.push({
|
|
885
|
+
grouping: 'having',
|
|
886
|
+
type: 'havingWrapped',
|
|
887
|
+
value: callback,
|
|
888
|
+
bool: this._bool(),
|
|
889
|
+
not: this._not(),
|
|
890
|
+
});
|
|
891
|
+
return this;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
havingNull(column) {
|
|
895
|
+
this._statements.push({
|
|
896
|
+
grouping: 'having',
|
|
897
|
+
type: 'havingNull',
|
|
898
|
+
column,
|
|
899
|
+
not: this._not(),
|
|
900
|
+
bool: this._bool(),
|
|
901
|
+
});
|
|
902
|
+
return this;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
orHavingNull(callback) {
|
|
906
|
+
return this._bool('or').havingNull(callback);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
havingNotNull(callback) {
|
|
910
|
+
return this._not(true).havingNull(callback);
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
orHavingNotNull(callback) {
|
|
914
|
+
return this._not(true)._bool('or').havingNull(callback);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
havingExists(callback) {
|
|
918
|
+
this._statements.push({
|
|
919
|
+
grouping: 'having',
|
|
920
|
+
type: 'havingExists',
|
|
921
|
+
value: callback,
|
|
922
|
+
not: this._not(),
|
|
923
|
+
bool: this._bool(),
|
|
924
|
+
});
|
|
925
|
+
return this;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
orHavingExists(callback) {
|
|
929
|
+
return this._bool('or').havingExists(callback);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
havingNotExists(callback) {
|
|
933
|
+
return this._not(true).havingExists(callback);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
orHavingNotExists(callback) {
|
|
937
|
+
return this._not(true)._bool('or').havingExists(callback);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
havingBetween(column, values) {
|
|
941
|
+
assert(
|
|
942
|
+
Array.isArray(values),
|
|
943
|
+
'The second argument to havingBetween must be an array.'
|
|
944
|
+
);
|
|
945
|
+
assert(
|
|
946
|
+
values.length === 2,
|
|
947
|
+
'You must specify 2 values for the havingBetween clause'
|
|
948
|
+
);
|
|
949
|
+
this._statements.push({
|
|
950
|
+
grouping: 'having',
|
|
951
|
+
type: 'havingBetween',
|
|
952
|
+
column,
|
|
953
|
+
value: values,
|
|
954
|
+
not: this._not(),
|
|
955
|
+
bool: this._bool(),
|
|
956
|
+
});
|
|
957
|
+
return this;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
orHavingBetween(column, values) {
|
|
961
|
+
return this._bool('or').havingBetween(column, values);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
havingNotBetween(column, values) {
|
|
965
|
+
return this._not(true).havingBetween(column, values);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
orHavingNotBetween(column, values) {
|
|
969
|
+
return this._not(true)._bool('or').havingBetween(column, values);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
havingIn(column, values) {
|
|
973
|
+
if (Array.isArray(values) && isEmpty(values))
|
|
974
|
+
return this.where(this._not());
|
|
975
|
+
this._statements.push({
|
|
976
|
+
grouping: 'having',
|
|
977
|
+
type: 'havingIn',
|
|
978
|
+
column,
|
|
979
|
+
value: values,
|
|
980
|
+
not: this._not(),
|
|
981
|
+
bool: this._bool(),
|
|
982
|
+
});
|
|
983
|
+
return this;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
// Adds a `or where in` clause to the query.
|
|
987
|
+
orHavingIn(column, values) {
|
|
988
|
+
return this._bool('or').havingIn(column, values);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
// Adds a `where not in` clause to the query.
|
|
992
|
+
havingNotIn(column, values) {
|
|
993
|
+
return this._not(true).havingIn(column, values);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
// Adds a `or where not in` clause to the query.
|
|
997
|
+
orHavingNotIn(column, values) {
|
|
998
|
+
return this._bool('or')._not(true).havingIn(column, values);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
// Adds a raw `having` clause to the query.
|
|
1002
|
+
havingRaw(sql, bindings) {
|
|
1003
|
+
const raw = sql.isRawInstance ? sql : this.client.raw(sql, bindings);
|
|
1004
|
+
this._statements.push({
|
|
1005
|
+
grouping: 'having',
|
|
1006
|
+
type: 'havingRaw',
|
|
1007
|
+
value: raw,
|
|
1008
|
+
bool: this._bool(),
|
|
1009
|
+
not: this._not(),
|
|
1010
|
+
});
|
|
1011
|
+
return this;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
orHavingRaw(sql, bindings) {
|
|
1015
|
+
return this._bool('or').havingRaw(sql, bindings);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
// set the skip binding parameter (= insert the raw value in the query) for an attribute.
|
|
1019
|
+
_setSkipBinding(attribute, options) {
|
|
1020
|
+
let skipBinding = options;
|
|
1021
|
+
if (isObject(options)) {
|
|
1022
|
+
skipBinding = options.skipBinding;
|
|
1023
|
+
}
|
|
1024
|
+
this._single.skipBinding = this._single.skipBinding || {};
|
|
1025
|
+
this._single.skipBinding[attribute] = skipBinding;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
// Only allow a single "offset" to be set for the current query.
|
|
1029
|
+
offset(value, options) {
|
|
1030
|
+
if (value == null || value.isRawInstance || value instanceof Builder) {
|
|
1031
|
+
// Builder for backward compatibility
|
|
1032
|
+
this._single.offset = value;
|
|
1033
|
+
} else {
|
|
1034
|
+
const val = parseInt(value, 10);
|
|
1035
|
+
if (isNaN(val)) {
|
|
1036
|
+
this.client.logger.warn('A valid integer must be provided to offset');
|
|
1037
|
+
} else if (val < 0) {
|
|
1038
|
+
throw new Error(`A non-negative integer must be provided to offset.`);
|
|
1039
|
+
} else {
|
|
1040
|
+
this._single.offset = val;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
this._setSkipBinding('offset', options);
|
|
1044
|
+
return this;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
// Only allow a single "limit" to be set for the current query.
|
|
1048
|
+
limit(value, options) {
|
|
1049
|
+
const val = parseInt(value, 10);
|
|
1050
|
+
if (isNaN(val)) {
|
|
1051
|
+
this.client.logger.warn('A valid integer must be provided to limit');
|
|
1052
|
+
} else {
|
|
1053
|
+
this._single.limit = val;
|
|
1054
|
+
this._setSkipBinding('limit', options);
|
|
1055
|
+
}
|
|
1056
|
+
return this;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
// Retrieve the "count" result of the query.
|
|
1060
|
+
count(column, options) {
|
|
1061
|
+
return this._aggregate('count', column || '*', options);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
// Retrieve the minimum value of a given column.
|
|
1065
|
+
min(column, options) {
|
|
1066
|
+
return this._aggregate('min', column, options);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
// Retrieve the maximum value of a given column.
|
|
1070
|
+
max(column, options) {
|
|
1071
|
+
return this._aggregate('max', column, options);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
// Retrieve the sum of the values of a given column.
|
|
1075
|
+
sum(column, options) {
|
|
1076
|
+
return this._aggregate('sum', column, options);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
// Retrieve the average of the values of a given column.
|
|
1080
|
+
avg(column, options) {
|
|
1081
|
+
return this._aggregate('avg', column, options);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
// Retrieve the "count" of the distinct results of the query.
|
|
1085
|
+
countDistinct(...columns) {
|
|
1086
|
+
let options;
|
|
1087
|
+
if (columns.length > 1 && isPlainObject(last(columns))) {
|
|
1088
|
+
[options] = columns.splice(columns.length - 1, 1);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
if (!columns.length) {
|
|
1092
|
+
columns = '*';
|
|
1093
|
+
} else if (columns.length === 1) {
|
|
1094
|
+
columns = columns[0];
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
return this._aggregate('count', columns, { ...options, distinct: true });
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
// Retrieve the sum of the distinct values of a given column.
|
|
1101
|
+
sumDistinct(column, options) {
|
|
1102
|
+
return this._aggregate('sum', column, { ...options, distinct: true });
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
// Retrieve the vg of the distinct results of the query.
|
|
1106
|
+
avgDistinct(column, options) {
|
|
1107
|
+
return this._aggregate('avg', column, { ...options, distinct: true });
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
// Increments a column's value by the specified amount.
|
|
1111
|
+
increment(column, amount = 1) {
|
|
1112
|
+
if (isObject(column)) {
|
|
1113
|
+
for (const key in column) {
|
|
1114
|
+
this._counter(key, column[key]);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
return this;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
return this._counter(column, amount);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// Decrements a column's value by the specified amount.
|
|
1124
|
+
decrement(column, amount = 1) {
|
|
1125
|
+
if (isObject(column)) {
|
|
1126
|
+
for (const key in column) {
|
|
1127
|
+
this._counter(key, -column[key]);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
return this;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
return this._counter(column, -amount);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
// Clears increments/decrements
|
|
1137
|
+
clearCounters() {
|
|
1138
|
+
this._single.counter = {};
|
|
1139
|
+
return this;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
// Sets the values for a `select` query, informing that only the first
|
|
1143
|
+
// row should be returned (limit 1).
|
|
1144
|
+
first(...args) {
|
|
1145
|
+
if (this._method && this._method !== 'select') {
|
|
1146
|
+
throw new Error(`Cannot chain .first() on "${this._method}" query`);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
this.select(normalizeArr(...args));
|
|
1150
|
+
this._method = 'first';
|
|
1151
|
+
this.limit(1);
|
|
1152
|
+
return this;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
// Use existing connection to execute the query
|
|
1156
|
+
// Same value that client.acquireConnection() for an according client returns should be passed
|
|
1157
|
+
connection(_connection) {
|
|
1158
|
+
this._connection = _connection;
|
|
1159
|
+
this.client.processPassedConnection(_connection);
|
|
1160
|
+
return this;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
// Pluck a column from a query.
|
|
1164
|
+
pluck(column) {
|
|
1165
|
+
if (this._method && this._method !== 'select') {
|
|
1166
|
+
throw new Error(`Cannot chain .pluck() on "${this._method}" query`);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
this._method = 'pluck';
|
|
1170
|
+
this._single.pluck = column;
|
|
1171
|
+
this._statements.push({
|
|
1172
|
+
grouping: 'columns',
|
|
1173
|
+
type: 'pluck',
|
|
1174
|
+
value: column,
|
|
1175
|
+
});
|
|
1176
|
+
return this;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
// Deprecated. Remove everything from select clause
|
|
1180
|
+
clearSelect() {
|
|
1181
|
+
this._clearGrouping('columns');
|
|
1182
|
+
return this;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
// Deprecated. Remove everything from where clause
|
|
1186
|
+
clearWhere() {
|
|
1187
|
+
this._clearGrouping('where');
|
|
1188
|
+
return this;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
// Deprecated. Remove everything from group clause
|
|
1192
|
+
clearGroup() {
|
|
1193
|
+
this._clearGrouping('group');
|
|
1194
|
+
return this;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
// Deprecated. Remove everything from order clause
|
|
1198
|
+
clearOrder() {
|
|
1199
|
+
this._clearGrouping('order');
|
|
1200
|
+
return this;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
// Deprecated. Remove everything from having clause
|
|
1204
|
+
clearHaving() {
|
|
1205
|
+
this._clearGrouping('having');
|
|
1206
|
+
return this;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
// Remove everything from statement clause
|
|
1210
|
+
clear(statement) {
|
|
1211
|
+
if (!CLEARABLE_STATEMENTS.has(statement))
|
|
1212
|
+
throw new Error(`Knex Error: unknown statement '${statement}'`);
|
|
1213
|
+
if (statement.startsWith('counter')) return this.clearCounters();
|
|
1214
|
+
if (statement === 'select') {
|
|
1215
|
+
statement = 'columns';
|
|
1216
|
+
}
|
|
1217
|
+
this._clearGrouping(statement);
|
|
1218
|
+
return this;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
// Insert & Update
|
|
1222
|
+
// ------
|
|
1223
|
+
|
|
1224
|
+
// Sets the values for an `insert` query.
|
|
1225
|
+
insert(values, returning, options) {
|
|
1226
|
+
this._method = 'insert';
|
|
1227
|
+
if (!isEmpty(returning)) this.returning(returning, options);
|
|
1228
|
+
this._single.insert = values;
|
|
1229
|
+
return this;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
// Sets the values for an `update`, allowing for both
|
|
1233
|
+
// `.update(key, value, [returning])` and `.update(obj, [returning])` syntaxes.
|
|
1234
|
+
update(values, returning, options) {
|
|
1235
|
+
let ret;
|
|
1236
|
+
const obj = this._single.update || {};
|
|
1237
|
+
this._method = 'update';
|
|
1238
|
+
if (isString(values)) {
|
|
1239
|
+
if (isPlainObject(returning)) {
|
|
1240
|
+
obj[values] = JSON.stringify(returning);
|
|
1241
|
+
} else {
|
|
1242
|
+
obj[values] = returning;
|
|
1243
|
+
}
|
|
1244
|
+
if (arguments.length > 2) {
|
|
1245
|
+
ret = arguments[2];
|
|
1246
|
+
}
|
|
1247
|
+
} else {
|
|
1248
|
+
const keys = Object.keys(values);
|
|
1249
|
+
if (this._single.update) {
|
|
1250
|
+
this.client.logger.warn('Update called multiple times with objects.');
|
|
1251
|
+
}
|
|
1252
|
+
let i = -1;
|
|
1253
|
+
while (++i < keys.length) {
|
|
1254
|
+
obj[keys[i]] = values[keys[i]];
|
|
1255
|
+
}
|
|
1256
|
+
ret = arguments[1];
|
|
1257
|
+
}
|
|
1258
|
+
if (!isEmpty(ret)) this.returning(ret, options);
|
|
1259
|
+
this._single.update = obj;
|
|
1260
|
+
return this;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
// Sets the returning value for the query.
|
|
1264
|
+
returning(returning, options) {
|
|
1265
|
+
this._single.returning = returning;
|
|
1266
|
+
this._single.options = options;
|
|
1267
|
+
return this;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
onConflict(columns) {
|
|
1271
|
+
if (typeof columns === 'string') {
|
|
1272
|
+
columns = [columns];
|
|
1273
|
+
}
|
|
1274
|
+
return new OnConflictBuilder(this, columns || true);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
// Delete
|
|
1278
|
+
// ------
|
|
1279
|
+
|
|
1280
|
+
// Executes a delete statement on the query;
|
|
1281
|
+
delete(ret, options) {
|
|
1282
|
+
this._method = 'del';
|
|
1283
|
+
if (!isEmpty(ret)) this.returning(ret, options);
|
|
1284
|
+
return this;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
// Truncates a table, ends the query chain.
|
|
1288
|
+
truncate(tableName) {
|
|
1289
|
+
this._method = 'truncate';
|
|
1290
|
+
if (tableName) {
|
|
1291
|
+
this._single.table = tableName;
|
|
1292
|
+
}
|
|
1293
|
+
return this;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
// Retrieves columns for the table specified by `knex(tableName)`
|
|
1297
|
+
columnInfo(column) {
|
|
1298
|
+
this._method = 'columnInfo';
|
|
1299
|
+
this._single.columnInfo = column;
|
|
1300
|
+
return this;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
// Set a lock for update constraint.
|
|
1304
|
+
forUpdate(...tables) {
|
|
1305
|
+
this._single.lock = lockMode.forUpdate;
|
|
1306
|
+
if (tables.length === 1 && Array.isArray(tables[0])) {
|
|
1307
|
+
this._single.lockTables = tables[0];
|
|
1308
|
+
} else {
|
|
1309
|
+
this._single.lockTables = tables;
|
|
1310
|
+
}
|
|
1311
|
+
return this;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
// Set a lock for share constraint.
|
|
1315
|
+
forShare(...tables) {
|
|
1316
|
+
this._single.lock = lockMode.forShare;
|
|
1317
|
+
this._single.lockTables = tables;
|
|
1318
|
+
return this;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
// Set a lock for no key update constraint.
|
|
1322
|
+
forNoKeyUpdate(...tables) {
|
|
1323
|
+
this._single.lock = lockMode.forNoKeyUpdate;
|
|
1324
|
+
this._single.lockTables = tables;
|
|
1325
|
+
return this;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
// Set a lock for key share constraint.
|
|
1329
|
+
forKeyShare(...tables) {
|
|
1330
|
+
this._single.lock = lockMode.forKeyShare;
|
|
1331
|
+
this._single.lockTables = tables;
|
|
1332
|
+
return this;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
// Skips locked rows when using a lock constraint.
|
|
1336
|
+
skipLocked() {
|
|
1337
|
+
if (!this._isSelectQuery()) {
|
|
1338
|
+
throw new Error(`Cannot chain .skipLocked() on "${this._method}" query!`);
|
|
1339
|
+
}
|
|
1340
|
+
if (!this._hasLockMode()) {
|
|
1341
|
+
throw new Error(
|
|
1342
|
+
'.skipLocked() can only be used after a call to .forShare() or .forUpdate()!'
|
|
1343
|
+
);
|
|
1344
|
+
}
|
|
1345
|
+
if (this._single.waitMode === waitMode.noWait) {
|
|
1346
|
+
throw new Error('.skipLocked() cannot be used together with .noWait()!');
|
|
1347
|
+
}
|
|
1348
|
+
this._single.waitMode = waitMode.skipLocked;
|
|
1349
|
+
return this;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
// Causes error when acessing a locked row instead of waiting for it to be released.
|
|
1353
|
+
noWait() {
|
|
1354
|
+
if (!this._isSelectQuery()) {
|
|
1355
|
+
throw new Error(`Cannot chain .noWait() on "${this._method}" query!`);
|
|
1356
|
+
}
|
|
1357
|
+
if (!this._hasLockMode()) {
|
|
1358
|
+
throw new Error(
|
|
1359
|
+
'.noWait() can only be used after a call to .forShare() or .forUpdate()!'
|
|
1360
|
+
);
|
|
1361
|
+
}
|
|
1362
|
+
if (this._single.waitMode === waitMode.skipLocked) {
|
|
1363
|
+
throw new Error('.noWait() cannot be used together with .skipLocked()!');
|
|
1364
|
+
}
|
|
1365
|
+
this._single.waitMode = waitMode.noWait;
|
|
1366
|
+
return this;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
// Takes a JS object of methods to call and calls them
|
|
1370
|
+
fromJS(obj) {
|
|
1371
|
+
each(obj, (val, key) => {
|
|
1372
|
+
if (typeof this[key] !== 'function') {
|
|
1373
|
+
this.client.logger.warn(`Knex Error: unknown key ${key}`);
|
|
1374
|
+
}
|
|
1375
|
+
if (Array.isArray(val)) {
|
|
1376
|
+
this[key].apply(this, val);
|
|
1377
|
+
} else {
|
|
1378
|
+
this[key](val);
|
|
1379
|
+
}
|
|
1380
|
+
});
|
|
1381
|
+
return this;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
fromRaw(sql, bindings) {
|
|
1385
|
+
const raw = sql.isRawInstance ? sql : this.client.raw(sql, bindings);
|
|
1386
|
+
return this.from(raw);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
// Passes query to provided callback function, useful for e.g. composing
|
|
1390
|
+
// domain-specific helpers
|
|
1391
|
+
modify(callback) {
|
|
1392
|
+
callback.apply(this, [this].concat(tail(arguments)));
|
|
1393
|
+
return this;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
upsert(values, returning, options) {
|
|
1397
|
+
throw new Error(
|
|
1398
|
+
`Upsert is not yet supported for dialect ${this.client.dialect}`
|
|
1399
|
+
);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
// JSON support functions
|
|
1403
|
+
_json(nameFunction, params) {
|
|
1404
|
+
this._statements.push({
|
|
1405
|
+
grouping: 'columns',
|
|
1406
|
+
type: 'json',
|
|
1407
|
+
method: nameFunction,
|
|
1408
|
+
params: params,
|
|
1409
|
+
});
|
|
1410
|
+
return this;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
jsonExtract() {
|
|
1414
|
+
const column = arguments[0];
|
|
1415
|
+
let path;
|
|
1416
|
+
let alias;
|
|
1417
|
+
let singleValue = true;
|
|
1418
|
+
|
|
1419
|
+
// We use arguments to have the signatures :
|
|
1420
|
+
// - column (string or array)
|
|
1421
|
+
// - column + path
|
|
1422
|
+
// - column + path + alias
|
|
1423
|
+
// - column + path + alias + singleValue
|
|
1424
|
+
// - column array + singleValue
|
|
1425
|
+
if (arguments.length >= 2) {
|
|
1426
|
+
path = arguments[1];
|
|
1427
|
+
}
|
|
1428
|
+
if (arguments.length >= 3) {
|
|
1429
|
+
alias = arguments[2];
|
|
1430
|
+
}
|
|
1431
|
+
if (arguments.length === 4) {
|
|
1432
|
+
singleValue = arguments[3];
|
|
1433
|
+
}
|
|
1434
|
+
if (
|
|
1435
|
+
arguments.length === 2 &&
|
|
1436
|
+
Array.isArray(arguments[0]) &&
|
|
1437
|
+
isBoolean(arguments[1])
|
|
1438
|
+
) {
|
|
1439
|
+
singleValue = arguments[1];
|
|
1440
|
+
}
|
|
1441
|
+
return this._json('jsonExtract', {
|
|
1442
|
+
column: column,
|
|
1443
|
+
path: path,
|
|
1444
|
+
alias: alias,
|
|
1445
|
+
singleValue, // boolean used only in MSSQL to use function for extract value instead of object/array.
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
jsonSet(column, path, value, alias) {
|
|
1450
|
+
return this._json('jsonSet', {
|
|
1451
|
+
column: column,
|
|
1452
|
+
path: path,
|
|
1453
|
+
value: value,
|
|
1454
|
+
alias: alias,
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
jsonInsert(column, path, value, alias) {
|
|
1459
|
+
return this._json('jsonInsert', {
|
|
1460
|
+
column: column,
|
|
1461
|
+
path: path,
|
|
1462
|
+
value: value,
|
|
1463
|
+
alias: alias,
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
jsonRemove(column, path, alias) {
|
|
1468
|
+
return this._json('jsonRemove', {
|
|
1469
|
+
column: column,
|
|
1470
|
+
path: path,
|
|
1471
|
+
alias: alias,
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
// Wheres for JSON
|
|
1476
|
+
_isJsonObject(jsonValue) {
|
|
1477
|
+
return isObject(jsonValue) && !(jsonValue instanceof Builder);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
_whereJsonWrappedValue(type, column, value) {
|
|
1481
|
+
const whereJsonClause = {
|
|
1482
|
+
grouping: 'where',
|
|
1483
|
+
type: type,
|
|
1484
|
+
column,
|
|
1485
|
+
value: value,
|
|
1486
|
+
not: this._not(),
|
|
1487
|
+
bool: this._bool(),
|
|
1488
|
+
asColumn: this._asColumnFlag,
|
|
1489
|
+
};
|
|
1490
|
+
if (arguments[3]) {
|
|
1491
|
+
whereJsonClause.operator = arguments[3];
|
|
1492
|
+
}
|
|
1493
|
+
if (arguments[4]) {
|
|
1494
|
+
whereJsonClause.jsonPath = arguments[4];
|
|
1495
|
+
}
|
|
1496
|
+
this._statements.push(whereJsonClause);
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
whereJsonObject(column, value) {
|
|
1500
|
+
this._whereJsonWrappedValue('whereJsonObject', column, value);
|
|
1501
|
+
return this;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
orWhereJsonObject(column, value) {
|
|
1505
|
+
return this._bool('or').whereJsonObject(column, value);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
whereNotJsonObject(column, value) {
|
|
1509
|
+
return this._not(true).whereJsonObject(column, value);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
orWhereNotJsonObject(column, value) {
|
|
1513
|
+
return this._bool('or').whereNotJsonObject(column, value);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
whereJsonPath(column, path, operator, value) {
|
|
1517
|
+
this._whereJsonWrappedValue('whereJsonPath', column, value, operator, path);
|
|
1518
|
+
return this;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
orWhereJsonPath(column, path, operator, value) {
|
|
1522
|
+
return this._bool('or').whereJsonPath(column, path, operator, value);
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
// Json superset wheres
|
|
1526
|
+
whereJsonSupersetOf(column, value) {
|
|
1527
|
+
this._whereJsonWrappedValue('whereJsonSupersetOf', column, value);
|
|
1528
|
+
return this;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
whereJsonNotSupersetOf(column, value) {
|
|
1532
|
+
return this._not(true).whereJsonSupersetOf(column, value);
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
orWhereJsonSupersetOf(column, value) {
|
|
1536
|
+
return this._bool('or').whereJsonSupersetOf(column, value);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
orWhereJsonNotSupersetOf(column, value) {
|
|
1540
|
+
return this._bool('or').whereJsonNotSupersetOf(column, value);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
// Json subset wheres
|
|
1544
|
+
whereJsonSubsetOf(column, value) {
|
|
1545
|
+
this._whereJsonWrappedValue('whereJsonSubsetOf', column, value);
|
|
1546
|
+
return this;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
whereJsonNotSubsetOf(column, value) {
|
|
1550
|
+
return this._not(true).whereJsonSubsetOf(column, value);
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
orWhereJsonSubsetOf(column, value) {
|
|
1554
|
+
return this._bool('or').whereJsonSubsetOf(column, value);
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
orWhereJsonNotSubsetOf(column, value) {
|
|
1558
|
+
return this._bool('or').whereJsonNotSubsetOf(column, value);
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
whereJsonHasNone(column, values) {
|
|
1562
|
+
this._not(true).whereJsonHasAll(column, values);
|
|
1563
|
+
return this;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
// end of wheres for JSON
|
|
1567
|
+
|
|
1568
|
+
_analytic(alias, second, third) {
|
|
1569
|
+
let analytic;
|
|
1570
|
+
const { schema } = this._single;
|
|
1571
|
+
const method = this._analyticMethod();
|
|
1572
|
+
alias = typeof alias === 'string' ? alias : null;
|
|
1573
|
+
|
|
1574
|
+
assert(
|
|
1575
|
+
typeof second === 'function' ||
|
|
1576
|
+
second.isRawInstance ||
|
|
1577
|
+
Array.isArray(second) ||
|
|
1578
|
+
typeof second === 'string' ||
|
|
1579
|
+
typeof second === 'object',
|
|
1580
|
+
`The second argument to an analytic function must be either a function, a raw,
|
|
1581
|
+
an array of string or object, an object or a single string.`
|
|
1582
|
+
);
|
|
1583
|
+
|
|
1584
|
+
if (third) {
|
|
1585
|
+
assert(
|
|
1586
|
+
Array.isArray(third) ||
|
|
1587
|
+
typeof third === 'string' ||
|
|
1588
|
+
typeof third === 'object',
|
|
1589
|
+
'The third argument to an analytic function must be either a string, an array of string or object or an object.'
|
|
1590
|
+
);
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
if (isFunction(second)) {
|
|
1594
|
+
analytic = new Analytic(method, schema, alias);
|
|
1595
|
+
second.call(analytic, analytic);
|
|
1596
|
+
} else if (second.isRawInstance) {
|
|
1597
|
+
const raw = second;
|
|
1598
|
+
analytic = {
|
|
1599
|
+
grouping: 'columns',
|
|
1600
|
+
type: 'analytic',
|
|
1601
|
+
method: method,
|
|
1602
|
+
raw: raw,
|
|
1603
|
+
alias: alias,
|
|
1604
|
+
};
|
|
1605
|
+
} else {
|
|
1606
|
+
const order = !Array.isArray(second) ? [second] : second;
|
|
1607
|
+
let partitions = third || [];
|
|
1608
|
+
partitions = !Array.isArray(partitions) ? [partitions] : partitions;
|
|
1609
|
+
analytic = {
|
|
1610
|
+
grouping: 'columns',
|
|
1611
|
+
type: 'analytic',
|
|
1612
|
+
method: method,
|
|
1613
|
+
order: order,
|
|
1614
|
+
alias: alias,
|
|
1615
|
+
partitions: partitions,
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
this._statements.push(analytic);
|
|
1619
|
+
return this;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
rank(...args) {
|
|
1623
|
+
return this._analyticMethod('rank')._analytic(...args);
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
denseRank(...args) {
|
|
1627
|
+
return this._analyticMethod('dense_rank')._analytic(...args);
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
rowNumber(...args) {
|
|
1631
|
+
return this._analyticMethod('row_number')._analytic(...args);
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
// ----------------------------------------------------------------------
|
|
1635
|
+
|
|
1636
|
+
// Helper for the incrementing/decrementing queries.
|
|
1637
|
+
_counter(column, amount) {
|
|
1638
|
+
amount = parseFloat(amount);
|
|
1639
|
+
|
|
1640
|
+
this._method = 'update';
|
|
1641
|
+
|
|
1642
|
+
this._single.counter = this._single.counter || {};
|
|
1643
|
+
|
|
1644
|
+
this._single.counter[column] = amount;
|
|
1645
|
+
|
|
1646
|
+
return this;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
// Helper to get or set the "boolFlag" value.
|
|
1650
|
+
_bool(val) {
|
|
1651
|
+
if (arguments.length === 1) {
|
|
1652
|
+
this._boolFlag = val;
|
|
1653
|
+
return this;
|
|
1654
|
+
}
|
|
1655
|
+
const ret = this._boolFlag;
|
|
1656
|
+
this._boolFlag = 'and';
|
|
1657
|
+
return ret;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
// Helper to get or set the "notFlag" value.
|
|
1661
|
+
_not(val) {
|
|
1662
|
+
if (arguments.length === 1) {
|
|
1663
|
+
this._notFlag = val;
|
|
1664
|
+
return this;
|
|
1665
|
+
}
|
|
1666
|
+
const ret = this._notFlag;
|
|
1667
|
+
this._notFlag = false;
|
|
1668
|
+
return ret;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
// Helper to get or set the "joinFlag" value.
|
|
1672
|
+
_joinType(val) {
|
|
1673
|
+
if (arguments.length === 1) {
|
|
1674
|
+
this._joinFlag = val;
|
|
1675
|
+
return this;
|
|
1676
|
+
}
|
|
1677
|
+
const ret = this._joinFlag || 'inner';
|
|
1678
|
+
this._joinFlag = 'inner';
|
|
1679
|
+
return ret;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
_analyticMethod(val) {
|
|
1683
|
+
if (arguments.length === 1) {
|
|
1684
|
+
this._analyticFlag = val;
|
|
1685
|
+
return this;
|
|
1686
|
+
}
|
|
1687
|
+
return this._analyticFlag || 'row_number';
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
// Helper for compiling any aggregate queries.
|
|
1691
|
+
_aggregate(method, column, options = {}) {
|
|
1692
|
+
this._statements.push({
|
|
1693
|
+
grouping: 'columns',
|
|
1694
|
+
type: column.isRawInstance ? 'aggregateRaw' : 'aggregate',
|
|
1695
|
+
method,
|
|
1696
|
+
value: column,
|
|
1697
|
+
aggregateDistinct: options.distinct || false,
|
|
1698
|
+
alias: options.as,
|
|
1699
|
+
});
|
|
1700
|
+
return this;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
// Helper function for clearing or reseting a grouping type from the builder
|
|
1704
|
+
_clearGrouping(grouping) {
|
|
1705
|
+
if (grouping in this._single) {
|
|
1706
|
+
this._single[grouping] = undefined;
|
|
1707
|
+
} else {
|
|
1708
|
+
this._statements = reject(this._statements, { grouping });
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
// Helper function that checks if the builder will emit a select query
|
|
1713
|
+
_isSelectQuery() {
|
|
1714
|
+
return SELECT_COMMANDS.has(this._method);
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
// Helper function that checks if the query has a lock mode set
|
|
1718
|
+
_hasLockMode() {
|
|
1719
|
+
return LOCK_MODES.has(this._single.lock);
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
Builder.prototype.select = Builder.prototype.columns;
|
|
1724
|
+
Builder.prototype.column = Builder.prototype.columns;
|
|
1725
|
+
Builder.prototype.andWhereNot = Builder.prototype.whereNot;
|
|
1726
|
+
Builder.prototype.andWhereNotColumn = Builder.prototype.whereNotColumn;
|
|
1727
|
+
Builder.prototype.andWhere = Builder.prototype.where;
|
|
1728
|
+
Builder.prototype.andWhereColumn = Builder.prototype.whereColumn;
|
|
1729
|
+
Builder.prototype.andWhereRaw = Builder.prototype.whereRaw;
|
|
1730
|
+
Builder.prototype.andWhereBetween = Builder.prototype.whereBetween;
|
|
1731
|
+
Builder.prototype.andWhereNotBetween = Builder.prototype.whereNotBetween;
|
|
1732
|
+
Builder.prototype.andWhereJsonObject = Builder.prototype.whereJsonObject;
|
|
1733
|
+
Builder.prototype.andWhereNotJsonObject = Builder.prototype.whereNotJsonObject;
|
|
1734
|
+
Builder.prototype.andWhereJsonPath = Builder.prototype.whereJsonPath;
|
|
1735
|
+
Builder.prototype.andWhereLike = Builder.prototype.whereLike;
|
|
1736
|
+
Builder.prototype.andWhereILike = Builder.prototype.whereILike;
|
|
1737
|
+
Builder.prototype.andHaving = Builder.prototype.having;
|
|
1738
|
+
Builder.prototype.andHavingIn = Builder.prototype.havingIn;
|
|
1739
|
+
Builder.prototype.andHavingNotIn = Builder.prototype.havingNotIn;
|
|
1740
|
+
Builder.prototype.andHavingNull = Builder.prototype.havingNull;
|
|
1741
|
+
Builder.prototype.andHavingNotNull = Builder.prototype.havingNotNull;
|
|
1742
|
+
Builder.prototype.andHavingExists = Builder.prototype.havingExists;
|
|
1743
|
+
Builder.prototype.andHavingNotExists = Builder.prototype.havingNotExists;
|
|
1744
|
+
Builder.prototype.andHavingBetween = Builder.prototype.havingBetween;
|
|
1745
|
+
Builder.prototype.andHavingNotBetween = Builder.prototype.havingNotBetween;
|
|
1746
|
+
Builder.prototype.from = Builder.prototype.table;
|
|
1747
|
+
Builder.prototype.into = Builder.prototype.table;
|
|
1748
|
+
Builder.prototype.del = Builder.prototype.delete;
|
|
1749
|
+
|
|
1750
|
+
// Attach all of the top level promise methods that should be chainable.
|
|
1751
|
+
augmentWithBuilderInterface(Builder);
|
|
1752
|
+
addQueryContext(Builder);
|
|
1753
|
+
|
|
1754
|
+
Builder.extend = (methodName, fn) => {
|
|
1755
|
+
if (Object.prototype.hasOwnProperty.call(Builder.prototype, methodName)) {
|
|
1756
|
+
throw new Error(
|
|
1757
|
+
`Can't extend QueryBuilder with existing method ('${methodName}').`
|
|
1758
|
+
);
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
assign(Builder.prototype, { [methodName]: fn });
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1764
|
+
// Sub-builder for onConflict clauses
|
|
1765
|
+
class OnConflictBuilder {
|
|
1766
|
+
constructor(builder, columns) {
|
|
1767
|
+
this.builder = builder;
|
|
1768
|
+
this._columns = columns;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
// Sets insert query to ignore conflicts
|
|
1772
|
+
ignore() {
|
|
1773
|
+
this.builder._single.onConflict = this._columns;
|
|
1774
|
+
this.builder._single.ignore = true;
|
|
1775
|
+
return this.builder;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
// Sets insert query to update on conflict
|
|
1779
|
+
merge(updates) {
|
|
1780
|
+
this.builder._single.onConflict = this._columns;
|
|
1781
|
+
this.builder._single.merge = { updates };
|
|
1782
|
+
return this.builder;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
// Prevent
|
|
1786
|
+
then() {
|
|
1787
|
+
throw new Error(
|
|
1788
|
+
'Incomplete onConflict clause. .onConflict() must be directly followed by either .merge() or .ignore()'
|
|
1789
|
+
);
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
module.exports = Builder;
|