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
|
@@ -1,1259 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostgresDriver = void 0;
|
|
4
|
-
const ConnectionIsNotSetError_1 = require("../../error/ConnectionIsNotSetError");
|
|
5
|
-
const DriverPackageNotInstalledError_1 = require("../../error/DriverPackageNotInstalledError");
|
|
6
|
-
const PlatformTools_1 = require("../../platform/PlatformTools");
|
|
7
|
-
const RdbmsSchemaBuilder_1 = require("../../schema-builder/RdbmsSchemaBuilder");
|
|
8
|
-
const ApplyValueTransformers_1 = require("../../util/ApplyValueTransformers");
|
|
9
|
-
const DateUtils_1 = require("../../util/DateUtils");
|
|
10
|
-
const OrmUtils_1 = require("../../util/OrmUtils");
|
|
11
|
-
const VersionUtils_1 = require("../../util/VersionUtils");
|
|
12
|
-
const PostgresQueryRunner_1 = require("./PostgresQueryRunner");
|
|
13
|
-
const DriverUtils_1 = require("../DriverUtils");
|
|
14
|
-
const error_1 = require("../../error");
|
|
15
|
-
const InstanceChecker_1 = require("../../util/InstanceChecker");
|
|
16
|
-
/**
|
|
17
|
-
* Organizes communication with PostgreSQL DBMS.
|
|
18
|
-
*/
|
|
19
|
-
class PostgresDriver {
|
|
20
|
-
// -------------------------------------------------------------------------
|
|
21
|
-
// Constructor
|
|
22
|
-
// -------------------------------------------------------------------------
|
|
23
|
-
constructor(connection) {
|
|
24
|
-
/**
|
|
25
|
-
* Pool for slave databases.
|
|
26
|
-
* Used in replication.
|
|
27
|
-
*/
|
|
28
|
-
this.slaves = [];
|
|
29
|
-
/**
|
|
30
|
-
* We store all created query runners because we need to release them.
|
|
31
|
-
*/
|
|
32
|
-
this.connectedQueryRunners = [];
|
|
33
|
-
/**
|
|
34
|
-
* Indicates if replication is enabled.
|
|
35
|
-
*/
|
|
36
|
-
this.isReplicated = false;
|
|
37
|
-
/**
|
|
38
|
-
* Indicates if tree tables are supported by this driver.
|
|
39
|
-
*/
|
|
40
|
-
this.treeSupport = true;
|
|
41
|
-
/**
|
|
42
|
-
* Represent transaction support by this driver
|
|
43
|
-
*/
|
|
44
|
-
this.transactionSupport = "nested";
|
|
45
|
-
/**
|
|
46
|
-
* Gets list of supported column data types by a driver.
|
|
47
|
-
*
|
|
48
|
-
* @see https://www.tutorialspoint.com/postgresql/postgresql_data_types.htm
|
|
49
|
-
* @see https://www.postgresql.org/docs/9.2/static/datatype.html
|
|
50
|
-
*/
|
|
51
|
-
this.supportedDataTypes = [
|
|
52
|
-
"int",
|
|
53
|
-
"int2",
|
|
54
|
-
"int4",
|
|
55
|
-
"int8",
|
|
56
|
-
"smallint",
|
|
57
|
-
"integer",
|
|
58
|
-
"bigint",
|
|
59
|
-
"decimal",
|
|
60
|
-
"numeric",
|
|
61
|
-
"real",
|
|
62
|
-
"float",
|
|
63
|
-
"float4",
|
|
64
|
-
"float8",
|
|
65
|
-
"double precision",
|
|
66
|
-
"money",
|
|
67
|
-
"character varying",
|
|
68
|
-
"varchar",
|
|
69
|
-
"character",
|
|
70
|
-
"char",
|
|
71
|
-
"text",
|
|
72
|
-
"citext",
|
|
73
|
-
"hstore",
|
|
74
|
-
"bytea",
|
|
75
|
-
"bit",
|
|
76
|
-
"varbit",
|
|
77
|
-
"bit varying",
|
|
78
|
-
"timetz",
|
|
79
|
-
"timestamptz",
|
|
80
|
-
"timestamp",
|
|
81
|
-
"timestamp without time zone",
|
|
82
|
-
"timestamp with time zone",
|
|
83
|
-
"date",
|
|
84
|
-
"time",
|
|
85
|
-
"time without time zone",
|
|
86
|
-
"time with time zone",
|
|
87
|
-
"interval",
|
|
88
|
-
"bool",
|
|
89
|
-
"boolean",
|
|
90
|
-
"enum",
|
|
91
|
-
"point",
|
|
92
|
-
"line",
|
|
93
|
-
"lseg",
|
|
94
|
-
"box",
|
|
95
|
-
"path",
|
|
96
|
-
"polygon",
|
|
97
|
-
"circle",
|
|
98
|
-
"cidr",
|
|
99
|
-
"inet",
|
|
100
|
-
"macaddr",
|
|
101
|
-
"macaddr8",
|
|
102
|
-
"tsvector",
|
|
103
|
-
"tsquery",
|
|
104
|
-
"uuid",
|
|
105
|
-
"xml",
|
|
106
|
-
"json",
|
|
107
|
-
"jsonb",
|
|
108
|
-
"int4range",
|
|
109
|
-
"int8range",
|
|
110
|
-
"numrange",
|
|
111
|
-
"tsrange",
|
|
112
|
-
"tstzrange",
|
|
113
|
-
"daterange",
|
|
114
|
-
"int4multirange",
|
|
115
|
-
"int8multirange",
|
|
116
|
-
"nummultirange",
|
|
117
|
-
"tsmultirange",
|
|
118
|
-
"tstzmultirange",
|
|
119
|
-
"datemultirange",
|
|
120
|
-
"geometry",
|
|
121
|
-
"geography",
|
|
122
|
-
"cube",
|
|
123
|
-
"ltree",
|
|
124
|
-
];
|
|
125
|
-
/**
|
|
126
|
-
* Returns type of upsert supported by driver if any
|
|
127
|
-
*/
|
|
128
|
-
this.supportedUpsertTypes = ["on-conflict-do-update"];
|
|
129
|
-
/**
|
|
130
|
-
* Gets list of spatial column data types.
|
|
131
|
-
*/
|
|
132
|
-
this.spatialTypes = ["geometry", "geography"];
|
|
133
|
-
/**
|
|
134
|
-
* Gets list of column data types that support length by a driver.
|
|
135
|
-
*/
|
|
136
|
-
this.withLengthColumnTypes = [
|
|
137
|
-
"character varying",
|
|
138
|
-
"varchar",
|
|
139
|
-
"character",
|
|
140
|
-
"char",
|
|
141
|
-
"bit",
|
|
142
|
-
"varbit",
|
|
143
|
-
"bit varying",
|
|
144
|
-
];
|
|
145
|
-
/**
|
|
146
|
-
* Gets list of column data types that support precision by a driver.
|
|
147
|
-
*/
|
|
148
|
-
this.withPrecisionColumnTypes = [
|
|
149
|
-
"numeric",
|
|
150
|
-
"decimal",
|
|
151
|
-
"interval",
|
|
152
|
-
"time without time zone",
|
|
153
|
-
"time with time zone",
|
|
154
|
-
"timestamp without time zone",
|
|
155
|
-
"timestamp with time zone",
|
|
156
|
-
];
|
|
157
|
-
/**
|
|
158
|
-
* Gets list of column data types that support scale by a driver.
|
|
159
|
-
*/
|
|
160
|
-
this.withScaleColumnTypes = ["numeric", "decimal"];
|
|
161
|
-
/**
|
|
162
|
-
* Orm has special columns and we need to know what database column types should be for those types.
|
|
163
|
-
* Column types are driver dependant.
|
|
164
|
-
*/
|
|
165
|
-
this.mappedDataTypes = {
|
|
166
|
-
createDate: "timestamp",
|
|
167
|
-
createDateDefault: "now()",
|
|
168
|
-
updateDate: "timestamp",
|
|
169
|
-
updateDateDefault: "now()",
|
|
170
|
-
deleteDate: "timestamp",
|
|
171
|
-
deleteDateNullable: true,
|
|
172
|
-
version: "int4",
|
|
173
|
-
treeLevel: "int4",
|
|
174
|
-
migrationId: "int4",
|
|
175
|
-
migrationName: "varchar",
|
|
176
|
-
migrationTimestamp: "int8",
|
|
177
|
-
cacheId: "int4",
|
|
178
|
-
cacheIdentifier: "varchar",
|
|
179
|
-
cacheTime: "int8",
|
|
180
|
-
cacheDuration: "int4",
|
|
181
|
-
cacheQuery: "text",
|
|
182
|
-
cacheResult: "text",
|
|
183
|
-
metadataType: "varchar",
|
|
184
|
-
metadataDatabase: "varchar",
|
|
185
|
-
metadataSchema: "varchar",
|
|
186
|
-
metadataTable: "varchar",
|
|
187
|
-
metadataName: "varchar",
|
|
188
|
-
metadataValue: "text",
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* The prefix used for the parameters
|
|
192
|
-
*/
|
|
193
|
-
this.parametersPrefix = "$";
|
|
194
|
-
/**
|
|
195
|
-
* Default values of length, precision and scale depends on column data type.
|
|
196
|
-
* Used in the cases when length/precision/scale is not specified by user.
|
|
197
|
-
*/
|
|
198
|
-
this.dataTypeDefaults = {
|
|
199
|
-
character: { length: 1 },
|
|
200
|
-
bit: { length: 1 },
|
|
201
|
-
interval: { precision: 6 },
|
|
202
|
-
"time without time zone": { precision: 6 },
|
|
203
|
-
"time with time zone": { precision: 6 },
|
|
204
|
-
"timestamp without time zone": { precision: 6 },
|
|
205
|
-
"timestamp with time zone": { precision: 6 },
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* Max length allowed by Postgres for aliases.
|
|
209
|
-
* @see https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
|
|
210
|
-
*/
|
|
211
|
-
this.maxAliasLength = 63;
|
|
212
|
-
this.isGeneratedColumnsSupported = false;
|
|
213
|
-
this.cteCapabilities = {
|
|
214
|
-
enabled: true,
|
|
215
|
-
writable: true,
|
|
216
|
-
requiresRecursiveHint: true,
|
|
217
|
-
materializedHint: true,
|
|
218
|
-
};
|
|
219
|
-
if (!connection) {
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
this.connection = connection;
|
|
223
|
-
this.options = connection.options;
|
|
224
|
-
this.isReplicated = this.options.replication ? true : false;
|
|
225
|
-
if (this.options.useUTC) {
|
|
226
|
-
process.env.PGTZ = "UTC";
|
|
227
|
-
}
|
|
228
|
-
// load postgres package
|
|
229
|
-
this.loadDependencies();
|
|
230
|
-
this.database = DriverUtils_1.DriverUtils.buildDriverOptions(this.options.replication
|
|
231
|
-
? this.options.replication.master
|
|
232
|
-
: this.options).database;
|
|
233
|
-
this.schema = DriverUtils_1.DriverUtils.buildDriverOptions(this.options).schema;
|
|
234
|
-
// ObjectUtils.assign(this.options, DriverUtils.buildDriverOptions(connection.options)); // todo: do it better way
|
|
235
|
-
// validate options to make sure everything is set
|
|
236
|
-
// todo: revisit validation with replication in mind
|
|
237
|
-
// if (!this.options.host)
|
|
238
|
-
// throw new DriverOptionNotSetError("host");
|
|
239
|
-
// if (!this.options.username)
|
|
240
|
-
// throw new DriverOptionNotSetError("username");
|
|
241
|
-
// if (!this.options.database)
|
|
242
|
-
// throw new DriverOptionNotSetError("database");
|
|
243
|
-
}
|
|
244
|
-
// -------------------------------------------------------------------------
|
|
245
|
-
// Public Implemented Methods
|
|
246
|
-
// -------------------------------------------------------------------------
|
|
247
|
-
/**
|
|
248
|
-
* Performs connection to the database.
|
|
249
|
-
* Based on pooling options, it can either create connection immediately,
|
|
250
|
-
* either create a pool and create connection when needed.
|
|
251
|
-
*/
|
|
252
|
-
async connect() {
|
|
253
|
-
if (this.options.replication) {
|
|
254
|
-
this.slaves = await Promise.all(this.options.replication.slaves.map((slave) => {
|
|
255
|
-
return this.createPool(this.options, slave);
|
|
256
|
-
}));
|
|
257
|
-
this.master = await this.createPool(this.options, this.options.replication.master);
|
|
258
|
-
}
|
|
259
|
-
else {
|
|
260
|
-
this.master = await this.createPool(this.options, this.options);
|
|
261
|
-
}
|
|
262
|
-
const queryRunner = this.createQueryRunner("master");
|
|
263
|
-
this.version = await queryRunner.getVersion();
|
|
264
|
-
if (!this.database) {
|
|
265
|
-
this.database = await queryRunner.getCurrentDatabase();
|
|
266
|
-
}
|
|
267
|
-
if (!this.searchSchema) {
|
|
268
|
-
this.searchSchema = await queryRunner.getCurrentSchema();
|
|
269
|
-
}
|
|
270
|
-
await queryRunner.release();
|
|
271
|
-
if (!this.schema) {
|
|
272
|
-
this.schema = this.searchSchema;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Makes any action after connection (e.g. create extensions in Postgres driver).
|
|
277
|
-
*/
|
|
278
|
-
async afterConnect() {
|
|
279
|
-
const extensionsMetadata = await this.checkMetadataForExtensions();
|
|
280
|
-
const [connection, release] = await this.obtainMasterConnection();
|
|
281
|
-
const installExtensions = this.options.installExtensions === undefined ||
|
|
282
|
-
this.options.installExtensions;
|
|
283
|
-
if (installExtensions && extensionsMetadata.hasExtensions) {
|
|
284
|
-
await this.enableExtensions(extensionsMetadata, connection);
|
|
285
|
-
}
|
|
286
|
-
this.isGeneratedColumnsSupported = VersionUtils_1.VersionUtils.isGreaterOrEqual(this.version, "12.0");
|
|
287
|
-
await release();
|
|
288
|
-
}
|
|
289
|
-
async enableExtensions(extensionsMetadata, connection) {
|
|
290
|
-
const { logger } = this.connection;
|
|
291
|
-
const { hasUuidColumns, hasCitextColumns, hasHstoreColumns, hasCubeColumns, hasGeometryColumns, hasLtreeColumns, hasExclusionConstraints, } = extensionsMetadata;
|
|
292
|
-
if (hasUuidColumns)
|
|
293
|
-
try {
|
|
294
|
-
await this.executeQuery(connection, `CREATE EXTENSION IF NOT EXISTS "${this.options.uuidExtension || "uuid-ossp"}"`);
|
|
295
|
-
}
|
|
296
|
-
catch (_) {
|
|
297
|
-
logger.log("warn", `At least one of the entities has uuid column, but the '${this.options.uuidExtension || "uuid-ossp"}' extension cannot be installed automatically. Please install it manually using superuser rights, or select another uuid extension.`);
|
|
298
|
-
}
|
|
299
|
-
if (hasCitextColumns)
|
|
300
|
-
try {
|
|
301
|
-
await this.executeQuery(connection, `CREATE EXTENSION IF NOT EXISTS "citext"`);
|
|
302
|
-
}
|
|
303
|
-
catch (_) {
|
|
304
|
-
logger.log("warn", "At least one of the entities has citext column, but the 'citext' extension cannot be installed automatically. Please install it manually using superuser rights");
|
|
305
|
-
}
|
|
306
|
-
if (hasHstoreColumns)
|
|
307
|
-
try {
|
|
308
|
-
await this.executeQuery(connection, `CREATE EXTENSION IF NOT EXISTS "hstore"`);
|
|
309
|
-
}
|
|
310
|
-
catch (_) {
|
|
311
|
-
logger.log("warn", "At least one of the entities has hstore column, but the 'hstore' extension cannot be installed automatically. Please install it manually using superuser rights");
|
|
312
|
-
}
|
|
313
|
-
if (hasGeometryColumns)
|
|
314
|
-
try {
|
|
315
|
-
await this.executeQuery(connection, `CREATE EXTENSION IF NOT EXISTS "postgis"`);
|
|
316
|
-
}
|
|
317
|
-
catch (_) {
|
|
318
|
-
logger.log("warn", "At least one of the entities has a geometry column, but the 'postgis' extension cannot be installed automatically. Please install it manually using superuser rights");
|
|
319
|
-
}
|
|
320
|
-
if (hasCubeColumns)
|
|
321
|
-
try {
|
|
322
|
-
await this.executeQuery(connection, `CREATE EXTENSION IF NOT EXISTS "cube"`);
|
|
323
|
-
}
|
|
324
|
-
catch (_) {
|
|
325
|
-
logger.log("warn", "At least one of the entities has a cube column, but the 'cube' extension cannot be installed automatically. Please install it manually using superuser rights");
|
|
326
|
-
}
|
|
327
|
-
if (hasLtreeColumns)
|
|
328
|
-
try {
|
|
329
|
-
await this.executeQuery(connection, `CREATE EXTENSION IF NOT EXISTS "ltree"`);
|
|
330
|
-
}
|
|
331
|
-
catch (_) {
|
|
332
|
-
logger.log("warn", "At least one of the entities has a ltree column, but the 'ltree' extension cannot be installed automatically. Please install it manually using superuser rights");
|
|
333
|
-
}
|
|
334
|
-
if (hasExclusionConstraints)
|
|
335
|
-
try {
|
|
336
|
-
// The btree_gist extension provides operator support in PostgreSQL exclusion constraints
|
|
337
|
-
await this.executeQuery(connection, `CREATE EXTENSION IF NOT EXISTS "btree_gist"`);
|
|
338
|
-
}
|
|
339
|
-
catch (_) {
|
|
340
|
-
logger.log("warn", "At least one of the entities has an exclusion constraint, but the 'btree_gist' extension cannot be installed automatically. Please install it manually using superuser rights");
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
async checkMetadataForExtensions() {
|
|
344
|
-
const hasUuidColumns = this.connection.entityMetadatas.some((metadata) => {
|
|
345
|
-
return (metadata.generatedColumns.filter((column) => column.generationStrategy === "uuid").length > 0);
|
|
346
|
-
});
|
|
347
|
-
const hasCitextColumns = this.connection.entityMetadatas.some((metadata) => {
|
|
348
|
-
return (metadata.columns.filter((column) => column.type === "citext").length > 0);
|
|
349
|
-
});
|
|
350
|
-
const hasHstoreColumns = this.connection.entityMetadatas.some((metadata) => {
|
|
351
|
-
return (metadata.columns.filter((column) => column.type === "hstore").length > 0);
|
|
352
|
-
});
|
|
353
|
-
const hasCubeColumns = this.connection.entityMetadatas.some((metadata) => {
|
|
354
|
-
return (metadata.columns.filter((column) => column.type === "cube")
|
|
355
|
-
.length > 0);
|
|
356
|
-
});
|
|
357
|
-
const hasGeometryColumns = this.connection.entityMetadatas.some((metadata) => {
|
|
358
|
-
return (metadata.columns.filter((column) => this.spatialTypes.indexOf(column.type) >= 0).length > 0);
|
|
359
|
-
});
|
|
360
|
-
const hasLtreeColumns = this.connection.entityMetadatas.some((metadata) => {
|
|
361
|
-
return (metadata.columns.filter((column) => column.type === "ltree")
|
|
362
|
-
.length > 0);
|
|
363
|
-
});
|
|
364
|
-
const hasExclusionConstraints = this.connection.entityMetadatas.some((metadata) => {
|
|
365
|
-
return metadata.exclusions.length > 0;
|
|
366
|
-
});
|
|
367
|
-
return {
|
|
368
|
-
hasUuidColumns,
|
|
369
|
-
hasCitextColumns,
|
|
370
|
-
hasHstoreColumns,
|
|
371
|
-
hasCubeColumns,
|
|
372
|
-
hasGeometryColumns,
|
|
373
|
-
hasLtreeColumns,
|
|
374
|
-
hasExclusionConstraints,
|
|
375
|
-
hasExtensions: hasUuidColumns ||
|
|
376
|
-
hasCitextColumns ||
|
|
377
|
-
hasHstoreColumns ||
|
|
378
|
-
hasGeometryColumns ||
|
|
379
|
-
hasCubeColumns ||
|
|
380
|
-
hasLtreeColumns ||
|
|
381
|
-
hasExclusionConstraints,
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* Closes connection with database.
|
|
386
|
-
*/
|
|
387
|
-
async disconnect() {
|
|
388
|
-
if (!this.master)
|
|
389
|
-
return Promise.reject(new ConnectionIsNotSetError_1.ConnectionIsNotSetError("postgres"));
|
|
390
|
-
await this.closePool(this.master);
|
|
391
|
-
await Promise.all(this.slaves.map((slave) => this.closePool(slave)));
|
|
392
|
-
this.master = undefined;
|
|
393
|
-
this.slaves = [];
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Creates a schema builder used to build and sync a schema.
|
|
397
|
-
*/
|
|
398
|
-
createSchemaBuilder() {
|
|
399
|
-
return new RdbmsSchemaBuilder_1.RdbmsSchemaBuilder(this.connection);
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* Creates a query runner used to execute database queries.
|
|
403
|
-
*/
|
|
404
|
-
createQueryRunner(mode) {
|
|
405
|
-
return new PostgresQueryRunner_1.PostgresQueryRunner(this, mode);
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Prepares given value to a value to be persisted, based on its column type and metadata.
|
|
409
|
-
*/
|
|
410
|
-
preparePersistentValue(value, columnMetadata) {
|
|
411
|
-
if (columnMetadata.transformer)
|
|
412
|
-
value = ApplyValueTransformers_1.ApplyValueTransformers.transformTo(columnMetadata.transformer, value);
|
|
413
|
-
if (value === null || value === undefined)
|
|
414
|
-
return value;
|
|
415
|
-
if (columnMetadata.type === Boolean) {
|
|
416
|
-
return value === true ? 1 : 0;
|
|
417
|
-
}
|
|
418
|
-
else if (columnMetadata.type === "date") {
|
|
419
|
-
return DateUtils_1.DateUtils.mixedDateToDateString(value);
|
|
420
|
-
}
|
|
421
|
-
else if (columnMetadata.type === "time") {
|
|
422
|
-
return DateUtils_1.DateUtils.mixedDateToTimeString(value);
|
|
423
|
-
}
|
|
424
|
-
else if (columnMetadata.type === "datetime" ||
|
|
425
|
-
columnMetadata.type === Date ||
|
|
426
|
-
columnMetadata.type === "timestamp" ||
|
|
427
|
-
columnMetadata.type === "timestamp with time zone" ||
|
|
428
|
-
columnMetadata.type === "timestamp without time zone") {
|
|
429
|
-
return DateUtils_1.DateUtils.mixedDateToDate(value);
|
|
430
|
-
}
|
|
431
|
-
else if (["json", "jsonb", ...this.spatialTypes].indexOf(columnMetadata.type) >= 0) {
|
|
432
|
-
return JSON.stringify(value);
|
|
433
|
-
}
|
|
434
|
-
else if (columnMetadata.type === "hstore") {
|
|
435
|
-
if (typeof value === "string") {
|
|
436
|
-
return value;
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
// https://www.postgresql.org/docs/9.0/hstore.html
|
|
440
|
-
const quoteString = (value) => {
|
|
441
|
-
// If a string to be quoted is `null` or `undefined`, we return a literal unquoted NULL.
|
|
442
|
-
// This way, NULL values can be stored in the hstore object.
|
|
443
|
-
if (value === null || typeof value === "undefined") {
|
|
444
|
-
return "NULL";
|
|
445
|
-
}
|
|
446
|
-
// Convert non-null values to string since HStore only stores strings anyway.
|
|
447
|
-
// To include a double quote or a backslash in a key or value, escape it with a backslash.
|
|
448
|
-
return `"${`${value}`.replace(/(?=["\\])/g, "\\")}"`;
|
|
449
|
-
};
|
|
450
|
-
return Object.keys(value)
|
|
451
|
-
.map((key) => quoteString(key) + "=>" + quoteString(value[key]))
|
|
452
|
-
.join(",");
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
else if (columnMetadata.type === "simple-array") {
|
|
456
|
-
return DateUtils_1.DateUtils.simpleArrayToString(value);
|
|
457
|
-
}
|
|
458
|
-
else if (columnMetadata.type === "simple-json") {
|
|
459
|
-
return DateUtils_1.DateUtils.simpleJsonToString(value);
|
|
460
|
-
}
|
|
461
|
-
else if (columnMetadata.type === "cube") {
|
|
462
|
-
if (columnMetadata.isArray) {
|
|
463
|
-
return `{${value
|
|
464
|
-
.map((cube) => `"(${cube.join(",")})"`)
|
|
465
|
-
.join(",")}}`;
|
|
466
|
-
}
|
|
467
|
-
return `(${value.join(",")})`;
|
|
468
|
-
}
|
|
469
|
-
else if (columnMetadata.type === "ltree") {
|
|
470
|
-
return value
|
|
471
|
-
.split(".")
|
|
472
|
-
.filter(Boolean)
|
|
473
|
-
.join(".")
|
|
474
|
-
.replace(/[\s]+/g, "_");
|
|
475
|
-
}
|
|
476
|
-
else if ((columnMetadata.type === "enum" ||
|
|
477
|
-
columnMetadata.type === "simple-enum") &&
|
|
478
|
-
!columnMetadata.isArray) {
|
|
479
|
-
return "" + value;
|
|
480
|
-
}
|
|
481
|
-
return value;
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* Prepares given value to a value to be persisted, based on its column type or metadata.
|
|
485
|
-
*/
|
|
486
|
-
prepareHydratedValue(value, columnMetadata) {
|
|
487
|
-
if (value === null || value === undefined)
|
|
488
|
-
return columnMetadata.transformer
|
|
489
|
-
? ApplyValueTransformers_1.ApplyValueTransformers.transformFrom(columnMetadata.transformer, value)
|
|
490
|
-
: value;
|
|
491
|
-
if (columnMetadata.type === Boolean) {
|
|
492
|
-
value = value ? true : false;
|
|
493
|
-
}
|
|
494
|
-
else if (columnMetadata.type === "datetime" ||
|
|
495
|
-
columnMetadata.type === Date ||
|
|
496
|
-
columnMetadata.type === "timestamp" ||
|
|
497
|
-
columnMetadata.type === "timestamp with time zone" ||
|
|
498
|
-
columnMetadata.type === "timestamp without time zone") {
|
|
499
|
-
value = DateUtils_1.DateUtils.normalizeHydratedDate(value);
|
|
500
|
-
}
|
|
501
|
-
else if (columnMetadata.type === "date") {
|
|
502
|
-
value = DateUtils_1.DateUtils.mixedDateToDateString(value);
|
|
503
|
-
}
|
|
504
|
-
else if (columnMetadata.type === "time") {
|
|
505
|
-
value = DateUtils_1.DateUtils.mixedTimeToString(value);
|
|
506
|
-
}
|
|
507
|
-
else if (columnMetadata.type === "hstore") {
|
|
508
|
-
if (columnMetadata.hstoreType === "object") {
|
|
509
|
-
const unescapeString = (str) => str.replace(/\\./g, (m) => m[1]);
|
|
510
|
-
const regexp = /"([^"\\]*(?:\\.[^"\\]*)*)"=>(?:(NULL)|"([^"\\]*(?:\\.[^"\\]*)*)")(?:,|$)/g;
|
|
511
|
-
const object = {};
|
|
512
|
-
`${value}`.replace(regexp, (_, key, nullValue, stringValue) => {
|
|
513
|
-
object[unescapeString(key)] = nullValue
|
|
514
|
-
? null
|
|
515
|
-
: unescapeString(stringValue);
|
|
516
|
-
return "";
|
|
517
|
-
});
|
|
518
|
-
value = object;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
else if (columnMetadata.type === "simple-array") {
|
|
522
|
-
value = DateUtils_1.DateUtils.stringToSimpleArray(value);
|
|
523
|
-
}
|
|
524
|
-
else if (columnMetadata.type === "simple-json") {
|
|
525
|
-
value = DateUtils_1.DateUtils.stringToSimpleJson(value);
|
|
526
|
-
}
|
|
527
|
-
else if (columnMetadata.type === "cube") {
|
|
528
|
-
value = value.replace(/[()\s]+/g, ""); // remove whitespace
|
|
529
|
-
if (columnMetadata.isArray) {
|
|
530
|
-
/**
|
|
531
|
-
* Strips these groups from `{"1,2,3","",NULL}`:
|
|
532
|
-
* 1. ["1,2,3", undefined] <- cube of arity 3
|
|
533
|
-
* 2. ["", undefined] <- cube of arity 0
|
|
534
|
-
* 3. [undefined, "NULL"] <- NULL
|
|
535
|
-
*/
|
|
536
|
-
const regexp = /(?:"((?:[\d\s.,])*)")|(?:(NULL))/g;
|
|
537
|
-
const unparsedArrayString = value;
|
|
538
|
-
value = [];
|
|
539
|
-
let cube = null;
|
|
540
|
-
// Iterate through all regexp matches for cubes/null in array
|
|
541
|
-
while ((cube = regexp.exec(unparsedArrayString)) !== null) {
|
|
542
|
-
if (cube[1] !== undefined) {
|
|
543
|
-
value.push(cube[1].split(",").filter(Boolean).map(Number));
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
value.push(undefined);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
else {
|
|
551
|
-
value = value.split(",").filter(Boolean).map(Number);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
else if (columnMetadata.type === "enum" ||
|
|
555
|
-
columnMetadata.type === "simple-enum") {
|
|
556
|
-
if (columnMetadata.isArray) {
|
|
557
|
-
if (value === "{}")
|
|
558
|
-
return [];
|
|
559
|
-
// manually convert enum array to array of values (pg does not support, see https://github.com/brianc/node-pg-types/issues/56)
|
|
560
|
-
value = value
|
|
561
|
-
.slice(1, -1)
|
|
562
|
-
.split(",")
|
|
563
|
-
.map((val) => {
|
|
564
|
-
// replace double quotes from the beginning and from the end
|
|
565
|
-
if (val.startsWith(`"`) && val.endsWith(`"`))
|
|
566
|
-
val = val.slice(1, -1);
|
|
567
|
-
// replace escaped backslash and double quotes
|
|
568
|
-
return val.replace(/\\(\\|")/g, "$1");
|
|
569
|
-
});
|
|
570
|
-
// convert to number if that exists in possible enum options
|
|
571
|
-
value = value.map((val) => {
|
|
572
|
-
return !isNaN(+val) &&
|
|
573
|
-
columnMetadata.enum.indexOf(parseInt(val)) >= 0
|
|
574
|
-
? parseInt(val)
|
|
575
|
-
: val;
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
else {
|
|
579
|
-
// convert to number if that exists in possible enum options
|
|
580
|
-
value =
|
|
581
|
-
!isNaN(+value) &&
|
|
582
|
-
columnMetadata.enum.indexOf(parseInt(value)) >= 0
|
|
583
|
-
? parseInt(value)
|
|
584
|
-
: value;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
else if (columnMetadata.type === Number) {
|
|
588
|
-
// convert to number if number
|
|
589
|
-
value = !isNaN(+value) ? parseInt(value) : value;
|
|
590
|
-
}
|
|
591
|
-
if (columnMetadata.transformer)
|
|
592
|
-
value = ApplyValueTransformers_1.ApplyValueTransformers.transformFrom(columnMetadata.transformer, value);
|
|
593
|
-
return value;
|
|
594
|
-
}
|
|
595
|
-
/**
|
|
596
|
-
* Replaces parameters in the given sql with special escaping character
|
|
597
|
-
* and an array of parameter names to be passed to a query.
|
|
598
|
-
*/
|
|
599
|
-
escapeQueryWithParameters(sql, parameters, nativeParameters) {
|
|
600
|
-
const escapedParameters = Object.keys(nativeParameters).map((key) => nativeParameters[key]);
|
|
601
|
-
if (!parameters || !Object.keys(parameters).length)
|
|
602
|
-
return [sql, escapedParameters];
|
|
603
|
-
const parameterIndexMap = new Map();
|
|
604
|
-
sql = sql.replace(/:(\.\.\.)?([A-Za-z0-9_.]+)/g, (full, isArray, key) => {
|
|
605
|
-
if (!parameters.hasOwnProperty(key)) {
|
|
606
|
-
return full;
|
|
607
|
-
}
|
|
608
|
-
if (parameterIndexMap.has(key)) {
|
|
609
|
-
return this.parametersPrefix + parameterIndexMap.get(key);
|
|
610
|
-
}
|
|
611
|
-
const value = parameters[key];
|
|
612
|
-
if (isArray) {
|
|
613
|
-
return value
|
|
614
|
-
.map((v) => {
|
|
615
|
-
escapedParameters.push(v);
|
|
616
|
-
return this.createParameter(key, escapedParameters.length - 1);
|
|
617
|
-
})
|
|
618
|
-
.join(", ");
|
|
619
|
-
}
|
|
620
|
-
if (typeof value === "function") {
|
|
621
|
-
return value();
|
|
622
|
-
}
|
|
623
|
-
escapedParameters.push(value);
|
|
624
|
-
parameterIndexMap.set(key, escapedParameters.length);
|
|
625
|
-
return this.createParameter(key, escapedParameters.length - 1);
|
|
626
|
-
}); // todo: make replace only in value statements, otherwise problems
|
|
627
|
-
return [sql, escapedParameters];
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* Escapes a column name.
|
|
631
|
-
*/
|
|
632
|
-
escape(columnName) {
|
|
633
|
-
return '"' + columnName + '"';
|
|
634
|
-
}
|
|
635
|
-
/**
|
|
636
|
-
* Build full table name with schema name and table name.
|
|
637
|
-
* E.g. myDB.mySchema.myTable
|
|
638
|
-
*/
|
|
639
|
-
buildTableName(tableName, schema) {
|
|
640
|
-
const tablePath = [tableName];
|
|
641
|
-
if (schema) {
|
|
642
|
-
tablePath.unshift(schema);
|
|
643
|
-
}
|
|
644
|
-
return tablePath.join(".");
|
|
645
|
-
}
|
|
646
|
-
/**
|
|
647
|
-
* Parse a target table name or other types and return a normalized table definition.
|
|
648
|
-
*/
|
|
649
|
-
parseTableName(target) {
|
|
650
|
-
const driverDatabase = this.database;
|
|
651
|
-
const driverSchema = this.schema;
|
|
652
|
-
if (InstanceChecker_1.InstanceChecker.isTable(target) || InstanceChecker_1.InstanceChecker.isView(target)) {
|
|
653
|
-
const parsed = this.parseTableName(target.name);
|
|
654
|
-
return {
|
|
655
|
-
database: target.database || parsed.database || driverDatabase,
|
|
656
|
-
schema: target.schema || parsed.schema || driverSchema,
|
|
657
|
-
tableName: parsed.tableName,
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
if (InstanceChecker_1.InstanceChecker.isTableForeignKey(target)) {
|
|
661
|
-
const parsed = this.parseTableName(target.referencedTableName);
|
|
662
|
-
return {
|
|
663
|
-
database: target.referencedDatabase ||
|
|
664
|
-
parsed.database ||
|
|
665
|
-
driverDatabase,
|
|
666
|
-
schema: target.referencedSchema || parsed.schema || driverSchema,
|
|
667
|
-
tableName: parsed.tableName,
|
|
668
|
-
};
|
|
669
|
-
}
|
|
670
|
-
if (InstanceChecker_1.InstanceChecker.isEntityMetadata(target)) {
|
|
671
|
-
// EntityMetadata tableName is never a path
|
|
672
|
-
return {
|
|
673
|
-
database: target.database || driverDatabase,
|
|
674
|
-
schema: target.schema || driverSchema,
|
|
675
|
-
tableName: target.tableName,
|
|
676
|
-
};
|
|
677
|
-
}
|
|
678
|
-
const parts = target.split(".");
|
|
679
|
-
return {
|
|
680
|
-
database: driverDatabase,
|
|
681
|
-
schema: (parts.length > 1 ? parts[0] : undefined) || driverSchema,
|
|
682
|
-
tableName: parts.length > 1 ? parts[1] : parts[0],
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
* Creates a database type from a given column metadata.
|
|
687
|
-
*/
|
|
688
|
-
normalizeType(column) {
|
|
689
|
-
if (column.type === Number ||
|
|
690
|
-
column.type === "int" ||
|
|
691
|
-
column.type === "int4") {
|
|
692
|
-
return "integer";
|
|
693
|
-
}
|
|
694
|
-
else if (column.type === String || column.type === "varchar") {
|
|
695
|
-
return "character varying";
|
|
696
|
-
}
|
|
697
|
-
else if (column.type === Date || column.type === "timestamp") {
|
|
698
|
-
return "timestamp without time zone";
|
|
699
|
-
}
|
|
700
|
-
else if (column.type === "timestamptz") {
|
|
701
|
-
return "timestamp with time zone";
|
|
702
|
-
}
|
|
703
|
-
else if (column.type === "time") {
|
|
704
|
-
return "time without time zone";
|
|
705
|
-
}
|
|
706
|
-
else if (column.type === "timetz") {
|
|
707
|
-
return "time with time zone";
|
|
708
|
-
}
|
|
709
|
-
else if (column.type === Boolean || column.type === "bool") {
|
|
710
|
-
return "boolean";
|
|
711
|
-
}
|
|
712
|
-
else if (column.type === "simple-array") {
|
|
713
|
-
return "text";
|
|
714
|
-
}
|
|
715
|
-
else if (column.type === "simple-json") {
|
|
716
|
-
return "text";
|
|
717
|
-
}
|
|
718
|
-
else if (column.type === "simple-enum") {
|
|
719
|
-
return "enum";
|
|
720
|
-
}
|
|
721
|
-
else if (column.type === "int2") {
|
|
722
|
-
return "smallint";
|
|
723
|
-
}
|
|
724
|
-
else if (column.type === "int8") {
|
|
725
|
-
return "bigint";
|
|
726
|
-
}
|
|
727
|
-
else if (column.type === "decimal") {
|
|
728
|
-
return "numeric";
|
|
729
|
-
}
|
|
730
|
-
else if (column.type === "float8" || column.type === "float") {
|
|
731
|
-
return "double precision";
|
|
732
|
-
}
|
|
733
|
-
else if (column.type === "float4") {
|
|
734
|
-
return "real";
|
|
735
|
-
}
|
|
736
|
-
else if (column.type === "char") {
|
|
737
|
-
return "character";
|
|
738
|
-
}
|
|
739
|
-
else if (column.type === "varbit") {
|
|
740
|
-
return "bit varying";
|
|
741
|
-
}
|
|
742
|
-
else {
|
|
743
|
-
return column.type || "";
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
* Normalizes "default" value of the column.
|
|
748
|
-
*/
|
|
749
|
-
normalizeDefault(columnMetadata) {
|
|
750
|
-
const defaultValue = columnMetadata.default;
|
|
751
|
-
if (defaultValue === null || defaultValue === undefined) {
|
|
752
|
-
return undefined;
|
|
753
|
-
}
|
|
754
|
-
if (columnMetadata.isArray && Array.isArray(defaultValue)) {
|
|
755
|
-
return `'{${defaultValue
|
|
756
|
-
.map((val) => `${val}`)
|
|
757
|
-
.join(",")}}'`;
|
|
758
|
-
}
|
|
759
|
-
if ((columnMetadata.type === "enum" ||
|
|
760
|
-
columnMetadata.type === "simple-enum" ||
|
|
761
|
-
typeof defaultValue === "number" ||
|
|
762
|
-
typeof defaultValue === "string") &&
|
|
763
|
-
defaultValue !== undefined) {
|
|
764
|
-
return `'${defaultValue}'`;
|
|
765
|
-
}
|
|
766
|
-
if (typeof defaultValue === "boolean") {
|
|
767
|
-
return defaultValue ? "true" : "false";
|
|
768
|
-
}
|
|
769
|
-
if (typeof defaultValue === "function") {
|
|
770
|
-
const value = defaultValue();
|
|
771
|
-
return this.normalizeDatetimeFunction(value);
|
|
772
|
-
}
|
|
773
|
-
if (typeof defaultValue === "object") {
|
|
774
|
-
return `'${JSON.stringify(defaultValue)}'`;
|
|
775
|
-
}
|
|
776
|
-
return `${defaultValue}`;
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* Compares "default" value of the column.
|
|
780
|
-
* Postgres sorts json values before it is saved, so in that case a deep comparison has to be performed to see if has changed.
|
|
781
|
-
*/
|
|
782
|
-
defaultEqual(columnMetadata, tableColumn) {
|
|
783
|
-
if (["json", "jsonb"].includes(columnMetadata.type) &&
|
|
784
|
-
!["function", "undefined"].includes(typeof columnMetadata.default)) {
|
|
785
|
-
const tableColumnDefault = typeof tableColumn.default === "string"
|
|
786
|
-
? JSON.parse(tableColumn.default.substring(1, tableColumn.default.length - 1))
|
|
787
|
-
: tableColumn.default;
|
|
788
|
-
return OrmUtils_1.OrmUtils.deepCompare(columnMetadata.default, tableColumnDefault);
|
|
789
|
-
}
|
|
790
|
-
const columnDefault = this.lowerDefaultValueIfNecessary(this.normalizeDefault(columnMetadata));
|
|
791
|
-
return columnDefault === tableColumn.default;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* Normalizes "isUnique" value of the column.
|
|
795
|
-
*/
|
|
796
|
-
normalizeIsUnique(column) {
|
|
797
|
-
return column.entityMetadata.uniques.some((uq) => uq.columns.length === 1 && uq.columns[0] === column);
|
|
798
|
-
}
|
|
799
|
-
/**
|
|
800
|
-
* Returns default column lengths, which is required on column creation.
|
|
801
|
-
*/
|
|
802
|
-
getColumnLength(column) {
|
|
803
|
-
return column.length ? column.length.toString() : "";
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* Creates column type definition including length, precision and scale
|
|
807
|
-
*/
|
|
808
|
-
createFullType(column) {
|
|
809
|
-
let type = column.type;
|
|
810
|
-
if (column.length) {
|
|
811
|
-
type += "(" + column.length + ")";
|
|
812
|
-
}
|
|
813
|
-
else if (column.precision !== null &&
|
|
814
|
-
column.precision !== undefined &&
|
|
815
|
-
column.scale !== null &&
|
|
816
|
-
column.scale !== undefined) {
|
|
817
|
-
type += "(" + column.precision + "," + column.scale + ")";
|
|
818
|
-
}
|
|
819
|
-
else if (column.precision !== null &&
|
|
820
|
-
column.precision !== undefined) {
|
|
821
|
-
type += "(" + column.precision + ")";
|
|
822
|
-
}
|
|
823
|
-
if (column.type === "time without time zone") {
|
|
824
|
-
type =
|
|
825
|
-
"TIME" +
|
|
826
|
-
(column.precision !== null && column.precision !== undefined
|
|
827
|
-
? "(" + column.precision + ")"
|
|
828
|
-
: "");
|
|
829
|
-
}
|
|
830
|
-
else if (column.type === "time with time zone") {
|
|
831
|
-
type =
|
|
832
|
-
"TIME" +
|
|
833
|
-
(column.precision !== null && column.precision !== undefined
|
|
834
|
-
? "(" + column.precision + ")"
|
|
835
|
-
: "") +
|
|
836
|
-
" WITH TIME ZONE";
|
|
837
|
-
}
|
|
838
|
-
else if (column.type === "timestamp without time zone") {
|
|
839
|
-
type =
|
|
840
|
-
"TIMESTAMP" +
|
|
841
|
-
(column.precision !== null && column.precision !== undefined
|
|
842
|
-
? "(" + column.precision + ")"
|
|
843
|
-
: "");
|
|
844
|
-
}
|
|
845
|
-
else if (column.type === "timestamp with time zone") {
|
|
846
|
-
type =
|
|
847
|
-
"TIMESTAMP" +
|
|
848
|
-
(column.precision !== null && column.precision !== undefined
|
|
849
|
-
? "(" + column.precision + ")"
|
|
850
|
-
: "") +
|
|
851
|
-
" WITH TIME ZONE";
|
|
852
|
-
}
|
|
853
|
-
else if (this.spatialTypes.indexOf(column.type) >= 0) {
|
|
854
|
-
if (column.spatialFeatureType != null && column.srid != null) {
|
|
855
|
-
type = `${column.type}(${column.spatialFeatureType},${column.srid})`;
|
|
856
|
-
}
|
|
857
|
-
else if (column.spatialFeatureType != null) {
|
|
858
|
-
type = `${column.type}(${column.spatialFeatureType})`;
|
|
859
|
-
}
|
|
860
|
-
else {
|
|
861
|
-
type = column.type;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
if (column.isArray)
|
|
865
|
-
type += " array";
|
|
866
|
-
return type;
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* Obtains a new database connection to a master server.
|
|
870
|
-
* Used for replication.
|
|
871
|
-
* If replication is not setup then returns default connection's database connection.
|
|
872
|
-
*/
|
|
873
|
-
async obtainMasterConnection() {
|
|
874
|
-
if (!this.master) {
|
|
875
|
-
throw new error_1.TypeORMError("Driver not Connected");
|
|
876
|
-
}
|
|
877
|
-
return new Promise((ok, fail) => {
|
|
878
|
-
this.master.connect((err, connection, release) => {
|
|
879
|
-
err ? fail(err) : ok([connection, release]);
|
|
880
|
-
});
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
/**
|
|
884
|
-
* Obtains a new database connection to a slave server.
|
|
885
|
-
* Used for replication.
|
|
886
|
-
* If replication is not setup then returns master (default) connection's database connection.
|
|
887
|
-
*/
|
|
888
|
-
async obtainSlaveConnection() {
|
|
889
|
-
if (!this.slaves.length) {
|
|
890
|
-
return this.obtainMasterConnection();
|
|
891
|
-
}
|
|
892
|
-
const random = Math.floor(Math.random() * this.slaves.length);
|
|
893
|
-
return new Promise((ok, fail) => {
|
|
894
|
-
this.slaves[random].connect((err, connection, release) => {
|
|
895
|
-
err ? fail(err) : ok([connection, release]);
|
|
896
|
-
});
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* Creates generated map of values generated or returned by database after INSERT query.
|
|
901
|
-
*
|
|
902
|
-
* todo: slow. optimize Object.keys(), OrmUtils.mergeDeep and column.createValueMap parts
|
|
903
|
-
*/
|
|
904
|
-
createGeneratedMap(metadata, insertResult) {
|
|
905
|
-
if (!insertResult)
|
|
906
|
-
return undefined;
|
|
907
|
-
return Object.keys(insertResult).reduce((map, key) => {
|
|
908
|
-
const column = metadata.findColumnWithDatabaseName(key);
|
|
909
|
-
if (column) {
|
|
910
|
-
OrmUtils_1.OrmUtils.mergeDeep(map, column.createValueMap(insertResult[key]));
|
|
911
|
-
// OrmUtils.mergeDeep(map, column.createValueMap(this.prepareHydratedValue(insertResult[key], column))); // TODO: probably should be like there, but fails on enums, fix later
|
|
912
|
-
}
|
|
913
|
-
return map;
|
|
914
|
-
}, {});
|
|
915
|
-
}
|
|
916
|
-
/**
|
|
917
|
-
* Differentiate columns of this table and columns from the given column metadatas columns
|
|
918
|
-
* and returns only changed.
|
|
919
|
-
*/
|
|
920
|
-
findChangedColumns(tableColumns, columnMetadatas) {
|
|
921
|
-
return columnMetadatas.filter((columnMetadata) => {
|
|
922
|
-
const tableColumn = tableColumns.find((c) => c.name === columnMetadata.databaseName);
|
|
923
|
-
if (!tableColumn)
|
|
924
|
-
return false; // we don't need new columns, we only need exist and changed
|
|
925
|
-
const isColumnChanged = tableColumn.name !== columnMetadata.databaseName ||
|
|
926
|
-
tableColumn.type !== this.normalizeType(columnMetadata) ||
|
|
927
|
-
tableColumn.length !== columnMetadata.length ||
|
|
928
|
-
tableColumn.isArray !== columnMetadata.isArray ||
|
|
929
|
-
tableColumn.precision !== columnMetadata.precision ||
|
|
930
|
-
(columnMetadata.scale !== undefined &&
|
|
931
|
-
tableColumn.scale !== columnMetadata.scale) ||
|
|
932
|
-
tableColumn.comment !==
|
|
933
|
-
this.escapeComment(columnMetadata.comment) ||
|
|
934
|
-
(!tableColumn.isGenerated &&
|
|
935
|
-
!this.defaultEqual(columnMetadata, tableColumn)) || // we included check for generated here, because generated columns already can have default values
|
|
936
|
-
tableColumn.isPrimary !== columnMetadata.isPrimary ||
|
|
937
|
-
tableColumn.isNullable !== columnMetadata.isNullable ||
|
|
938
|
-
tableColumn.isUnique !==
|
|
939
|
-
this.normalizeIsUnique(columnMetadata) ||
|
|
940
|
-
tableColumn.enumName !== columnMetadata.enumName ||
|
|
941
|
-
(tableColumn.enum &&
|
|
942
|
-
columnMetadata.enum &&
|
|
943
|
-
!OrmUtils_1.OrmUtils.isArraysEqual(tableColumn.enum, columnMetadata.enum.map((val) => val + ""))) || // enums in postgres are always strings
|
|
944
|
-
tableColumn.isGenerated !== columnMetadata.isGenerated ||
|
|
945
|
-
(tableColumn.spatialFeatureType || "").toLowerCase() !==
|
|
946
|
-
(columnMetadata.spatialFeatureType || "").toLowerCase() ||
|
|
947
|
-
tableColumn.srid !== columnMetadata.srid ||
|
|
948
|
-
tableColumn.generatedType !== columnMetadata.generatedType ||
|
|
949
|
-
(tableColumn.asExpression || "").trim() !==
|
|
950
|
-
(columnMetadata.asExpression || "").trim();
|
|
951
|
-
// DEBUG SECTION
|
|
952
|
-
// if (isColumnChanged) {
|
|
953
|
-
// console.log("table:", columnMetadata.entityMetadata.tableName)
|
|
954
|
-
// console.log(
|
|
955
|
-
// "name:",
|
|
956
|
-
// tableColumn.name,
|
|
957
|
-
// columnMetadata.databaseName,
|
|
958
|
-
// )
|
|
959
|
-
// console.log(
|
|
960
|
-
// "type:",
|
|
961
|
-
// tableColumn.type,
|
|
962
|
-
// this.normalizeType(columnMetadata),
|
|
963
|
-
// )
|
|
964
|
-
// console.log(
|
|
965
|
-
// "length:",
|
|
966
|
-
// tableColumn.length,
|
|
967
|
-
// columnMetadata.length,
|
|
968
|
-
// )
|
|
969
|
-
// console.log(
|
|
970
|
-
// "isArray:",
|
|
971
|
-
// tableColumn.isArray,
|
|
972
|
-
// columnMetadata.isArray,
|
|
973
|
-
// )
|
|
974
|
-
// console.log(
|
|
975
|
-
// "precision:",
|
|
976
|
-
// tableColumn.precision,
|
|
977
|
-
// columnMetadata.precision,
|
|
978
|
-
// )
|
|
979
|
-
// console.log("scale:", tableColumn.scale, columnMetadata.scale)
|
|
980
|
-
// console.log(
|
|
981
|
-
// "comment:",
|
|
982
|
-
// tableColumn.comment,
|
|
983
|
-
// this.escapeComment(columnMetadata.comment),
|
|
984
|
-
// )
|
|
985
|
-
// console.log(
|
|
986
|
-
// "enumName:",
|
|
987
|
-
// tableColumn.enumName,
|
|
988
|
-
// columnMetadata.enumName,
|
|
989
|
-
// )
|
|
990
|
-
// console.log(
|
|
991
|
-
// "enum:",
|
|
992
|
-
// tableColumn.enum &&
|
|
993
|
-
// columnMetadata.enum &&
|
|
994
|
-
// !OrmUtils.isArraysEqual(
|
|
995
|
-
// tableColumn.enum,
|
|
996
|
-
// columnMetadata.enum.map((val) => val + ""),
|
|
997
|
-
// ),
|
|
998
|
-
// )
|
|
999
|
-
// console.log(
|
|
1000
|
-
// "isPrimary:",
|
|
1001
|
-
// tableColumn.isPrimary,
|
|
1002
|
-
// columnMetadata.isPrimary,
|
|
1003
|
-
// )
|
|
1004
|
-
// console.log(
|
|
1005
|
-
// "isNullable:",
|
|
1006
|
-
// tableColumn.isNullable,
|
|
1007
|
-
// columnMetadata.isNullable,
|
|
1008
|
-
// )
|
|
1009
|
-
// console.log(
|
|
1010
|
-
// "isUnique:",
|
|
1011
|
-
// tableColumn.isUnique,
|
|
1012
|
-
// this.normalizeIsUnique(columnMetadata),
|
|
1013
|
-
// )
|
|
1014
|
-
// console.log(
|
|
1015
|
-
// "isGenerated:",
|
|
1016
|
-
// tableColumn.isGenerated,
|
|
1017
|
-
// columnMetadata.isGenerated,
|
|
1018
|
-
// )
|
|
1019
|
-
// console.log(
|
|
1020
|
-
// "generatedType:",
|
|
1021
|
-
// tableColumn.generatedType,
|
|
1022
|
-
// columnMetadata.generatedType,
|
|
1023
|
-
// )
|
|
1024
|
-
// console.log(
|
|
1025
|
-
// "asExpression:",
|
|
1026
|
-
// (tableColumn.asExpression || "").trim(),
|
|
1027
|
-
// (columnMetadata.asExpression || "").trim(),
|
|
1028
|
-
// )
|
|
1029
|
-
// console.log(
|
|
1030
|
-
// "collation:",
|
|
1031
|
-
// tableColumn.collation,
|
|
1032
|
-
// columnMetadata.collation,
|
|
1033
|
-
// )
|
|
1034
|
-
// console.log(
|
|
1035
|
-
// "isGenerated 2:",
|
|
1036
|
-
// !tableColumn.isGenerated &&
|
|
1037
|
-
// this.lowerDefaultValueIfNecessary(
|
|
1038
|
-
// this.normalizeDefault(columnMetadata),
|
|
1039
|
-
// ) !== tableColumn.default,
|
|
1040
|
-
// )
|
|
1041
|
-
// console.log(
|
|
1042
|
-
// "spatialFeatureType:",
|
|
1043
|
-
// (tableColumn.spatialFeatureType || "").toLowerCase(),
|
|
1044
|
-
// (columnMetadata.spatialFeatureType || "").toLowerCase(),
|
|
1045
|
-
// )
|
|
1046
|
-
// console.log("srid", tableColumn.srid, columnMetadata.srid)
|
|
1047
|
-
// console.log("==========================================")
|
|
1048
|
-
// }
|
|
1049
|
-
return isColumnChanged;
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
lowerDefaultValueIfNecessary(value) {
|
|
1053
|
-
// Postgres saves function calls in default value as lowercase #2733
|
|
1054
|
-
if (!value) {
|
|
1055
|
-
return value;
|
|
1056
|
-
}
|
|
1057
|
-
return value
|
|
1058
|
-
.split(`'`)
|
|
1059
|
-
.map((v, i) => {
|
|
1060
|
-
return i % 2 === 1 ? v : v.toLowerCase();
|
|
1061
|
-
})
|
|
1062
|
-
.join(`'`);
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* Returns true if driver supports RETURNING / OUTPUT statement.
|
|
1066
|
-
*/
|
|
1067
|
-
isReturningSqlSupported() {
|
|
1068
|
-
return true;
|
|
1069
|
-
}
|
|
1070
|
-
/**
|
|
1071
|
-
* Returns true if driver supports uuid values generation on its own.
|
|
1072
|
-
*/
|
|
1073
|
-
isUUIDGenerationSupported() {
|
|
1074
|
-
return true;
|
|
1075
|
-
}
|
|
1076
|
-
/**
|
|
1077
|
-
* Returns true if driver supports fulltext indices.
|
|
1078
|
-
*/
|
|
1079
|
-
isFullTextColumnTypeSupported() {
|
|
1080
|
-
return false;
|
|
1081
|
-
}
|
|
1082
|
-
get uuidGenerator() {
|
|
1083
|
-
return this.options.uuidExtension === "pgcrypto"
|
|
1084
|
-
? "gen_random_uuid()"
|
|
1085
|
-
: "uuid_generate_v4()";
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Creates an escaped parameter.
|
|
1089
|
-
*/
|
|
1090
|
-
createParameter(parameterName, index) {
|
|
1091
|
-
return this.parametersPrefix + (index + 1);
|
|
1092
|
-
}
|
|
1093
|
-
// -------------------------------------------------------------------------
|
|
1094
|
-
// Public Methods
|
|
1095
|
-
// -------------------------------------------------------------------------
|
|
1096
|
-
/**
|
|
1097
|
-
* Loads postgres query stream package.
|
|
1098
|
-
*/
|
|
1099
|
-
loadStreamDependency() {
|
|
1100
|
-
try {
|
|
1101
|
-
return PlatformTools_1.PlatformTools.load("pg-query-stream");
|
|
1102
|
-
}
|
|
1103
|
-
catch (e) {
|
|
1104
|
-
// todo: better error for browser env
|
|
1105
|
-
throw new error_1.TypeORMError(`To use streams you should install pg-query-stream package. Please run npm i pg-query-stream --save command.`);
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
// -------------------------------------------------------------------------
|
|
1109
|
-
// Protected Methods
|
|
1110
|
-
// -------------------------------------------------------------------------
|
|
1111
|
-
/**
|
|
1112
|
-
* If driver dependency is not given explicitly, then try to load it via "require".
|
|
1113
|
-
*/
|
|
1114
|
-
loadDependencies() {
|
|
1115
|
-
try {
|
|
1116
|
-
const postgres = this.options.driver || PlatformTools_1.PlatformTools.load("pg");
|
|
1117
|
-
this.postgres = postgres;
|
|
1118
|
-
try {
|
|
1119
|
-
const pgNative = this.options.nativeDriver || PlatformTools_1.PlatformTools.load("pg-native");
|
|
1120
|
-
if (pgNative && this.postgres.native)
|
|
1121
|
-
this.postgres = this.postgres.native;
|
|
1122
|
-
}
|
|
1123
|
-
catch (e) { }
|
|
1124
|
-
}
|
|
1125
|
-
catch (e) {
|
|
1126
|
-
// todo: better error for browser env
|
|
1127
|
-
throw new DriverPackageNotInstalledError_1.DriverPackageNotInstalledError("Postgres", "pg");
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
/**
|
|
1131
|
-
* Creates a new connection pool for a given database credentials.
|
|
1132
|
-
*/
|
|
1133
|
-
async createPool(options, credentials) {
|
|
1134
|
-
const { logger } = this.connection;
|
|
1135
|
-
credentials = Object.assign({}, credentials);
|
|
1136
|
-
// build connection options for the driver
|
|
1137
|
-
// See: https://github.com/brianc/node-postgres/tree/master/packages/pg-pool#create
|
|
1138
|
-
const connectionOptions = Object.assign({}, {
|
|
1139
|
-
connectionString: credentials.url,
|
|
1140
|
-
host: credentials.host,
|
|
1141
|
-
user: credentials.username,
|
|
1142
|
-
password: credentials.password,
|
|
1143
|
-
database: credentials.database,
|
|
1144
|
-
port: credentials.port,
|
|
1145
|
-
ssl: credentials.ssl,
|
|
1146
|
-
connectionTimeoutMillis: options.connectTimeoutMS,
|
|
1147
|
-
application_name: options.applicationName ?? credentials.applicationName,
|
|
1148
|
-
max: options.poolSize,
|
|
1149
|
-
}, options.extra || {});
|
|
1150
|
-
if (options.parseInt8 !== undefined) {
|
|
1151
|
-
if (this.postgres.defaults &&
|
|
1152
|
-
Object.getOwnPropertyDescriptor(this.postgres.defaults, "parseInt8")?.set) {
|
|
1153
|
-
this.postgres.defaults.parseInt8 = options.parseInt8;
|
|
1154
|
-
}
|
|
1155
|
-
else {
|
|
1156
|
-
logger.log("warn", "Attempted to set parseInt8 option, but the postgres driver does not support setting defaults.parseInt8. This option will be ignored.");
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
// create a connection pool
|
|
1160
|
-
const pool = new this.postgres.Pool(connectionOptions);
|
|
1161
|
-
const poolErrorHandler = options.poolErrorHandler ||
|
|
1162
|
-
((error) => logger.log("warn", `Postgres pool raised an error. ${error}`));
|
|
1163
|
-
/*
|
|
1164
|
-
Attaching an error handler to pool errors is essential, as, otherwise, errors raised will go unhandled and
|
|
1165
|
-
cause the hosting app to crash.
|
|
1166
|
-
*/
|
|
1167
|
-
pool.on("error", poolErrorHandler);
|
|
1168
|
-
return new Promise((ok, fail) => {
|
|
1169
|
-
pool.connect((err, connection, release) => {
|
|
1170
|
-
if (err)
|
|
1171
|
-
return fail(err);
|
|
1172
|
-
if (options.logNotifications) {
|
|
1173
|
-
connection.on("notice", (msg) => {
|
|
1174
|
-
msg && this.connection.logger.log("info", msg.message);
|
|
1175
|
-
});
|
|
1176
|
-
connection.on("notification", (msg) => {
|
|
1177
|
-
msg &&
|
|
1178
|
-
this.connection.logger.log("info", `Received NOTIFY on channel ${msg.channel}: ${msg.payload}.`);
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
release();
|
|
1182
|
-
ok(pool);
|
|
1183
|
-
});
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
/**
|
|
1187
|
-
* Closes connection pool.
|
|
1188
|
-
*/
|
|
1189
|
-
async closePool(pool) {
|
|
1190
|
-
while (this.connectedQueryRunners.length) {
|
|
1191
|
-
await this.connectedQueryRunners[0].release();
|
|
1192
|
-
}
|
|
1193
|
-
return new Promise((ok, fail) => {
|
|
1194
|
-
pool.end((err) => (err ? fail(err) : ok()));
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
/**
|
|
1198
|
-
* Executes given query.
|
|
1199
|
-
*/
|
|
1200
|
-
executeQuery(connection, query) {
|
|
1201
|
-
this.connection.logger.logQuery(query);
|
|
1202
|
-
return new Promise((ok, fail) => {
|
|
1203
|
-
connection.query(query, (err, result) => err ? fail(err) : ok(result));
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
/**
|
|
1207
|
-
* If parameter is a datetime function, e.g. "CURRENT_TIMESTAMP", normalizes it.
|
|
1208
|
-
* Otherwise returns original input.
|
|
1209
|
-
*/
|
|
1210
|
-
normalizeDatetimeFunction(value) {
|
|
1211
|
-
// check if input is datetime function
|
|
1212
|
-
const upperCaseValue = value.toUpperCase();
|
|
1213
|
-
const isDatetimeFunction = upperCaseValue.indexOf("CURRENT_TIMESTAMP") !== -1 ||
|
|
1214
|
-
upperCaseValue.indexOf("CURRENT_DATE") !== -1 ||
|
|
1215
|
-
upperCaseValue.indexOf("CURRENT_TIME") !== -1 ||
|
|
1216
|
-
upperCaseValue.indexOf("LOCALTIMESTAMP") !== -1 ||
|
|
1217
|
-
upperCaseValue.indexOf("LOCALTIME") !== -1;
|
|
1218
|
-
if (isDatetimeFunction) {
|
|
1219
|
-
// extract precision, e.g. "(3)"
|
|
1220
|
-
const precision = value.match(/\(\d+\)/);
|
|
1221
|
-
if (upperCaseValue.indexOf("CURRENT_TIMESTAMP") !== -1) {
|
|
1222
|
-
return precision
|
|
1223
|
-
? `('now'::text)::timestamp${precision[0]} with time zone`
|
|
1224
|
-
: "now()";
|
|
1225
|
-
}
|
|
1226
|
-
else if (upperCaseValue === "CURRENT_DATE") {
|
|
1227
|
-
return "('now'::text)::date";
|
|
1228
|
-
}
|
|
1229
|
-
else if (upperCaseValue.indexOf("CURRENT_TIME") !== -1) {
|
|
1230
|
-
return precision
|
|
1231
|
-
? `('now'::text)::time${precision[0]} with time zone`
|
|
1232
|
-
: "('now'::text)::time with time zone";
|
|
1233
|
-
}
|
|
1234
|
-
else if (upperCaseValue.indexOf("LOCALTIMESTAMP") !== -1) {
|
|
1235
|
-
return precision
|
|
1236
|
-
? `('now'::text)::timestamp${precision[0]} without time zone`
|
|
1237
|
-
: "('now'::text)::timestamp without time zone";
|
|
1238
|
-
}
|
|
1239
|
-
else if (upperCaseValue.indexOf("LOCALTIME") !== -1) {
|
|
1240
|
-
return precision
|
|
1241
|
-
? `('now'::text)::time${precision[0]} without time zone`
|
|
1242
|
-
: "('now'::text)::time without time zone";
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
return value;
|
|
1246
|
-
}
|
|
1247
|
-
/**
|
|
1248
|
-
* Escapes a given comment.
|
|
1249
|
-
*/
|
|
1250
|
-
escapeComment(comment) {
|
|
1251
|
-
if (!comment)
|
|
1252
|
-
return comment;
|
|
1253
|
-
comment = comment.replace(/\u0000/g, ""); // Null bytes aren't allowed in comments
|
|
1254
|
-
return comment;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
exports.PostgresDriver = PostgresDriver;
|
|
1258
|
-
|
|
1259
|
-
//# sourceMappingURL=PostgresDriver.js.map
|