graphql-engine/server/src-lib/Hasura/RQL/DML
Antoine Leblanc cdf5e3b5f0 Specialize RQL.DML to postgres.
### Description

When generalizing the code, back in late 2020, we over-eagerly generalized parts of the code that are specific to RQL's DML. This was in part due to the fact that, at the time, the DML types were all mixed alongside other types in `RQL.Types`. As a result, a lot of `RQL.DML.Internal` was generic over the backend type, instead of being specialized to `'Postgres 'Vanilla`.

A consequence of this is that, before this PR, `DML.Internal` ended up having a dependency on non-Postgres backends, due to the use of `annBoolExp`, which requires a `BackendMetadata` instance. Since the code was written in a generic manner, `DML.Internal` in turn depended on having the metadata instances in scope... This PR changes that to, instead, explicitly import the Postgres instance.

(Note that this module didn't import `RQL.Types.Metadata.Instances`, but depends on a module that imports it, and **orphan instances are transitively imported**, as evidenced by the need for that explicit import in #4568.)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4573
GitOrigin-RevId: 7b82b5d7c23c03654518a1816802d400f37c3c64
2022-05-27 18:23:19 +00:00
..
Count.hs Specialize RQL.DML to postgres. 2022-05-27 18:23:19 +00:00
Delete.hs Specialize RQL.DML to postgres. 2022-05-27 18:23:19 +00:00
Insert.hs Specialize RQL.DML to postgres. 2022-05-27 18:23:19 +00:00
Internal.hs Specialize RQL.DML to postgres. 2022-05-27 18:23:19 +00:00
Select.hs Specialize RQL.DML to postgres. 2022-05-27 18:23:19 +00:00
Types.hs Yeet some default-extensions 2022-03-16 00:40:17 +00:00
Update.hs Specialize RQL.DML to postgres. 2022-05-27 18:23:19 +00:00