graphql-engine/server/src-lib/Hasura/Backends/MSSQL
Antoine Leblanc d91029ad51 [gardening] remove all traverse functions from RQL.IR
### Description

This PR removes all `fmapX` and `traverseX` functions from RQL.IR, favouring instead `Functor` and `Traversable` instances throughout the code. This was a relatively straightforward change, except for two small pain points: `AnnSelectG` and `AnnInsert`. Both were parametric over two types `a` and `v`, making it impossible to make them traversable functors... But it turns out that in every single use case, `a ~ f v`. By changing those types to take such an `f :: Type -> Type` as an argument instead of `a :: Type` makes it possible to make them functors.

The only small difference is for `AnnIns`, I had to introduce one `Identity` transformation for one of the `f` parameters. This is relatively straightforward.

### Notes

This PR fixes the most verbose BigQuery hint (`let` instead of `<- pure`).

https://github.com/hasura/graphql-engine-mono/pull/1668

GitOrigin-RevId: e632263a8c559aa04aeae10dcaec915b4a81ad1a
2021-07-08 15:42:53 +00:00
..
DDL server: misc cleanups 2021-06-15 15:06:37 +00:00
Instances server: delegate Metadata API parsing to a new backend class 2021-07-07 01:44:41 +00:00
SQL server: misc cleanups 2021-06-15 15:06:37 +00:00
Types server: misc cleanups 2021-06-15 15:06:37 +00:00
Connection.hs server: mssql: apply schema changes by mssql_run_sql DDL on metadata (fix #779) 2021-05-27 15:07:10 +00:00
DDL.hs server: support remote relationships on SQL Server and BigQuery (#1497) 2021-06-11 03:27:39 +00:00
FromIr.hs [gardening] remove all traverse functions from RQL.IR 2021-07-08 15:42:53 +00:00
Meta.hs server: Updates 'pg-client-hs', fixes explicit conversions 2021-06-18 17:00:24 +00:00
Plan.hs [gardening] remove all traverse functions from RQL.IR 2021-07-08 15:42:53 +00:00
ToQuery.hs server: misc cleanups 2021-06-15 15:06:37 +00:00
Types.hs mssql: connection pooling 2021-02-25 18:16:52 +00:00