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
package/.output/server/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.js
DELETED
|
@@ -1,1511 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbstractSqliteQueryRunner = void 0;
|
|
4
|
-
const TransactionNotStartedError_1 = require("../../error/TransactionNotStartedError");
|
|
5
|
-
const TableColumn_1 = require("../../schema-builder/table/TableColumn");
|
|
6
|
-
const Table_1 = require("../../schema-builder/table/Table");
|
|
7
|
-
const TableIndex_1 = require("../../schema-builder/table/TableIndex");
|
|
8
|
-
const TableForeignKey_1 = require("../../schema-builder/table/TableForeignKey");
|
|
9
|
-
const View_1 = require("../../schema-builder/view/View");
|
|
10
|
-
const Query_1 = require("../Query");
|
|
11
|
-
const TableUnique_1 = require("../../schema-builder/table/TableUnique");
|
|
12
|
-
const BaseQueryRunner_1 = require("../../query-runner/BaseQueryRunner");
|
|
13
|
-
const OrmUtils_1 = require("../../util/OrmUtils");
|
|
14
|
-
const TableCheck_1 = require("../../schema-builder/table/TableCheck");
|
|
15
|
-
const error_1 = require("../../error");
|
|
16
|
-
const MetadataTableType_1 = require("../types/MetadataTableType");
|
|
17
|
-
const InstanceChecker_1 = require("../../util/InstanceChecker");
|
|
18
|
-
/**
|
|
19
|
-
* Runs queries on a single sqlite database connection.
|
|
20
|
-
*/
|
|
21
|
-
class AbstractSqliteQueryRunner extends BaseQueryRunner_1.BaseQueryRunner {
|
|
22
|
-
// -------------------------------------------------------------------------
|
|
23
|
-
// Constructor
|
|
24
|
-
// -------------------------------------------------------------------------
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
this.transactionPromise = null;
|
|
28
|
-
}
|
|
29
|
-
// -------------------------------------------------------------------------
|
|
30
|
-
// Public Methods
|
|
31
|
-
// -------------------------------------------------------------------------
|
|
32
|
-
/**
|
|
33
|
-
* Creates/uses database connection from the connection pool to perform further operations.
|
|
34
|
-
* Returns obtained database connection.
|
|
35
|
-
*/
|
|
36
|
-
connect() {
|
|
37
|
-
return Promise.resolve(this.driver.databaseConnection);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Releases used database connection.
|
|
41
|
-
* We just clear loaded tables and sql in memory, because sqlite do not support multiple connections thus query runners.
|
|
42
|
-
*/
|
|
43
|
-
release() {
|
|
44
|
-
this.loadedTables = [];
|
|
45
|
-
this.clearSqlMemory();
|
|
46
|
-
return Promise.resolve();
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Starts transaction.
|
|
50
|
-
*/
|
|
51
|
-
async startTransaction(isolationLevel) {
|
|
52
|
-
if (this.driver.transactionSupport === "none")
|
|
53
|
-
throw new error_1.TypeORMError(`Transactions aren't supported by ${this.connection.driver.options.type}.`);
|
|
54
|
-
if (this.isTransactionActive &&
|
|
55
|
-
this.driver.transactionSupport === "simple")
|
|
56
|
-
throw new error_1.TransactionAlreadyStartedError();
|
|
57
|
-
if (isolationLevel &&
|
|
58
|
-
isolationLevel !== "READ UNCOMMITTED" &&
|
|
59
|
-
isolationLevel !== "SERIALIZABLE")
|
|
60
|
-
throw new error_1.TypeORMError(`SQLite only supports SERIALIZABLE and READ UNCOMMITTED isolation`);
|
|
61
|
-
this.isTransactionActive = true;
|
|
62
|
-
try {
|
|
63
|
-
await this.broadcaster.broadcast("BeforeTransactionStart");
|
|
64
|
-
}
|
|
65
|
-
catch (err) {
|
|
66
|
-
this.isTransactionActive = false;
|
|
67
|
-
throw err;
|
|
68
|
-
}
|
|
69
|
-
if (this.transactionDepth === 0) {
|
|
70
|
-
if (isolationLevel) {
|
|
71
|
-
if (isolationLevel === "READ UNCOMMITTED") {
|
|
72
|
-
await this.query("PRAGMA read_uncommitted = true");
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
await this.query("PRAGMA read_uncommitted = false");
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
await this.query("BEGIN TRANSACTION");
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
await this.query(`SAVEPOINT typeorm_${this.transactionDepth}`);
|
|
82
|
-
}
|
|
83
|
-
this.transactionDepth += 1;
|
|
84
|
-
await this.broadcaster.broadcast("AfterTransactionStart");
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Commits transaction.
|
|
88
|
-
* Error will be thrown if transaction was not started.
|
|
89
|
-
*/
|
|
90
|
-
async commitTransaction() {
|
|
91
|
-
if (!this.isTransactionActive)
|
|
92
|
-
throw new TransactionNotStartedError_1.TransactionNotStartedError();
|
|
93
|
-
await this.broadcaster.broadcast("BeforeTransactionCommit");
|
|
94
|
-
if (this.transactionDepth > 1) {
|
|
95
|
-
await this.query(`RELEASE SAVEPOINT typeorm_${this.transactionDepth - 1}`);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
await this.query("COMMIT");
|
|
99
|
-
this.isTransactionActive = false;
|
|
100
|
-
}
|
|
101
|
-
this.transactionDepth -= 1;
|
|
102
|
-
await this.broadcaster.broadcast("AfterTransactionCommit");
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Rollbacks transaction.
|
|
106
|
-
* Error will be thrown if transaction was not started.
|
|
107
|
-
*/
|
|
108
|
-
async rollbackTransaction() {
|
|
109
|
-
if (!this.isTransactionActive)
|
|
110
|
-
throw new TransactionNotStartedError_1.TransactionNotStartedError();
|
|
111
|
-
await this.broadcaster.broadcast("BeforeTransactionRollback");
|
|
112
|
-
if (this.transactionDepth > 1) {
|
|
113
|
-
await this.query(`ROLLBACK TO SAVEPOINT typeorm_${this.transactionDepth - 1}`);
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
await this.query("ROLLBACK");
|
|
117
|
-
this.isTransactionActive = false;
|
|
118
|
-
}
|
|
119
|
-
this.transactionDepth -= 1;
|
|
120
|
-
await this.broadcaster.broadcast("AfterTransactionRollback");
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Returns raw data stream.
|
|
124
|
-
*/
|
|
125
|
-
stream(query, parameters, onEnd, onError) {
|
|
126
|
-
throw new error_1.TypeORMError(`Stream is not supported by sqlite driver.`);
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Returns all available database names including system databases.
|
|
130
|
-
*/
|
|
131
|
-
async getDatabases() {
|
|
132
|
-
return Promise.resolve([]);
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Returns all available schema names including system schemas.
|
|
136
|
-
* If database parameter specified, returns schemas of that database.
|
|
137
|
-
*/
|
|
138
|
-
async getSchemas(database) {
|
|
139
|
-
return Promise.resolve([]);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Checks if database with the given name exist.
|
|
143
|
-
*/
|
|
144
|
-
async hasDatabase(database) {
|
|
145
|
-
return Promise.resolve(false);
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Loads currently using database
|
|
149
|
-
*/
|
|
150
|
-
async getCurrentDatabase() {
|
|
151
|
-
return Promise.resolve(undefined);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Checks if schema with the given name exist.
|
|
155
|
-
*/
|
|
156
|
-
async hasSchema(schema) {
|
|
157
|
-
throw new error_1.TypeORMError(`This driver does not support table schemas`);
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Loads currently using database schema
|
|
161
|
-
*/
|
|
162
|
-
async getCurrentSchema() {
|
|
163
|
-
return Promise.resolve(undefined);
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Checks if table with the given name exist in the database.
|
|
167
|
-
*/
|
|
168
|
-
async hasTable(tableOrName) {
|
|
169
|
-
const tableName = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
170
|
-
? tableOrName.name
|
|
171
|
-
: tableOrName;
|
|
172
|
-
const sql = `SELECT * FROM "sqlite_master" WHERE "type" = 'table' AND "name" = '${tableName}'`;
|
|
173
|
-
const result = await this.query(sql);
|
|
174
|
-
return result.length ? true : false;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Checks if column with the given name exist in the given table.
|
|
178
|
-
*/
|
|
179
|
-
async hasColumn(tableOrName, columnName) {
|
|
180
|
-
const tableName = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
181
|
-
? tableOrName.name
|
|
182
|
-
: tableOrName;
|
|
183
|
-
const sql = `PRAGMA table_xinfo(${this.escapePath(tableName)})`;
|
|
184
|
-
const columns = await this.query(sql);
|
|
185
|
-
return !!columns.find((column) => column["name"] === columnName);
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Creates a new database.
|
|
189
|
-
*/
|
|
190
|
-
async createDatabase(database, ifNotExist) {
|
|
191
|
-
return Promise.resolve();
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Drops database.
|
|
195
|
-
*/
|
|
196
|
-
async dropDatabase(database, ifExist) {
|
|
197
|
-
return Promise.resolve();
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Creates a new table schema.
|
|
201
|
-
*/
|
|
202
|
-
async createSchema(schemaPath, ifNotExist) {
|
|
203
|
-
return Promise.resolve();
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Drops table schema.
|
|
207
|
-
*/
|
|
208
|
-
async dropSchema(schemaPath, ifExist) {
|
|
209
|
-
return Promise.resolve();
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Creates a new table.
|
|
213
|
-
*/
|
|
214
|
-
async createTable(table, ifNotExist = false, createForeignKeys = true, createIndices = true) {
|
|
215
|
-
const upQueries = [];
|
|
216
|
-
const downQueries = [];
|
|
217
|
-
if (ifNotExist) {
|
|
218
|
-
const isTableExist = await this.hasTable(table);
|
|
219
|
-
if (isTableExist)
|
|
220
|
-
return Promise.resolve();
|
|
221
|
-
}
|
|
222
|
-
upQueries.push(this.createTableSql(table, createForeignKeys));
|
|
223
|
-
downQueries.push(this.dropTableSql(table));
|
|
224
|
-
if (createIndices) {
|
|
225
|
-
table.indices.forEach((index) => {
|
|
226
|
-
// new index may be passed without name. In this case we generate index name manually.
|
|
227
|
-
if (!index.name)
|
|
228
|
-
index.name = this.connection.namingStrategy.indexName(table, index.columnNames, index.where);
|
|
229
|
-
upQueries.push(this.createIndexSql(table, index));
|
|
230
|
-
downQueries.push(this.dropIndexSql(index));
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
// if table have column with generated type, we must add the expression to the metadata table
|
|
234
|
-
const generatedColumns = table.columns.filter((column) => column.generatedType && column.asExpression);
|
|
235
|
-
for (const column of generatedColumns) {
|
|
236
|
-
const insertQuery = this.insertTypeormMetadataSql({
|
|
237
|
-
table: table.name,
|
|
238
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
239
|
-
name: column.name,
|
|
240
|
-
value: column.asExpression,
|
|
241
|
-
});
|
|
242
|
-
const deleteQuery = this.deleteTypeormMetadataSql({
|
|
243
|
-
table: table.name,
|
|
244
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
245
|
-
name: column.name,
|
|
246
|
-
});
|
|
247
|
-
upQueries.push(insertQuery);
|
|
248
|
-
downQueries.push(deleteQuery);
|
|
249
|
-
}
|
|
250
|
-
await this.executeQueries(upQueries, downQueries);
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Drops the table.
|
|
254
|
-
*/
|
|
255
|
-
async dropTable(tableOrName, ifExist, dropForeignKeys = true, dropIndices = true) {
|
|
256
|
-
if (ifExist) {
|
|
257
|
-
const isTableExist = await this.hasTable(tableOrName);
|
|
258
|
-
if (!isTableExist)
|
|
259
|
-
return Promise.resolve();
|
|
260
|
-
}
|
|
261
|
-
// if dropTable called with dropForeignKeys = true, we must create foreign keys in down query.
|
|
262
|
-
const createForeignKeys = dropForeignKeys;
|
|
263
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
264
|
-
? tableOrName
|
|
265
|
-
: await this.getCachedTable(tableOrName);
|
|
266
|
-
const upQueries = [];
|
|
267
|
-
const downQueries = [];
|
|
268
|
-
if (dropIndices) {
|
|
269
|
-
table.indices.forEach((index) => {
|
|
270
|
-
upQueries.push(this.dropIndexSql(index));
|
|
271
|
-
downQueries.push(this.createIndexSql(table, index));
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
upQueries.push(this.dropTableSql(table, ifExist));
|
|
275
|
-
downQueries.push(this.createTableSql(table, createForeignKeys));
|
|
276
|
-
// if table had columns with generated type, we must remove the expression from the metadata table
|
|
277
|
-
const generatedColumns = table.columns.filter((column) => column.generatedType && column.asExpression);
|
|
278
|
-
for (const column of generatedColumns) {
|
|
279
|
-
const deleteQuery = this.deleteTypeormMetadataSql({
|
|
280
|
-
table: table.name,
|
|
281
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
282
|
-
name: column.name,
|
|
283
|
-
});
|
|
284
|
-
const insertQuery = this.insertTypeormMetadataSql({
|
|
285
|
-
table: table.name,
|
|
286
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
287
|
-
name: column.name,
|
|
288
|
-
value: column.asExpression,
|
|
289
|
-
});
|
|
290
|
-
upQueries.push(deleteQuery);
|
|
291
|
-
downQueries.push(insertQuery);
|
|
292
|
-
}
|
|
293
|
-
await this.executeQueries(upQueries, downQueries);
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Creates a new view.
|
|
297
|
-
*/
|
|
298
|
-
async createView(view, syncWithMetadata = false) {
|
|
299
|
-
const upQueries = [];
|
|
300
|
-
const downQueries = [];
|
|
301
|
-
upQueries.push(this.createViewSql(view));
|
|
302
|
-
if (syncWithMetadata)
|
|
303
|
-
upQueries.push(this.insertViewDefinitionSql(view));
|
|
304
|
-
downQueries.push(this.dropViewSql(view));
|
|
305
|
-
if (syncWithMetadata)
|
|
306
|
-
downQueries.push(this.deleteViewDefinitionSql(view));
|
|
307
|
-
await this.executeQueries(upQueries, downQueries);
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Drops the view.
|
|
311
|
-
*/
|
|
312
|
-
async dropView(target) {
|
|
313
|
-
const viewName = InstanceChecker_1.InstanceChecker.isView(target) ? target.name : target;
|
|
314
|
-
const view = await this.getCachedView(viewName);
|
|
315
|
-
const upQueries = [];
|
|
316
|
-
const downQueries = [];
|
|
317
|
-
upQueries.push(this.deleteViewDefinitionSql(view));
|
|
318
|
-
upQueries.push(this.dropViewSql(view));
|
|
319
|
-
downQueries.push(this.insertViewDefinitionSql(view));
|
|
320
|
-
downQueries.push(this.createViewSql(view));
|
|
321
|
-
await this.executeQueries(upQueries, downQueries);
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Renames the given table.
|
|
325
|
-
*/
|
|
326
|
-
async renameTable(oldTableOrName, newTableName) {
|
|
327
|
-
const oldTable = InstanceChecker_1.InstanceChecker.isTable(oldTableOrName)
|
|
328
|
-
? oldTableOrName
|
|
329
|
-
: await this.getCachedTable(oldTableOrName);
|
|
330
|
-
const newTable = oldTable.clone();
|
|
331
|
-
newTable.name = newTableName;
|
|
332
|
-
// rename table
|
|
333
|
-
const up = new Query_1.Query(`ALTER TABLE ${this.escapePath(oldTable.name)} RENAME TO ${this.escapePath(newTableName)}`);
|
|
334
|
-
const down = new Query_1.Query(`ALTER TABLE ${this.escapePath(newTableName)} RENAME TO ${this.escapePath(oldTable.name)}`);
|
|
335
|
-
await this.executeQueries(up, down);
|
|
336
|
-
// rename unique constraints
|
|
337
|
-
newTable.uniques.forEach((unique) => {
|
|
338
|
-
const oldUniqueName = this.connection.namingStrategy.uniqueConstraintName(oldTable, unique.columnNames);
|
|
339
|
-
// Skip renaming if Unique has user defined constraint name
|
|
340
|
-
if (unique.name !== oldUniqueName)
|
|
341
|
-
return;
|
|
342
|
-
unique.name = this.connection.namingStrategy.uniqueConstraintName(newTable, unique.columnNames);
|
|
343
|
-
});
|
|
344
|
-
// rename foreign key constraints
|
|
345
|
-
newTable.foreignKeys.forEach((foreignKey) => {
|
|
346
|
-
const oldForeignKeyName = this.connection.namingStrategy.foreignKeyName(oldTable, foreignKey.columnNames, this.getTablePath(foreignKey), foreignKey.referencedColumnNames);
|
|
347
|
-
// Skip renaming if foreign key has user defined constraint name
|
|
348
|
-
if (foreignKey.name !== oldForeignKeyName)
|
|
349
|
-
return;
|
|
350
|
-
foreignKey.name = this.connection.namingStrategy.foreignKeyName(newTable, foreignKey.columnNames, this.getTablePath(foreignKey), foreignKey.referencedColumnNames);
|
|
351
|
-
});
|
|
352
|
-
// rename indices
|
|
353
|
-
newTable.indices.forEach((index) => {
|
|
354
|
-
const oldIndexName = this.connection.namingStrategy.indexName(oldTable, index.columnNames, index.where);
|
|
355
|
-
// Skip renaming if Index has user defined constraint name
|
|
356
|
-
if (index.name !== oldIndexName)
|
|
357
|
-
return;
|
|
358
|
-
index.name = this.connection.namingStrategy.indexName(newTable, index.columnNames, index.where);
|
|
359
|
-
});
|
|
360
|
-
// rename old table;
|
|
361
|
-
oldTable.name = newTable.name;
|
|
362
|
-
// recreate table with new constraint names
|
|
363
|
-
await this.recreateTable(newTable, oldTable);
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* Creates a new column from the column in the table.
|
|
367
|
-
*/
|
|
368
|
-
async addColumn(tableOrName, column) {
|
|
369
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
370
|
-
? tableOrName
|
|
371
|
-
: await this.getCachedTable(tableOrName);
|
|
372
|
-
return this.addColumns(table, [column]);
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Creates a new columns from the column in the table.
|
|
376
|
-
*/
|
|
377
|
-
async addColumns(tableOrName, columns) {
|
|
378
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
379
|
-
? tableOrName
|
|
380
|
-
: await this.getCachedTable(tableOrName);
|
|
381
|
-
const changedTable = table.clone();
|
|
382
|
-
columns.forEach((column) => changedTable.addColumn(column));
|
|
383
|
-
await this.recreateTable(changedTable, table);
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Renames column in the given table.
|
|
387
|
-
*/
|
|
388
|
-
async renameColumn(tableOrName, oldTableColumnOrName, newTableColumnOrName) {
|
|
389
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
390
|
-
? tableOrName
|
|
391
|
-
: await this.getCachedTable(tableOrName);
|
|
392
|
-
const oldColumn = InstanceChecker_1.InstanceChecker.isTableColumn(oldTableColumnOrName)
|
|
393
|
-
? oldTableColumnOrName
|
|
394
|
-
: table.columns.find((c) => c.name === oldTableColumnOrName);
|
|
395
|
-
if (!oldColumn)
|
|
396
|
-
throw new error_1.TypeORMError(`Column "${oldTableColumnOrName}" was not found in the "${table.name}" table.`);
|
|
397
|
-
let newColumn = undefined;
|
|
398
|
-
if (InstanceChecker_1.InstanceChecker.isTableColumn(newTableColumnOrName)) {
|
|
399
|
-
newColumn = newTableColumnOrName;
|
|
400
|
-
}
|
|
401
|
-
else {
|
|
402
|
-
newColumn = oldColumn.clone();
|
|
403
|
-
newColumn.name = newTableColumnOrName;
|
|
404
|
-
}
|
|
405
|
-
return this.changeColumn(table, oldColumn, newColumn);
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Changes a column in the table.
|
|
409
|
-
*/
|
|
410
|
-
async changeColumn(tableOrName, oldTableColumnOrName, newColumn) {
|
|
411
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
412
|
-
? tableOrName
|
|
413
|
-
: await this.getCachedTable(tableOrName);
|
|
414
|
-
const oldColumn = InstanceChecker_1.InstanceChecker.isTableColumn(oldTableColumnOrName)
|
|
415
|
-
? oldTableColumnOrName
|
|
416
|
-
: table.columns.find((c) => c.name === oldTableColumnOrName);
|
|
417
|
-
if (!oldColumn)
|
|
418
|
-
throw new error_1.TypeORMError(`Column "${oldTableColumnOrName}" was not found in the "${table.name}" table.`);
|
|
419
|
-
await this.changeColumns(table, [{ oldColumn, newColumn }]);
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* Changes a column in the table.
|
|
423
|
-
* Changed column looses all its keys in the db.
|
|
424
|
-
*/
|
|
425
|
-
async changeColumns(tableOrName, changedColumns) {
|
|
426
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
427
|
-
? tableOrName
|
|
428
|
-
: await this.getCachedTable(tableOrName);
|
|
429
|
-
const changedTable = table.clone();
|
|
430
|
-
changedColumns.forEach((changedColumnSet) => {
|
|
431
|
-
if (changedColumnSet.newColumn.name !==
|
|
432
|
-
changedColumnSet.oldColumn.name) {
|
|
433
|
-
changedTable
|
|
434
|
-
.findColumnUniques(changedColumnSet.oldColumn)
|
|
435
|
-
.forEach((unique) => {
|
|
436
|
-
const uniqueName = this.connection.namingStrategy.uniqueConstraintName(table, unique.columnNames);
|
|
437
|
-
unique.columnNames.splice(unique.columnNames.indexOf(changedColumnSet.oldColumn.name), 1);
|
|
438
|
-
unique.columnNames.push(changedColumnSet.newColumn.name);
|
|
439
|
-
// rename Unique only if it has default constraint name
|
|
440
|
-
if (unique.name === uniqueName) {
|
|
441
|
-
unique.name =
|
|
442
|
-
this.connection.namingStrategy.uniqueConstraintName(changedTable, unique.columnNames);
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
changedTable
|
|
446
|
-
.findColumnForeignKeys(changedColumnSet.oldColumn)
|
|
447
|
-
.forEach((foreignKey) => {
|
|
448
|
-
const foreignKeyName = this.connection.namingStrategy.foreignKeyName(table, foreignKey.columnNames, this.getTablePath(foreignKey), foreignKey.referencedColumnNames);
|
|
449
|
-
foreignKey.columnNames.splice(foreignKey.columnNames.indexOf(changedColumnSet.oldColumn.name), 1);
|
|
450
|
-
foreignKey.columnNames.push(changedColumnSet.newColumn.name);
|
|
451
|
-
// rename FK only if it has default constraint name
|
|
452
|
-
if (foreignKey.name === foreignKeyName) {
|
|
453
|
-
foreignKey.name =
|
|
454
|
-
this.connection.namingStrategy.foreignKeyName(changedTable, foreignKey.columnNames, this.getTablePath(foreignKey), foreignKey.referencedColumnNames);
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
changedTable
|
|
458
|
-
.findColumnIndices(changedColumnSet.oldColumn)
|
|
459
|
-
.forEach((index) => {
|
|
460
|
-
const indexName = this.connection.namingStrategy.indexName(table, index.columnNames, index.where);
|
|
461
|
-
index.columnNames.splice(index.columnNames.indexOf(changedColumnSet.oldColumn.name), 1);
|
|
462
|
-
index.columnNames.push(changedColumnSet.newColumn.name);
|
|
463
|
-
// rename Index only if it has default constraint name
|
|
464
|
-
if (index.name === indexName) {
|
|
465
|
-
index.name =
|
|
466
|
-
this.connection.namingStrategy.indexName(changedTable, index.columnNames, index.where);
|
|
467
|
-
}
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
const originalColumn = changedTable.columns.find((column) => column.name === changedColumnSet.oldColumn.name);
|
|
471
|
-
if (originalColumn)
|
|
472
|
-
changedTable.columns[changedTable.columns.indexOf(originalColumn)] = changedColumnSet.newColumn;
|
|
473
|
-
});
|
|
474
|
-
await this.recreateTable(changedTable, table);
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* Drops column in the table.
|
|
478
|
-
*/
|
|
479
|
-
async dropColumn(tableOrName, columnOrName) {
|
|
480
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
481
|
-
? tableOrName
|
|
482
|
-
: await this.getCachedTable(tableOrName);
|
|
483
|
-
const column = InstanceChecker_1.InstanceChecker.isTableColumn(columnOrName)
|
|
484
|
-
? columnOrName
|
|
485
|
-
: table.findColumnByName(columnOrName);
|
|
486
|
-
if (!column)
|
|
487
|
-
throw new error_1.TypeORMError(`Column "${columnOrName}" was not found in table "${table.name}"`);
|
|
488
|
-
await this.dropColumns(table, [column]);
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* Drops the columns in the table.
|
|
492
|
-
*/
|
|
493
|
-
async dropColumns(tableOrName, columns) {
|
|
494
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
495
|
-
? tableOrName
|
|
496
|
-
: await this.getCachedTable(tableOrName);
|
|
497
|
-
// clone original table and remove column and its constraints from cloned table
|
|
498
|
-
const changedTable = table.clone();
|
|
499
|
-
columns.forEach((column) => {
|
|
500
|
-
const columnInstance = InstanceChecker_1.InstanceChecker.isTableColumn(column)
|
|
501
|
-
? column
|
|
502
|
-
: table.findColumnByName(column);
|
|
503
|
-
if (!columnInstance)
|
|
504
|
-
throw new Error(`Column "${column}" was not found in table "${table.name}"`);
|
|
505
|
-
changedTable.removeColumn(columnInstance);
|
|
506
|
-
changedTable
|
|
507
|
-
.findColumnUniques(columnInstance)
|
|
508
|
-
.forEach((unique) => changedTable.removeUniqueConstraint(unique));
|
|
509
|
-
changedTable
|
|
510
|
-
.findColumnIndices(columnInstance)
|
|
511
|
-
.forEach((index) => changedTable.removeIndex(index));
|
|
512
|
-
changedTable
|
|
513
|
-
.findColumnForeignKeys(columnInstance)
|
|
514
|
-
.forEach((fk) => changedTable.removeForeignKey(fk));
|
|
515
|
-
});
|
|
516
|
-
await this.recreateTable(changedTable, table);
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* Creates a new primary key.
|
|
520
|
-
*/
|
|
521
|
-
async createPrimaryKey(tableOrName, columnNames) {
|
|
522
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
523
|
-
? tableOrName
|
|
524
|
-
: await this.getCachedTable(tableOrName);
|
|
525
|
-
// clone original table and mark columns as primary
|
|
526
|
-
const changedTable = table.clone();
|
|
527
|
-
changedTable.columns.forEach((column) => {
|
|
528
|
-
if (columnNames.find((columnName) => columnName === column.name))
|
|
529
|
-
column.isPrimary = true;
|
|
530
|
-
});
|
|
531
|
-
await this.recreateTable(changedTable, table);
|
|
532
|
-
// mark columns as primary in original table
|
|
533
|
-
table.columns.forEach((column) => {
|
|
534
|
-
if (columnNames.find((columnName) => columnName === column.name))
|
|
535
|
-
column.isPrimary = true;
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Updates composite primary keys.
|
|
540
|
-
*/
|
|
541
|
-
async updatePrimaryKeys(tableOrName, columns) {
|
|
542
|
-
await Promise.resolve();
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
* Drops a primary key.
|
|
546
|
-
*/
|
|
547
|
-
async dropPrimaryKey(tableOrName) {
|
|
548
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
549
|
-
? tableOrName
|
|
550
|
-
: await this.getCachedTable(tableOrName);
|
|
551
|
-
// clone original table and mark primary columns as non-primary
|
|
552
|
-
const changedTable = table.clone();
|
|
553
|
-
changedTable.primaryColumns.forEach((column) => {
|
|
554
|
-
column.isPrimary = false;
|
|
555
|
-
});
|
|
556
|
-
await this.recreateTable(changedTable, table);
|
|
557
|
-
// mark primary columns as non-primary in original table
|
|
558
|
-
table.primaryColumns.forEach((column) => {
|
|
559
|
-
column.isPrimary = false;
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Creates a new unique constraint.
|
|
564
|
-
*/
|
|
565
|
-
async createUniqueConstraint(tableOrName, uniqueConstraint) {
|
|
566
|
-
await this.createUniqueConstraints(tableOrName, [uniqueConstraint]);
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* Creates a new unique constraints.
|
|
570
|
-
*/
|
|
571
|
-
async createUniqueConstraints(tableOrName, uniqueConstraints) {
|
|
572
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
573
|
-
? tableOrName
|
|
574
|
-
: await this.getCachedTable(tableOrName);
|
|
575
|
-
// clone original table and add unique constraints in to cloned table
|
|
576
|
-
const changedTable = table.clone();
|
|
577
|
-
uniqueConstraints.forEach((uniqueConstraint) => changedTable.addUniqueConstraint(uniqueConstraint));
|
|
578
|
-
await this.recreateTable(changedTable, table);
|
|
579
|
-
}
|
|
580
|
-
/**
|
|
581
|
-
* Drops an unique constraint.
|
|
582
|
-
*/
|
|
583
|
-
async dropUniqueConstraint(tableOrName, uniqueOrName) {
|
|
584
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
585
|
-
? tableOrName
|
|
586
|
-
: await this.getCachedTable(tableOrName);
|
|
587
|
-
const uniqueConstraint = InstanceChecker_1.InstanceChecker.isTableUnique(uniqueOrName)
|
|
588
|
-
? uniqueOrName
|
|
589
|
-
: table.uniques.find((u) => u.name === uniqueOrName);
|
|
590
|
-
if (!uniqueConstraint)
|
|
591
|
-
throw new error_1.TypeORMError(`Supplied unique constraint was not found in table ${table.name}`);
|
|
592
|
-
await this.dropUniqueConstraints(table, [uniqueConstraint]);
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* Creates an unique constraints.
|
|
596
|
-
*/
|
|
597
|
-
async dropUniqueConstraints(tableOrName, uniqueConstraints) {
|
|
598
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
599
|
-
? tableOrName
|
|
600
|
-
: await this.getCachedTable(tableOrName);
|
|
601
|
-
// clone original table and remove unique constraints from cloned table
|
|
602
|
-
const changedTable = table.clone();
|
|
603
|
-
uniqueConstraints.forEach((uniqueConstraint) => changedTable.removeUniqueConstraint(uniqueConstraint));
|
|
604
|
-
await this.recreateTable(changedTable, table);
|
|
605
|
-
}
|
|
606
|
-
/**
|
|
607
|
-
* Creates new check constraint.
|
|
608
|
-
*/
|
|
609
|
-
async createCheckConstraint(tableOrName, checkConstraint) {
|
|
610
|
-
await this.createCheckConstraints(tableOrName, [checkConstraint]);
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
* Creates new check constraints.
|
|
614
|
-
*/
|
|
615
|
-
async createCheckConstraints(tableOrName, checkConstraints) {
|
|
616
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
617
|
-
? tableOrName
|
|
618
|
-
: await this.getCachedTable(tableOrName);
|
|
619
|
-
// clone original table and add check constraints in to cloned table
|
|
620
|
-
const changedTable = table.clone();
|
|
621
|
-
checkConstraints.forEach((checkConstraint) => changedTable.addCheckConstraint(checkConstraint));
|
|
622
|
-
await this.recreateTable(changedTable, table);
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* Drops check constraint.
|
|
626
|
-
*/
|
|
627
|
-
async dropCheckConstraint(tableOrName, checkOrName) {
|
|
628
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
629
|
-
? tableOrName
|
|
630
|
-
: await this.getCachedTable(tableOrName);
|
|
631
|
-
const checkConstraint = InstanceChecker_1.InstanceChecker.isTableCheck(checkOrName)
|
|
632
|
-
? checkOrName
|
|
633
|
-
: table.checks.find((c) => c.name === checkOrName);
|
|
634
|
-
if (!checkConstraint)
|
|
635
|
-
throw new error_1.TypeORMError(`Supplied check constraint was not found in table ${table.name}`);
|
|
636
|
-
await this.dropCheckConstraints(table, [checkConstraint]);
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
* Drops check constraints.
|
|
640
|
-
*/
|
|
641
|
-
async dropCheckConstraints(tableOrName, checkConstraints) {
|
|
642
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
643
|
-
? tableOrName
|
|
644
|
-
: await this.getCachedTable(tableOrName);
|
|
645
|
-
// clone original table and remove check constraints from cloned table
|
|
646
|
-
const changedTable = table.clone();
|
|
647
|
-
checkConstraints.forEach((checkConstraint) => changedTable.removeCheckConstraint(checkConstraint));
|
|
648
|
-
await this.recreateTable(changedTable, table);
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* Creates a new exclusion constraint.
|
|
652
|
-
*/
|
|
653
|
-
async createExclusionConstraint(tableOrName, exclusionConstraint) {
|
|
654
|
-
throw new error_1.TypeORMError(`Sqlite does not support exclusion constraints.`);
|
|
655
|
-
}
|
|
656
|
-
/**
|
|
657
|
-
* Creates a new exclusion constraints.
|
|
658
|
-
*/
|
|
659
|
-
async createExclusionConstraints(tableOrName, exclusionConstraints) {
|
|
660
|
-
throw new error_1.TypeORMError(`Sqlite does not support exclusion constraints.`);
|
|
661
|
-
}
|
|
662
|
-
/**
|
|
663
|
-
* Drops exclusion constraint.
|
|
664
|
-
*/
|
|
665
|
-
async dropExclusionConstraint(tableOrName, exclusionOrName) {
|
|
666
|
-
throw new error_1.TypeORMError(`Sqlite does not support exclusion constraints.`);
|
|
667
|
-
}
|
|
668
|
-
/**
|
|
669
|
-
* Drops exclusion constraints.
|
|
670
|
-
*/
|
|
671
|
-
async dropExclusionConstraints(tableOrName, exclusionConstraints) {
|
|
672
|
-
throw new error_1.TypeORMError(`Sqlite does not support exclusion constraints.`);
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* Creates a new foreign key.
|
|
676
|
-
*/
|
|
677
|
-
async createForeignKey(tableOrName, foreignKey) {
|
|
678
|
-
await this.createForeignKeys(tableOrName, [foreignKey]);
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* Creates a new foreign keys.
|
|
682
|
-
*/
|
|
683
|
-
async createForeignKeys(tableOrName, foreignKeys) {
|
|
684
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
685
|
-
? tableOrName
|
|
686
|
-
: await this.getCachedTable(tableOrName);
|
|
687
|
-
// clone original table and add foreign keys in to cloned table
|
|
688
|
-
const changedTable = table.clone();
|
|
689
|
-
foreignKeys.forEach((foreignKey) => changedTable.addForeignKey(foreignKey));
|
|
690
|
-
await this.recreateTable(changedTable, table);
|
|
691
|
-
}
|
|
692
|
-
/**
|
|
693
|
-
* Drops a foreign key from the table.
|
|
694
|
-
*/
|
|
695
|
-
async dropForeignKey(tableOrName, foreignKeyOrName) {
|
|
696
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
697
|
-
? tableOrName
|
|
698
|
-
: await this.getCachedTable(tableOrName);
|
|
699
|
-
const foreignKey = InstanceChecker_1.InstanceChecker.isTableForeignKey(foreignKeyOrName)
|
|
700
|
-
? foreignKeyOrName
|
|
701
|
-
: table.foreignKeys.find((fk) => fk.name === foreignKeyOrName);
|
|
702
|
-
if (!foreignKey)
|
|
703
|
-
throw new error_1.TypeORMError(`Supplied foreign key was not found in table ${table.name}`);
|
|
704
|
-
await this.dropForeignKeys(tableOrName, [foreignKey]);
|
|
705
|
-
}
|
|
706
|
-
/**
|
|
707
|
-
* Drops a foreign keys from the table.
|
|
708
|
-
*/
|
|
709
|
-
async dropForeignKeys(tableOrName, foreignKeys) {
|
|
710
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
711
|
-
? tableOrName
|
|
712
|
-
: await this.getCachedTable(tableOrName);
|
|
713
|
-
// clone original table and remove foreign keys from cloned table
|
|
714
|
-
const changedTable = table.clone();
|
|
715
|
-
foreignKeys.forEach((foreignKey) => changedTable.removeForeignKey(foreignKey));
|
|
716
|
-
await this.recreateTable(changedTable, table);
|
|
717
|
-
}
|
|
718
|
-
/**
|
|
719
|
-
* Creates a new index.
|
|
720
|
-
*/
|
|
721
|
-
async createIndex(tableOrName, index) {
|
|
722
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
723
|
-
? tableOrName
|
|
724
|
-
: await this.getCachedTable(tableOrName);
|
|
725
|
-
// new index may be passed without name. In this case we generate index name manually.
|
|
726
|
-
if (!index.name)
|
|
727
|
-
index.name = this.generateIndexName(table, index);
|
|
728
|
-
const up = this.createIndexSql(table, index);
|
|
729
|
-
const down = this.dropIndexSql(index);
|
|
730
|
-
await this.executeQueries(up, down);
|
|
731
|
-
table.addIndex(index);
|
|
732
|
-
}
|
|
733
|
-
/**
|
|
734
|
-
* Creates a new indices
|
|
735
|
-
*/
|
|
736
|
-
async createIndices(tableOrName, indices) {
|
|
737
|
-
const promises = indices.map((index) => this.createIndex(tableOrName, index));
|
|
738
|
-
await Promise.all(promises);
|
|
739
|
-
}
|
|
740
|
-
/**
|
|
741
|
-
* Drops an index from the table.
|
|
742
|
-
*/
|
|
743
|
-
async dropIndex(tableOrName, indexOrName) {
|
|
744
|
-
const table = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
745
|
-
? tableOrName
|
|
746
|
-
: await this.getCachedTable(tableOrName);
|
|
747
|
-
const index = InstanceChecker_1.InstanceChecker.isTableIndex(indexOrName)
|
|
748
|
-
? indexOrName
|
|
749
|
-
: table.indices.find((i) => i.name === indexOrName);
|
|
750
|
-
if (!index)
|
|
751
|
-
throw new error_1.TypeORMError(`Supplied index ${indexOrName} was not found in table ${table.name}`);
|
|
752
|
-
// old index may be passed without name. In this case we generate index name manually.
|
|
753
|
-
if (!index.name)
|
|
754
|
-
index.name = this.generateIndexName(table, index);
|
|
755
|
-
const up = this.dropIndexSql(index);
|
|
756
|
-
const down = this.createIndexSql(table, index);
|
|
757
|
-
await this.executeQueries(up, down);
|
|
758
|
-
table.removeIndex(index);
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* Drops an indices from the table.
|
|
762
|
-
*/
|
|
763
|
-
async dropIndices(tableOrName, indices) {
|
|
764
|
-
const promises = indices.map((index) => this.dropIndex(tableOrName, index));
|
|
765
|
-
await Promise.all(promises);
|
|
766
|
-
}
|
|
767
|
-
/**
|
|
768
|
-
* Clears all table contents.
|
|
769
|
-
* Note: this operation uses SQL's TRUNCATE query which cannot be reverted in transactions.
|
|
770
|
-
*/
|
|
771
|
-
async clearTable(tableName) {
|
|
772
|
-
await this.query(`DELETE FROM ${this.escapePath(tableName)}`);
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* Removes all tables from the currently connected database.
|
|
776
|
-
*/
|
|
777
|
-
async clearDatabase(database) {
|
|
778
|
-
let dbPath = undefined;
|
|
779
|
-
if (database &&
|
|
780
|
-
this.driver.getAttachedDatabaseHandleByRelativePath(database)) {
|
|
781
|
-
dbPath =
|
|
782
|
-
this.driver.getAttachedDatabaseHandleByRelativePath(database);
|
|
783
|
-
}
|
|
784
|
-
await this.query(`PRAGMA foreign_keys = OFF`);
|
|
785
|
-
const isAnotherTransactionActive = this.isTransactionActive;
|
|
786
|
-
if (!isAnotherTransactionActive)
|
|
787
|
-
await this.startTransaction();
|
|
788
|
-
try {
|
|
789
|
-
const selectViewDropsQuery = dbPath
|
|
790
|
-
? `SELECT 'DROP VIEW "${dbPath}"."' || name || '";' as query FROM "${dbPath}"."sqlite_master" WHERE "type" = 'view'`
|
|
791
|
-
: `SELECT 'DROP VIEW "' || name || '";' as query FROM "sqlite_master" WHERE "type" = 'view'`;
|
|
792
|
-
const dropViewQueries = await this.query(selectViewDropsQuery);
|
|
793
|
-
await Promise.all(dropViewQueries.map((q) => this.query(q["query"])));
|
|
794
|
-
const selectTableDropsQuery = dbPath
|
|
795
|
-
? `SELECT 'DROP TABLE "${dbPath}"."' || name || '";' as query FROM "${dbPath}"."sqlite_master" WHERE "type" = 'table' AND "name" != 'sqlite_sequence'`
|
|
796
|
-
: `SELECT 'DROP TABLE "' || name || '";' as query FROM "sqlite_master" WHERE "type" = 'table' AND "name" != 'sqlite_sequence'`;
|
|
797
|
-
const dropTableQueries = await this.query(selectTableDropsQuery);
|
|
798
|
-
await Promise.all(dropTableQueries.map((q) => this.query(q["query"])));
|
|
799
|
-
if (!isAnotherTransactionActive)
|
|
800
|
-
await this.commitTransaction();
|
|
801
|
-
}
|
|
802
|
-
catch (error) {
|
|
803
|
-
try {
|
|
804
|
-
// we throw original error even if rollback thrown an error
|
|
805
|
-
if (!isAnotherTransactionActive)
|
|
806
|
-
await this.rollbackTransaction();
|
|
807
|
-
}
|
|
808
|
-
catch (rollbackError) { }
|
|
809
|
-
throw error;
|
|
810
|
-
}
|
|
811
|
-
finally {
|
|
812
|
-
await this.query(`PRAGMA foreign_keys = ON`);
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
// -------------------------------------------------------------------------
|
|
816
|
-
// Protected Methods
|
|
817
|
-
// -------------------------------------------------------------------------
|
|
818
|
-
async loadViews(viewNames) {
|
|
819
|
-
const hasTable = await this.hasTable(this.getTypeormMetadataTableName());
|
|
820
|
-
if (!hasTable) {
|
|
821
|
-
return [];
|
|
822
|
-
}
|
|
823
|
-
if (!viewNames) {
|
|
824
|
-
viewNames = [];
|
|
825
|
-
}
|
|
826
|
-
const viewNamesString = viewNames
|
|
827
|
-
.map((name) => "'" + name + "'")
|
|
828
|
-
.join(", ");
|
|
829
|
-
let query = `SELECT "t".* FROM "${this.getTypeormMetadataTableName()}" "t" INNER JOIN "sqlite_master" s ON "s"."name" = "t"."name" AND "s"."type" = 'view' WHERE "t"."type" = '${MetadataTableType_1.MetadataTableType.VIEW}'`;
|
|
830
|
-
if (viewNamesString.length > 0)
|
|
831
|
-
query += ` AND "t"."name" IN (${viewNamesString})`;
|
|
832
|
-
const dbViews = await this.query(query);
|
|
833
|
-
return dbViews.map((dbView) => {
|
|
834
|
-
const view = new View_1.View();
|
|
835
|
-
view.name = dbView["name"];
|
|
836
|
-
view.expression = dbView["value"];
|
|
837
|
-
return view;
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
async loadTableRecords(tablePath, tableOrIndex) {
|
|
841
|
-
let database = undefined;
|
|
842
|
-
const [schema, tableName] = this.splitTablePath(tablePath);
|
|
843
|
-
if (schema &&
|
|
844
|
-
this.driver.getAttachedDatabasePathRelativeByHandle(schema)) {
|
|
845
|
-
database =
|
|
846
|
-
this.driver.getAttachedDatabasePathRelativeByHandle(schema);
|
|
847
|
-
}
|
|
848
|
-
return this.query(`SELECT ${database ? `'${database}'` : null} as database, ${schema ? `'${schema}'` : null} as schema, * FROM ${schema ? `"${schema}".` : ""}${this.escapePath(`sqlite_master`)} WHERE "type" = '${tableOrIndex}' AND "${tableOrIndex === "table" ? "name" : "tbl_name"}" IN ('${tableName}')`);
|
|
849
|
-
}
|
|
850
|
-
async loadPragmaRecords(tablePath, pragma) {
|
|
851
|
-
const [, tableName] = this.splitTablePath(tablePath);
|
|
852
|
-
return this.query(`PRAGMA ${pragma}("${tableName}")`);
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* Loads all tables (with given names) from the database and creates a Table from them.
|
|
856
|
-
*/
|
|
857
|
-
async loadTables(tableNames) {
|
|
858
|
-
// if no tables given then no need to proceed
|
|
859
|
-
if (tableNames && tableNames.length === 0) {
|
|
860
|
-
return [];
|
|
861
|
-
}
|
|
862
|
-
let dbTables = [];
|
|
863
|
-
let dbIndicesDef;
|
|
864
|
-
if (!tableNames) {
|
|
865
|
-
const tablesSql = `SELECT * FROM "sqlite_master" WHERE "type" = 'table'`;
|
|
866
|
-
dbTables.push(...(await this.query(tablesSql)));
|
|
867
|
-
const tableNamesString = dbTables
|
|
868
|
-
.map(({ name }) => `'${name}'`)
|
|
869
|
-
.join(", ");
|
|
870
|
-
dbIndicesDef = await this.query(`SELECT * FROM "sqlite_master" WHERE "type" = 'index' AND "tbl_name" IN (${tableNamesString})`);
|
|
871
|
-
}
|
|
872
|
-
else {
|
|
873
|
-
const tableNamesWithoutDot = tableNames
|
|
874
|
-
.filter((tableName) => {
|
|
875
|
-
return tableName.split(".").length === 1;
|
|
876
|
-
})
|
|
877
|
-
.map((tableName) => `'${tableName}'`);
|
|
878
|
-
const tableNamesWithDot = tableNames.filter((tableName) => {
|
|
879
|
-
return tableName.split(".").length > 1;
|
|
880
|
-
});
|
|
881
|
-
const queryPromises = (type) => {
|
|
882
|
-
const promises = [
|
|
883
|
-
...tableNamesWithDot.map((tableName) => this.loadTableRecords(tableName, type)),
|
|
884
|
-
];
|
|
885
|
-
if (tableNamesWithoutDot.length) {
|
|
886
|
-
promises.push(this.query(`SELECT * FROM "sqlite_master" WHERE "type" = '${type}' AND "${type === "table" ? "name" : "tbl_name"}" IN (${tableNamesWithoutDot})`));
|
|
887
|
-
}
|
|
888
|
-
return promises;
|
|
889
|
-
};
|
|
890
|
-
dbTables = (await Promise.all(queryPromises("table")))
|
|
891
|
-
.reduce((acc, res) => [...acc, ...res], [])
|
|
892
|
-
.filter(Boolean);
|
|
893
|
-
dbIndicesDef = (await Promise.all(queryPromises("index")))
|
|
894
|
-
.reduce((acc, res) => [...acc, ...res], [])
|
|
895
|
-
.filter(Boolean);
|
|
896
|
-
}
|
|
897
|
-
// if tables were not found in the db, no need to proceed
|
|
898
|
-
if (dbTables.length === 0) {
|
|
899
|
-
return [];
|
|
900
|
-
}
|
|
901
|
-
// create table schemas for loaded tables
|
|
902
|
-
return Promise.all(dbTables.map(async (dbTable) => {
|
|
903
|
-
const tablePath = dbTable["database"] &&
|
|
904
|
-
this.driver.getAttachedDatabaseHandleByRelativePath(dbTable["database"])
|
|
905
|
-
? `${this.driver.getAttachedDatabaseHandleByRelativePath(dbTable["database"])}.${dbTable["name"]}`
|
|
906
|
-
: dbTable["name"];
|
|
907
|
-
const sql = dbTable["sql"];
|
|
908
|
-
const withoutRowid = sql.includes("WITHOUT ROWID");
|
|
909
|
-
const table = new Table_1.Table({ name: tablePath, withoutRowid });
|
|
910
|
-
// load columns and indices
|
|
911
|
-
const [dbColumns, dbIndices, dbForeignKeys] = await Promise.all([
|
|
912
|
-
this.loadPragmaRecords(tablePath, `table_xinfo`),
|
|
913
|
-
this.loadPragmaRecords(tablePath, `index_list`),
|
|
914
|
-
this.loadPragmaRecords(tablePath, `foreign_key_list`),
|
|
915
|
-
]);
|
|
916
|
-
// find column name with auto increment
|
|
917
|
-
let autoIncrementColumnName = undefined;
|
|
918
|
-
const tableSql = dbTable["sql"];
|
|
919
|
-
const autoIncrementIndex = tableSql
|
|
920
|
-
.toUpperCase()
|
|
921
|
-
.indexOf("AUTOINCREMENT");
|
|
922
|
-
if (autoIncrementIndex !== -1) {
|
|
923
|
-
autoIncrementColumnName = tableSql.substr(0, autoIncrementIndex);
|
|
924
|
-
const comma = autoIncrementColumnName.lastIndexOf(",");
|
|
925
|
-
const bracket = autoIncrementColumnName.lastIndexOf("(");
|
|
926
|
-
if (comma !== -1) {
|
|
927
|
-
autoIncrementColumnName =
|
|
928
|
-
autoIncrementColumnName.substr(comma);
|
|
929
|
-
autoIncrementColumnName =
|
|
930
|
-
autoIncrementColumnName.substr(0, autoIncrementColumnName.lastIndexOf('"'));
|
|
931
|
-
autoIncrementColumnName =
|
|
932
|
-
autoIncrementColumnName.substr(autoIncrementColumnName.indexOf('"') + 1);
|
|
933
|
-
}
|
|
934
|
-
else if (bracket !== -1) {
|
|
935
|
-
autoIncrementColumnName =
|
|
936
|
-
autoIncrementColumnName.substr(bracket);
|
|
937
|
-
autoIncrementColumnName =
|
|
938
|
-
autoIncrementColumnName.substr(0, autoIncrementColumnName.lastIndexOf('"'));
|
|
939
|
-
autoIncrementColumnName =
|
|
940
|
-
autoIncrementColumnName.substr(autoIncrementColumnName.indexOf('"') + 1);
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
// create columns from the loaded columns
|
|
944
|
-
table.columns = await Promise.all(dbColumns.map(async (dbColumn) => {
|
|
945
|
-
const tableColumn = new TableColumn_1.TableColumn();
|
|
946
|
-
tableColumn.name = dbColumn["name"];
|
|
947
|
-
tableColumn.type = dbColumn["type"].toLowerCase();
|
|
948
|
-
tableColumn.default =
|
|
949
|
-
dbColumn["dflt_value"] !== null &&
|
|
950
|
-
dbColumn["dflt_value"] !== undefined
|
|
951
|
-
? dbColumn["dflt_value"]
|
|
952
|
-
: undefined;
|
|
953
|
-
tableColumn.isNullable = dbColumn["notnull"] === 0;
|
|
954
|
-
// primary keys are numbered starting with 1, columns that aren't primary keys are marked with 0
|
|
955
|
-
tableColumn.isPrimary = dbColumn["pk"] > 0;
|
|
956
|
-
tableColumn.comment = ""; // SQLite does not support column comments
|
|
957
|
-
tableColumn.isGenerated =
|
|
958
|
-
autoIncrementColumnName === dbColumn["name"];
|
|
959
|
-
if (tableColumn.isGenerated) {
|
|
960
|
-
tableColumn.generationStrategy = "increment";
|
|
961
|
-
}
|
|
962
|
-
if (dbColumn["hidden"] === 2 ||
|
|
963
|
-
dbColumn["hidden"] === 3) {
|
|
964
|
-
tableColumn.generatedType =
|
|
965
|
-
dbColumn["hidden"] === 2 ? "VIRTUAL" : "STORED";
|
|
966
|
-
const asExpressionQuery = this.selectTypeormMetadataSql({
|
|
967
|
-
table: table.name,
|
|
968
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
969
|
-
name: tableColumn.name,
|
|
970
|
-
});
|
|
971
|
-
const results = await this.query(asExpressionQuery.query, asExpressionQuery.parameters);
|
|
972
|
-
if (results[0] && results[0].value) {
|
|
973
|
-
tableColumn.asExpression = results[0].value;
|
|
974
|
-
}
|
|
975
|
-
else {
|
|
976
|
-
tableColumn.asExpression = "";
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
if (tableColumn.type === "varchar") {
|
|
980
|
-
tableColumn.enum = OrmUtils_1.OrmUtils.parseSqlCheckExpression(sql, tableColumn.name);
|
|
981
|
-
}
|
|
982
|
-
// parse datatype and attempt to retrieve length, precision and scale
|
|
983
|
-
const pos = tableColumn.type.indexOf("(");
|
|
984
|
-
if (pos !== -1) {
|
|
985
|
-
const fullType = tableColumn.type;
|
|
986
|
-
const dataType = fullType.substr(0, pos);
|
|
987
|
-
if (this.driver.withLengthColumnTypes.find((col) => col === dataType)) {
|
|
988
|
-
const len = parseInt(fullType.substring(pos + 1, fullType.length - 1));
|
|
989
|
-
if (len) {
|
|
990
|
-
tableColumn.length = len.toString();
|
|
991
|
-
tableColumn.type = dataType; // remove the length part from the datatype
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
if (this.driver.withPrecisionColumnTypes.find((col) => col === dataType)) {
|
|
995
|
-
const re = new RegExp(`^${dataType}\\((\\d+),?\\s?(\\d+)?\\)`);
|
|
996
|
-
const matches = fullType.match(re);
|
|
997
|
-
if (matches && matches[1]) {
|
|
998
|
-
tableColumn.precision = +matches[1];
|
|
999
|
-
}
|
|
1000
|
-
if (this.driver.withScaleColumnTypes.find((col) => col === dataType)) {
|
|
1001
|
-
if (matches && matches[2]) {
|
|
1002
|
-
tableColumn.scale = +matches[2];
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
tableColumn.type = dataType; // remove the precision/scale part from the datatype
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
return tableColumn;
|
|
1009
|
-
}));
|
|
1010
|
-
// find foreign key constraints from CREATE TABLE sql
|
|
1011
|
-
let fkResult;
|
|
1012
|
-
const fkMappings = [];
|
|
1013
|
-
const fkRegex = /CONSTRAINT "([^"]*)" FOREIGN KEY ?\((.*?)\) REFERENCES "([^"]*)"/g;
|
|
1014
|
-
while ((fkResult = fkRegex.exec(sql)) !== null) {
|
|
1015
|
-
fkMappings.push({
|
|
1016
|
-
name: fkResult[1],
|
|
1017
|
-
columns: fkResult[2]
|
|
1018
|
-
.substr(1, fkResult[2].length - 2)
|
|
1019
|
-
.split(`", "`),
|
|
1020
|
-
referencedTableName: fkResult[3],
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
// build foreign keys
|
|
1024
|
-
const tableForeignKeyConstraints = OrmUtils_1.OrmUtils.uniq(dbForeignKeys, (dbForeignKey) => dbForeignKey["id"]);
|
|
1025
|
-
table.foreignKeys = tableForeignKeyConstraints.map((foreignKey) => {
|
|
1026
|
-
const ownForeignKeys = dbForeignKeys.filter((dbForeignKey) => dbForeignKey["id"] === foreignKey["id"] &&
|
|
1027
|
-
dbForeignKey["table"] === foreignKey["table"]);
|
|
1028
|
-
const columnNames = ownForeignKeys.map((dbForeignKey) => dbForeignKey["from"]);
|
|
1029
|
-
const referencedColumnNames = ownForeignKeys.map((dbForeignKey) => dbForeignKey["to"]);
|
|
1030
|
-
// find related foreign key mapping
|
|
1031
|
-
const fkMapping = fkMappings.find((it) => it.referencedTableName ===
|
|
1032
|
-
foreignKey["table"] &&
|
|
1033
|
-
it.columns.every((column) => columnNames.indexOf(column) !== -1));
|
|
1034
|
-
return new TableForeignKey_1.TableForeignKey({
|
|
1035
|
-
name: fkMapping?.name,
|
|
1036
|
-
columnNames: columnNames,
|
|
1037
|
-
referencedTableName: foreignKey["table"],
|
|
1038
|
-
referencedColumnNames: referencedColumnNames,
|
|
1039
|
-
onDelete: foreignKey["on_delete"],
|
|
1040
|
-
onUpdate: foreignKey["on_update"],
|
|
1041
|
-
});
|
|
1042
|
-
});
|
|
1043
|
-
// find unique constraints from CREATE TABLE sql
|
|
1044
|
-
let uniqueRegexResult;
|
|
1045
|
-
const uniqueMappings = [];
|
|
1046
|
-
const uniqueRegex = /CONSTRAINT "([^"]*)" UNIQUE ?\((.*?)\)/g;
|
|
1047
|
-
while ((uniqueRegexResult = uniqueRegex.exec(sql)) !== null) {
|
|
1048
|
-
uniqueMappings.push({
|
|
1049
|
-
name: uniqueRegexResult[1],
|
|
1050
|
-
columns: uniqueRegexResult[2]
|
|
1051
|
-
.substr(1, uniqueRegexResult[2].length - 2)
|
|
1052
|
-
.split(`", "`),
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
// build unique constraints
|
|
1056
|
-
const tableUniquePromises = dbIndices
|
|
1057
|
-
.filter((dbIndex) => dbIndex["origin"] === "u")
|
|
1058
|
-
.map((dbIndex) => dbIndex["name"])
|
|
1059
|
-
.filter((value, index, self) => self.indexOf(value) === index)
|
|
1060
|
-
.map(async (dbIndexName) => {
|
|
1061
|
-
const dbIndex = dbIndices.find((dbIndex) => dbIndex["name"] === dbIndexName);
|
|
1062
|
-
const indexInfos = await this.query(`PRAGMA index_info("${dbIndex["name"]}")`);
|
|
1063
|
-
const indexColumns = indexInfos
|
|
1064
|
-
.sort((indexInfo1, indexInfo2) => parseInt(indexInfo1["seqno"]) -
|
|
1065
|
-
parseInt(indexInfo2["seqno"]))
|
|
1066
|
-
.map((indexInfo) => indexInfo["name"]);
|
|
1067
|
-
if (indexColumns.length === 1) {
|
|
1068
|
-
const column = table.columns.find((column) => {
|
|
1069
|
-
return !!indexColumns.find((indexColumn) => indexColumn === column.name);
|
|
1070
|
-
});
|
|
1071
|
-
if (column)
|
|
1072
|
-
column.isUnique = true;
|
|
1073
|
-
}
|
|
1074
|
-
// find existent mapping by a column names
|
|
1075
|
-
const foundMapping = uniqueMappings.find((mapping) => {
|
|
1076
|
-
return mapping.columns.every((column) => indexColumns.indexOf(column) !== -1);
|
|
1077
|
-
});
|
|
1078
|
-
return new TableUnique_1.TableUnique({
|
|
1079
|
-
name: foundMapping
|
|
1080
|
-
? foundMapping.name
|
|
1081
|
-
: this.connection.namingStrategy.uniqueConstraintName(table, indexColumns),
|
|
1082
|
-
columnNames: indexColumns,
|
|
1083
|
-
});
|
|
1084
|
-
});
|
|
1085
|
-
table.uniques = (await Promise.all(tableUniquePromises));
|
|
1086
|
-
// build checks
|
|
1087
|
-
let result;
|
|
1088
|
-
const regexp = /CONSTRAINT "([^"]*)" CHECK ?(\(.*?\))([,]|[)]$)/g;
|
|
1089
|
-
while ((result = regexp.exec(sql)) !== null) {
|
|
1090
|
-
table.checks.push(new TableCheck_1.TableCheck({
|
|
1091
|
-
name: result[1],
|
|
1092
|
-
expression: result[2],
|
|
1093
|
-
}));
|
|
1094
|
-
}
|
|
1095
|
-
// build indices
|
|
1096
|
-
const indicesPromises = dbIndices
|
|
1097
|
-
.filter((dbIndex) => dbIndex["origin"] === "c")
|
|
1098
|
-
.map((dbIndex) => dbIndex["name"])
|
|
1099
|
-
.filter((value, index, self) => self.indexOf(value) === index) // unqiue
|
|
1100
|
-
.map(async (dbIndexName) => {
|
|
1101
|
-
const indexDef = dbIndicesDef.find((dbIndexDef) => dbIndexDef["name"] === dbIndexName);
|
|
1102
|
-
const condition = /WHERE (.*)/.exec(indexDef["sql"]);
|
|
1103
|
-
const dbIndex = dbIndices.find((dbIndex) => dbIndex["name"] === dbIndexName);
|
|
1104
|
-
const indexInfos = await this.query(`PRAGMA index_info("${dbIndex["name"]}")`);
|
|
1105
|
-
const indexColumns = indexInfos
|
|
1106
|
-
.sort((indexInfo1, indexInfo2) => parseInt(indexInfo1["seqno"]) -
|
|
1107
|
-
parseInt(indexInfo2["seqno"]))
|
|
1108
|
-
.map((indexInfo) => indexInfo["name"]);
|
|
1109
|
-
const dbIndexPath = `${dbTable["database"] ? `${dbTable["database"]}.` : ""}${dbIndex["name"]}`;
|
|
1110
|
-
const isUnique = dbIndex["unique"] === "1" ||
|
|
1111
|
-
dbIndex["unique"] === 1;
|
|
1112
|
-
return new TableIndex_1.TableIndex({
|
|
1113
|
-
table: table,
|
|
1114
|
-
name: dbIndexPath,
|
|
1115
|
-
columnNames: indexColumns,
|
|
1116
|
-
isUnique: isUnique,
|
|
1117
|
-
where: condition ? condition[1] : undefined,
|
|
1118
|
-
});
|
|
1119
|
-
});
|
|
1120
|
-
const indices = await Promise.all(indicesPromises);
|
|
1121
|
-
table.indices = indices.filter((index) => !!index);
|
|
1122
|
-
return table;
|
|
1123
|
-
}));
|
|
1124
|
-
}
|
|
1125
|
-
/**
|
|
1126
|
-
* Builds create table sql.
|
|
1127
|
-
*/
|
|
1128
|
-
createTableSql(table, createForeignKeys, temporaryTable) {
|
|
1129
|
-
const primaryColumns = table.columns.filter((column) => column.isPrimary);
|
|
1130
|
-
const hasAutoIncrement = primaryColumns.find((column) => column.isGenerated && column.generationStrategy === "increment");
|
|
1131
|
-
const skipPrimary = primaryColumns.length > 1;
|
|
1132
|
-
if (skipPrimary && hasAutoIncrement)
|
|
1133
|
-
throw new error_1.TypeORMError(`Sqlite does not support AUTOINCREMENT on composite primary key`);
|
|
1134
|
-
const columnDefinitions = table.columns
|
|
1135
|
-
.map((column) => this.buildCreateColumnSql(column, skipPrimary))
|
|
1136
|
-
.join(", ");
|
|
1137
|
-
const [database] = this.splitTablePath(table.name);
|
|
1138
|
-
let sql = `CREATE TABLE ${this.escapePath(table.name)} (${columnDefinitions}`;
|
|
1139
|
-
const [databaseNew, tableName] = this.splitTablePath(table.name);
|
|
1140
|
-
const newTableName = temporaryTable
|
|
1141
|
-
? `${databaseNew ? `${databaseNew}.` : ""}${tableName.replace(/^temporary_/, "")}`
|
|
1142
|
-
: table.name;
|
|
1143
|
-
// need for `addColumn()` method, because it recreates table.
|
|
1144
|
-
table.columns
|
|
1145
|
-
.filter((column) => column.isUnique)
|
|
1146
|
-
.forEach((column) => {
|
|
1147
|
-
const isUniqueExist = table.uniques.some((unique) => unique.columnNames.length === 1 &&
|
|
1148
|
-
unique.columnNames[0] === column.name);
|
|
1149
|
-
if (!isUniqueExist)
|
|
1150
|
-
table.uniques.push(new TableUnique_1.TableUnique({
|
|
1151
|
-
name: this.connection.namingStrategy.uniqueConstraintName(table, [column.name]),
|
|
1152
|
-
columnNames: [column.name],
|
|
1153
|
-
}));
|
|
1154
|
-
});
|
|
1155
|
-
if (table.uniques.length > 0) {
|
|
1156
|
-
const uniquesSql = table.uniques
|
|
1157
|
-
.map((unique) => {
|
|
1158
|
-
const uniqueName = unique.name
|
|
1159
|
-
? unique.name
|
|
1160
|
-
: this.connection.namingStrategy.uniqueConstraintName(newTableName, unique.columnNames);
|
|
1161
|
-
const columnNames = unique.columnNames
|
|
1162
|
-
.map((columnName) => `"${columnName}"`)
|
|
1163
|
-
.join(", ");
|
|
1164
|
-
return `CONSTRAINT "${uniqueName}" UNIQUE (${columnNames})`;
|
|
1165
|
-
})
|
|
1166
|
-
.join(", ");
|
|
1167
|
-
sql += `, ${uniquesSql}`;
|
|
1168
|
-
}
|
|
1169
|
-
if (table.checks.length > 0) {
|
|
1170
|
-
const checksSql = table.checks
|
|
1171
|
-
.map((check) => {
|
|
1172
|
-
const checkName = check.name
|
|
1173
|
-
? check.name
|
|
1174
|
-
: this.connection.namingStrategy.checkConstraintName(newTableName, check.expression);
|
|
1175
|
-
return `CONSTRAINT "${checkName}" CHECK (${check.expression})`;
|
|
1176
|
-
})
|
|
1177
|
-
.join(", ");
|
|
1178
|
-
sql += `, ${checksSql}`;
|
|
1179
|
-
}
|
|
1180
|
-
if (table.foreignKeys.length > 0 && createForeignKeys) {
|
|
1181
|
-
const foreignKeysSql = table.foreignKeys
|
|
1182
|
-
.filter((fk) => {
|
|
1183
|
-
const [referencedDatabase] = this.splitTablePath(fk.referencedTableName);
|
|
1184
|
-
if (referencedDatabase !== database) {
|
|
1185
|
-
return false;
|
|
1186
|
-
}
|
|
1187
|
-
return true;
|
|
1188
|
-
})
|
|
1189
|
-
.map((fk) => {
|
|
1190
|
-
const [, referencedTable] = this.splitTablePath(fk.referencedTableName);
|
|
1191
|
-
const columnNames = fk.columnNames
|
|
1192
|
-
.map((columnName) => `"${columnName}"`)
|
|
1193
|
-
.join(", ");
|
|
1194
|
-
if (!fk.name)
|
|
1195
|
-
fk.name = this.connection.namingStrategy.foreignKeyName(newTableName, fk.columnNames, this.getTablePath(fk), fk.referencedColumnNames);
|
|
1196
|
-
const referencedColumnNames = fk.referencedColumnNames
|
|
1197
|
-
.map((columnName) => `"${columnName}"`)
|
|
1198
|
-
.join(", ");
|
|
1199
|
-
let constraint = `CONSTRAINT "${fk.name}" FOREIGN KEY (${columnNames}) REFERENCES "${referencedTable}" (${referencedColumnNames})`;
|
|
1200
|
-
if (fk.onDelete)
|
|
1201
|
-
constraint += ` ON DELETE ${fk.onDelete}`;
|
|
1202
|
-
if (fk.onUpdate)
|
|
1203
|
-
constraint += ` ON UPDATE ${fk.onUpdate}`;
|
|
1204
|
-
if (fk.deferrable)
|
|
1205
|
-
constraint += ` DEFERRABLE ${fk.deferrable}`;
|
|
1206
|
-
return constraint;
|
|
1207
|
-
})
|
|
1208
|
-
.join(", ");
|
|
1209
|
-
sql += `, ${foreignKeysSql}`;
|
|
1210
|
-
}
|
|
1211
|
-
if (primaryColumns.length > 1) {
|
|
1212
|
-
const columnNames = primaryColumns
|
|
1213
|
-
.map((column) => `"${column.name}"`)
|
|
1214
|
-
.join(", ");
|
|
1215
|
-
sql += `, PRIMARY KEY (${columnNames})`;
|
|
1216
|
-
}
|
|
1217
|
-
sql += `)`;
|
|
1218
|
-
if (table.withoutRowid) {
|
|
1219
|
-
sql += " WITHOUT ROWID";
|
|
1220
|
-
}
|
|
1221
|
-
return new Query_1.Query(sql);
|
|
1222
|
-
}
|
|
1223
|
-
/**
|
|
1224
|
-
* Builds drop table sql.
|
|
1225
|
-
*/
|
|
1226
|
-
dropTableSql(tableOrName, ifExist) {
|
|
1227
|
-
const tableName = InstanceChecker_1.InstanceChecker.isTable(tableOrName)
|
|
1228
|
-
? tableOrName.name
|
|
1229
|
-
: tableOrName;
|
|
1230
|
-
const query = ifExist
|
|
1231
|
-
? `DROP TABLE IF EXISTS ${this.escapePath(tableName)}`
|
|
1232
|
-
: `DROP TABLE ${this.escapePath(tableName)}`;
|
|
1233
|
-
return new Query_1.Query(query);
|
|
1234
|
-
}
|
|
1235
|
-
createViewSql(view) {
|
|
1236
|
-
if (typeof view.expression === "string") {
|
|
1237
|
-
return new Query_1.Query(`CREATE VIEW "${view.name}" AS ${view.expression}`);
|
|
1238
|
-
}
|
|
1239
|
-
else {
|
|
1240
|
-
return new Query_1.Query(`CREATE VIEW "${view.name}" AS ${view
|
|
1241
|
-
.expression(this.connection)
|
|
1242
|
-
.getQuery()}`);
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
insertViewDefinitionSql(view) {
|
|
1246
|
-
const expression = typeof view.expression === "string"
|
|
1247
|
-
? view.expression.trim()
|
|
1248
|
-
: view.expression(this.connection).getQuery();
|
|
1249
|
-
return this.insertTypeormMetadataSql({
|
|
1250
|
-
type: MetadataTableType_1.MetadataTableType.VIEW,
|
|
1251
|
-
name: view.name,
|
|
1252
|
-
value: expression,
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
/**
|
|
1256
|
-
* Builds drop view sql.
|
|
1257
|
-
*/
|
|
1258
|
-
dropViewSql(viewOrPath) {
|
|
1259
|
-
const viewName = InstanceChecker_1.InstanceChecker.isView(viewOrPath)
|
|
1260
|
-
? viewOrPath.name
|
|
1261
|
-
: viewOrPath;
|
|
1262
|
-
return new Query_1.Query(`DROP VIEW "${viewName}"`);
|
|
1263
|
-
}
|
|
1264
|
-
/**
|
|
1265
|
-
* Builds remove view sql.
|
|
1266
|
-
*/
|
|
1267
|
-
deleteViewDefinitionSql(viewOrPath) {
|
|
1268
|
-
const viewName = InstanceChecker_1.InstanceChecker.isView(viewOrPath)
|
|
1269
|
-
? viewOrPath.name
|
|
1270
|
-
: viewOrPath;
|
|
1271
|
-
return this.deleteTypeormMetadataSql({
|
|
1272
|
-
type: MetadataTableType_1.MetadataTableType.VIEW,
|
|
1273
|
-
name: viewName,
|
|
1274
|
-
});
|
|
1275
|
-
}
|
|
1276
|
-
/**
|
|
1277
|
-
* Builds create index sql.
|
|
1278
|
-
*/
|
|
1279
|
-
createIndexSql(table, index) {
|
|
1280
|
-
const columns = index.columnNames
|
|
1281
|
-
.map((columnName) => `"${columnName}"`)
|
|
1282
|
-
.join(", ");
|
|
1283
|
-
const [database, tableName] = this.splitTablePath(table.name);
|
|
1284
|
-
return new Query_1.Query(`CREATE ${index.isUnique ? "UNIQUE " : ""}INDEX ${database ? `"${database}".` : ""}${this.escapePath(index.name)} ON "${tableName}" (${columns}) ${index.where ? "WHERE " + index.where : ""}`);
|
|
1285
|
-
}
|
|
1286
|
-
/**
|
|
1287
|
-
* Builds drop index sql.
|
|
1288
|
-
*/
|
|
1289
|
-
dropIndexSql(indexOrName) {
|
|
1290
|
-
const indexName = InstanceChecker_1.InstanceChecker.isTableIndex(indexOrName)
|
|
1291
|
-
? indexOrName.name
|
|
1292
|
-
: indexOrName;
|
|
1293
|
-
return new Query_1.Query(`DROP INDEX ${this.escapePath(indexName)}`);
|
|
1294
|
-
}
|
|
1295
|
-
/**
|
|
1296
|
-
* Builds a query for create column.
|
|
1297
|
-
*/
|
|
1298
|
-
buildCreateColumnSql(column, skipPrimary) {
|
|
1299
|
-
let c = '"' + column.name + '"';
|
|
1300
|
-
if (InstanceChecker_1.InstanceChecker.isColumnMetadata(column)) {
|
|
1301
|
-
c += " " + this.driver.normalizeType(column);
|
|
1302
|
-
}
|
|
1303
|
-
else {
|
|
1304
|
-
c += " " + this.connection.driver.createFullType(column);
|
|
1305
|
-
}
|
|
1306
|
-
if (column.enum)
|
|
1307
|
-
c +=
|
|
1308
|
-
' CHECK( "' +
|
|
1309
|
-
column.name +
|
|
1310
|
-
'" IN (' +
|
|
1311
|
-
column.enum.map((val) => "'" + val + "'").join(",") +
|
|
1312
|
-
") )";
|
|
1313
|
-
if (column.isPrimary && !skipPrimary)
|
|
1314
|
-
c += " PRIMARY KEY";
|
|
1315
|
-
if (column.isGenerated === true &&
|
|
1316
|
-
column.generationStrategy === "increment")
|
|
1317
|
-
// don't use skipPrimary here since updates can update already exist primary without auto inc.
|
|
1318
|
-
c += " AUTOINCREMENT";
|
|
1319
|
-
if (column.collation)
|
|
1320
|
-
c += " COLLATE " + column.collation;
|
|
1321
|
-
if (column.isNullable !== true)
|
|
1322
|
-
c += " NOT NULL";
|
|
1323
|
-
if (column.asExpression) {
|
|
1324
|
-
c += ` AS (${column.asExpression}) ${column.generatedType ? column.generatedType : "VIRTUAL"}`;
|
|
1325
|
-
}
|
|
1326
|
-
else {
|
|
1327
|
-
if (column.default !== undefined && column.default !== null)
|
|
1328
|
-
c += " DEFAULT (" + column.default + ")";
|
|
1329
|
-
}
|
|
1330
|
-
return c;
|
|
1331
|
-
}
|
|
1332
|
-
async recreateTable(newTable, oldTable, migrateData = true) {
|
|
1333
|
-
const upQueries = [];
|
|
1334
|
-
const downQueries = [];
|
|
1335
|
-
// drop old table indices
|
|
1336
|
-
oldTable.indices.forEach((index) => {
|
|
1337
|
-
upQueries.push(this.dropIndexSql(index));
|
|
1338
|
-
downQueries.push(this.createIndexSql(oldTable, index));
|
|
1339
|
-
});
|
|
1340
|
-
// change table name into 'temporary_table'
|
|
1341
|
-
let [databaseNew, tableNameNew] = this.splitTablePath(newTable.name);
|
|
1342
|
-
const [, tableNameOld] = this.splitTablePath(oldTable.name);
|
|
1343
|
-
newTable.name = tableNameNew = `${databaseNew ? `${databaseNew}.` : ""}temporary_${tableNameNew}`;
|
|
1344
|
-
// create new table
|
|
1345
|
-
upQueries.push(this.createTableSql(newTable, true, true));
|
|
1346
|
-
downQueries.push(this.dropTableSql(newTable));
|
|
1347
|
-
// migrate all data from the old table into new table
|
|
1348
|
-
if (migrateData) {
|
|
1349
|
-
let newColumnNames = newTable.columns
|
|
1350
|
-
.filter((column) => !column.generatedType)
|
|
1351
|
-
.map((column) => `"${column.name}"`);
|
|
1352
|
-
let oldColumnNames = oldTable.columns
|
|
1353
|
-
.filter((column) => !column.generatedType)
|
|
1354
|
-
.map((column) => `"${column.name}"`);
|
|
1355
|
-
if (oldColumnNames.length < newColumnNames.length) {
|
|
1356
|
-
newColumnNames = newTable.columns
|
|
1357
|
-
.filter((column) => {
|
|
1358
|
-
const oldColumn = oldTable.columns.find((c) => c.name === column.name);
|
|
1359
|
-
if (oldColumn && oldColumn.generatedType)
|
|
1360
|
-
return false;
|
|
1361
|
-
return !column.generatedType && oldColumn;
|
|
1362
|
-
})
|
|
1363
|
-
.map((column) => `"${column.name}"`);
|
|
1364
|
-
}
|
|
1365
|
-
else if (oldColumnNames.length > newColumnNames.length) {
|
|
1366
|
-
oldColumnNames = oldTable.columns
|
|
1367
|
-
.filter((column) => {
|
|
1368
|
-
return (!column.generatedType &&
|
|
1369
|
-
newTable.columns.find((c) => c.name === column.name));
|
|
1370
|
-
})
|
|
1371
|
-
.map((column) => `"${column.name}"`);
|
|
1372
|
-
}
|
|
1373
|
-
upQueries.push(new Query_1.Query(`INSERT INTO ${this.escapePath(newTable.name)}(${newColumnNames.join(", ")}) SELECT ${oldColumnNames.join(", ")} FROM ${this.escapePath(oldTable.name)}`));
|
|
1374
|
-
downQueries.push(new Query_1.Query(`INSERT INTO ${this.escapePath(oldTable.name)}(${oldColumnNames.join(", ")}) SELECT ${newColumnNames.join(", ")} FROM ${this.escapePath(newTable.name)}`));
|
|
1375
|
-
}
|
|
1376
|
-
// drop old table
|
|
1377
|
-
upQueries.push(this.dropTableSql(oldTable));
|
|
1378
|
-
downQueries.push(this.createTableSql(oldTable, true));
|
|
1379
|
-
// rename old table
|
|
1380
|
-
upQueries.push(new Query_1.Query(`ALTER TABLE ${this.escapePath(newTable.name)} RENAME TO ${this.escapePath(tableNameOld)}`));
|
|
1381
|
-
downQueries.push(new Query_1.Query(`ALTER TABLE ${this.escapePath(oldTable.name)} RENAME TO ${this.escapePath(tableNameNew)}`));
|
|
1382
|
-
newTable.name = oldTable.name;
|
|
1383
|
-
// recreate table indices
|
|
1384
|
-
newTable.indices.forEach((index) => {
|
|
1385
|
-
// new index may be passed without name. In this case we generate index name manually.
|
|
1386
|
-
if (!index.name)
|
|
1387
|
-
index.name = this.connection.namingStrategy.indexName(newTable, index.columnNames, index.where);
|
|
1388
|
-
upQueries.push(this.createIndexSql(newTable, index));
|
|
1389
|
-
downQueries.push(this.dropIndexSql(index));
|
|
1390
|
-
});
|
|
1391
|
-
// update generated columns in "typeorm_metadata" table
|
|
1392
|
-
// Step 1: clear data for removed generated columns
|
|
1393
|
-
oldTable.columns
|
|
1394
|
-
.filter((column) => {
|
|
1395
|
-
const newTableColumn = newTable.columns.find((c) => c.name === column.name);
|
|
1396
|
-
// we should delete record from "typeorm_metadata" if generated column was removed
|
|
1397
|
-
// or it was changed to non-generated
|
|
1398
|
-
return (column.generatedType &&
|
|
1399
|
-
column.asExpression &&
|
|
1400
|
-
(!newTableColumn ||
|
|
1401
|
-
(!newTableColumn.generatedType &&
|
|
1402
|
-
!newTableColumn.asExpression)));
|
|
1403
|
-
})
|
|
1404
|
-
.forEach((column) => {
|
|
1405
|
-
const deleteQuery = this.deleteTypeormMetadataSql({
|
|
1406
|
-
table: oldTable.name,
|
|
1407
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
1408
|
-
name: column.name,
|
|
1409
|
-
});
|
|
1410
|
-
const insertQuery = this.insertTypeormMetadataSql({
|
|
1411
|
-
table: oldTable.name,
|
|
1412
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
1413
|
-
name: column.name,
|
|
1414
|
-
value: column.asExpression,
|
|
1415
|
-
});
|
|
1416
|
-
upQueries.push(deleteQuery);
|
|
1417
|
-
downQueries.push(insertQuery);
|
|
1418
|
-
});
|
|
1419
|
-
// Step 2: add data for new generated columns
|
|
1420
|
-
newTable.columns
|
|
1421
|
-
.filter((column) => column.generatedType &&
|
|
1422
|
-
column.asExpression &&
|
|
1423
|
-
!oldTable.columns.some((c) => c.name === column.name))
|
|
1424
|
-
.forEach((column) => {
|
|
1425
|
-
const insertQuery = this.insertTypeormMetadataSql({
|
|
1426
|
-
table: newTable.name,
|
|
1427
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
1428
|
-
name: column.name,
|
|
1429
|
-
value: column.asExpression,
|
|
1430
|
-
});
|
|
1431
|
-
const deleteQuery = this.deleteTypeormMetadataSql({
|
|
1432
|
-
table: newTable.name,
|
|
1433
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
1434
|
-
name: column.name,
|
|
1435
|
-
});
|
|
1436
|
-
upQueries.push(insertQuery);
|
|
1437
|
-
downQueries.push(deleteQuery);
|
|
1438
|
-
});
|
|
1439
|
-
// Step 3: update changed expressions
|
|
1440
|
-
newTable.columns
|
|
1441
|
-
.filter((column) => column.generatedType && column.asExpression)
|
|
1442
|
-
.forEach((column) => {
|
|
1443
|
-
const oldColumn = oldTable.columns.find((c) => c.name === column.name &&
|
|
1444
|
-
c.generatedType &&
|
|
1445
|
-
column.generatedType &&
|
|
1446
|
-
c.asExpression !== column.asExpression);
|
|
1447
|
-
if (!oldColumn)
|
|
1448
|
-
return;
|
|
1449
|
-
// update expression
|
|
1450
|
-
const deleteQuery = this.deleteTypeormMetadataSql({
|
|
1451
|
-
table: oldTable.name,
|
|
1452
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
1453
|
-
name: oldColumn.name,
|
|
1454
|
-
});
|
|
1455
|
-
const insertQuery = this.insertTypeormMetadataSql({
|
|
1456
|
-
table: newTable.name,
|
|
1457
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
1458
|
-
name: column.name,
|
|
1459
|
-
value: column.asExpression,
|
|
1460
|
-
});
|
|
1461
|
-
upQueries.push(deleteQuery);
|
|
1462
|
-
upQueries.push(insertQuery);
|
|
1463
|
-
// revert update
|
|
1464
|
-
const revertInsertQuery = this.insertTypeormMetadataSql({
|
|
1465
|
-
table: newTable.name,
|
|
1466
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
1467
|
-
name: oldColumn.name,
|
|
1468
|
-
value: oldColumn.asExpression,
|
|
1469
|
-
});
|
|
1470
|
-
const revertDeleteQuery = this.deleteTypeormMetadataSql({
|
|
1471
|
-
table: oldTable.name,
|
|
1472
|
-
type: MetadataTableType_1.MetadataTableType.GENERATED_COLUMN,
|
|
1473
|
-
name: column.name,
|
|
1474
|
-
});
|
|
1475
|
-
downQueries.push(revertInsertQuery);
|
|
1476
|
-
downQueries.push(revertDeleteQuery);
|
|
1477
|
-
});
|
|
1478
|
-
await this.executeQueries(upQueries, downQueries);
|
|
1479
|
-
this.replaceCachedTable(oldTable, newTable);
|
|
1480
|
-
}
|
|
1481
|
-
/**
|
|
1482
|
-
* tablePath e.g. "myDB.myTable", "myTable"
|
|
1483
|
-
*/
|
|
1484
|
-
splitTablePath(tablePath) {
|
|
1485
|
-
return (tablePath.indexOf(".") !== -1
|
|
1486
|
-
? tablePath.split(".")
|
|
1487
|
-
: [undefined, tablePath]);
|
|
1488
|
-
}
|
|
1489
|
-
/**
|
|
1490
|
-
* Escapes given table or view path. Tolerates leading/trailing dots
|
|
1491
|
-
*/
|
|
1492
|
-
escapePath(target, disableEscape) {
|
|
1493
|
-
const tableName = InstanceChecker_1.InstanceChecker.isTable(target) || InstanceChecker_1.InstanceChecker.isView(target)
|
|
1494
|
-
? target.name
|
|
1495
|
-
: target;
|
|
1496
|
-
return tableName
|
|
1497
|
-
.replace(/^\.+|\.+$/g, "")
|
|
1498
|
-
.split(".")
|
|
1499
|
-
.map((i) => (disableEscape ? i : `"${i}"`))
|
|
1500
|
-
.join(".");
|
|
1501
|
-
}
|
|
1502
|
-
/**
|
|
1503
|
-
* Change table comment.
|
|
1504
|
-
*/
|
|
1505
|
-
changeTableComment(tableOrName, comment) {
|
|
1506
|
-
throw new error_1.TypeORMError(`sqlit driver does not support change comment.`);
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
exports.AbstractSqliteQueryRunner = AbstractSqliteQueryRunner;
|
|
1510
|
-
|
|
1511
|
-
//# sourceMappingURL=AbstractSqliteQueryRunner.js.map
|