graphql-engine/server/src-lib/Hasura/RQL/DDL
Vladimir Ciobanu da8f6981d4 server: reduce the number of backend dispatches
Fixes https://github.com/hasura/graphql-engine-mono/issues/712

Main point of interest: the `Hasura.SQL.Backend` module.

This PR creates an `Exists` type indexed by indexed type and packed constraint while hiding all of its complexity by not exporting the constructor.

Existential constructors/types which are no longer (directly) existential:
- [X] BackendSourceInfo :: BackendSourceInfo
- [x] BackendSourceMetadata :: BackendSourceMetadata
- [x] MOSourceObjId :: MetadatObjId
- [x] SOSourceObj :: SchemaObjId
- [x] RFDB :: RootField
- [x] LQP :: LiveQueryPlan
- [x] ExecutionStep :: ExecStepDB

This PR also removes ALL usages of `Typeable.cast` from our codebase. We still need to derive `Typeable` in a few places in order to be able to derive `Data` in one place. I have not dug deeper to see why this is needed.

GitOrigin-RevId: bb47e957192e4bb0af4c4116aee7bb92f7983445
2021-03-15 13:03:55 +00:00
..
Metadata server: reduce the number of backend dispatches 2021-03-15 13:03:55 +00:00
Permission [Preview] Inherited roles for postgres read queries 2021-03-08 11:15:10 +00:00
Relationship server: add MSSQL support 2021-02-23 17:38:36 +00:00
RemoteRelationship server: generalize schema cache building (#496) 2021-02-14 06:08:46 +00:00
RemoteSchema Merge pull request #113 from hasura/karthikeyan/remote-schema-permissions 2020-12-21 09:12:35 +00:00
Schema server: reduce the number of backend dispatches 2021-03-15 13:03:55 +00:00
Action.hs server: generalize schema cache building (#496) 2021-02-14 06:08:46 +00:00
ApiLimit.hs server: multitenant metadata storage 2021-02-11 17:55:21 +00:00
ComputedField.hs server: reduce the number of backend dispatches 2021-03-15 13:03:55 +00:00
CustomTypes.hs server: generalize schema cache building (#496) 2021-02-14 06:08:46 +00:00
Deps.hs server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
Endpoint.hs server: support restified versions of graphql queries (#303) 2021-01-29 01:03:35 +00:00
EventTrigger.hs server: reduce the number of backend dispatches 2021-03-15 13:03:55 +00:00
Headers.hs server: remove a few unused Lift instances (#114) 2020-11-26 13:58:07 +00:00
InheritedRoles.hs [Preview] Inherited roles for postgres read queries 2021-03-08 11:15:10 +00:00
Metadata.hs server: reduce the number of backend dispatches 2021-03-15 13:03:55 +00:00
Permission.hs server: reduce the number of backend dispatches 2021-03-15 13:03:55 +00:00
QueryCollection.hs server: RQL code health 2021-01-08 23:10:36 +00:00
Relationship.hs server: reduce the number of backend dispatches 2021-03-15 13:03:55 +00:00
RemoteRelationship.hs server: reduce the number of backend dispatches 2021-03-15 13:03:55 +00:00
RemoteSchema.hs server: new function permissions layer 2021-01-29 05:49:09 +00:00
ScheduledTrigger.hs server: support for maintenance mode in v1.4 2021-02-18 16:47:22 +00:00
Schema.hs server: add MSSQL support 2021-02-23 17:38:36 +00:00