graphql-engine/server/src-lib/Hasura/RQL/DDL
Antoine Leblanc 4815fcd500 server: progress on generic metadata
This PR generalizes a bunch of metadata structures.

Most importantly, it changes `SourceCache` to hold existentially quantified values:
```
data BackendSourceInfo =
  forall b. Backend b => BackendSourceInfo (SourceInfo b)

type SourceCache = HashMap SourceName BackendSourceInfo
```

This changes a *lot* of things throughout the code. For now, all code using the schema cache explicitly casts sources to Postgres, meaning that if any non-Postgres `SourceInfo` makes it to the cache, it'll be ignored.

That means that after this PR is submitted, we can split work between two different aspects:
  - creating `SourceInfo` for other backends
  - handling those other sources down the line

GitOrigin-RevId: fb9ea00f32e840fc33c5467896fb1dfa5283ab42
2021-01-20 00:32:45 +00:00
..
Metadata server: simplify JSON instances 2021-01-19 19:15:42 +00:00
Permission server: simplify JSON instances 2021-01-19 19:15:42 +00:00
Relationship server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
RemoteRelationship Server: Remote relationships permissions 2021-01-19 20:57:58 +00:00
RemoteSchema Merge pull request #113 from hasura/karthikeyan/remote-schema-permissions 2020-12-21 09:12:35 +00:00
Schema server: progress on generic metadata 2021-01-20 00:32:45 +00:00
Action.hs server: simplify JSON instances 2021-01-19 19:15:42 +00:00
ComputedField.hs server: simplify JSON instances 2021-01-19 19:15:42 +00:00
CustomTypes.hs server: progress on generic metadata 2021-01-20 00:32:45 +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
EventTrigger.hs server: progress on generic metadata 2021-01-20 00:32:45 +00:00
Headers.hs server: remove a few unused Lift instances (#114) 2020-11-26 13:58:07 +00:00
Metadata.hs server: progress on generic metadata 2021-01-20 00:32:45 +00:00
Permission.hs server: simplify JSON instances 2021-01-19 19:15:42 +00:00
QueryCollection.hs server: RQL code health 2021-01-08 23:10:36 +00:00
Relationship.hs server: progress on generic metadata 2021-01-20 00:32:45 +00:00
RemoteRelationship.hs Server: Remote relationships permissions 2021-01-19 20:57:58 +00:00
RemoteSchema.hs server: RQL code health 2021-01-08 23:10:36 +00:00
ScheduledTrigger.hs server: multi source metadata APIs (#217) 2021-01-07 09:05:19 +00:00
Schema.hs server: progress on generic metadata 2021-01-20 00:32:45 +00:00