graphql-engine/server/src-lib/Hasura/Backends/MSSQL
Antoine Leblanc 04d8f068b6 Remove explicit case on the backend tag in Cache
### Description

As part of the cache building process, we create / update / migrate the catalog that each DB uses as a place to store event trigger information. The function that decides how this should be done was doing an explicit `case ... of` on the backend tag, instead of delegating to one of the backend classes. The downsides of this is that:
- it adds a "friction point" where the backend matters in the core of the engine, which is otherwise written to be almost entirely backend-agnostic
- it creates imports from deep in the engine to the `Backends`, which we try to restrict to a very small set of clearly identified files (the `Instances` files)
- it is currently implemented using a "catch all" default case, which might not always be correct for new backends

This PR makes the catalog updating process a part of `BackendMetadata`, and cleans the corresponding schema cache code.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4457
GitOrigin-RevId: 592f0eaa97a7c38f4e6d4400e1d2353aab12c97e
2022-05-05 13:44:56 +00:00
..
DDL Remove explicit case on the backend tag in Cache 2022-05-05 13:44:56 +00:00
Execute server: support query tags for MSSQL data sources 2022-04-28 19:34:45 +00:00
FromIr replace SQLOperator with ScalarSelectionArguments 2022-05-03 09:00:01 +00:00
Instances Remove explicit case on the backend tag in Cache 2022-05-05 13:44:56 +00:00
Schema Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
SQL Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Types server/mssql: avoid encoding varchar values while generating SQL 2022-04-26 13:48:37 +00:00
Connection.hs server/MSSQL: Event Delivery System (Incremental PR - 3) 2022-04-21 07:20:34 +00:00
DDL.hs Customization of computed field GraphQL schema descriptions 2022-02-15 23:17:27 +00:00
FromIr.hs Tidy up MSSQL.FromIr 2022-03-10 10:34:52 +00:00
Meta.hs server/MSSQL: Event Delivery System (Incremental PR - 3) 2022-04-21 07:20:34 +00:00
Plan.hs server: X -> MSSQL remote joins 2022-04-06 07:20:10 +00:00
ToQuery.hs server: support query tags for MSSQL data sources 2022-04-28 19:34:45 +00:00
Types.hs Add docstrings to the module headers of a few selected mssql modules 2022-01-03 17:17:18 +00:00