graphql-engine/server/src-lib/Hasura/Backends/Postgres
Antoine Leblanc 0aaf006c25 server: add metadata for DB-DB remote joins
### Description

This PR is the first of several PRs meant to introduce Generalized Joins. In this first PR, we add non-breaking changes to the Metadata types for DB-to-DB remote joins. Note that we are currently rejecting the new remote join format in order to keep folks from breaking their metadata (in case of a downgrade). These issues will be tackled (and JSON changes reverted) in subsequent PRs.

This PR also changes the way we construct the schema cache, and breaks the way we process sources in two steps: we first resolve each source and construct a cache of their tables' raw info, then in a second step we build the source output. This is so that we have access to the target source's tables when building db-to-db relationships.

### Notes

- this PR contains a few minor cleanups of the schema
- it also fixes a bug in how we do renames in remote schema relationships
- it introduces cross-source schema dependencies

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

Co-authored-by: Evie Ciobanu <1017953+eviefp@users.noreply.github.com>
GitOrigin-RevId: f625473077bc5fff5d941b70e9a116192bc1eb22
2021-07-22 23:07:10 +00:00
..
DDL server: add metadata for DB-DB remote joins 2021-07-22 23:07:10 +00:00
Execute [gardening] remove all traverse functions from RQL.IR 2021-07-08 15:42:53 +00:00
Instances Server: Index RawFunctionInfo by backend 2021-07-19 15:36:09 +00:00
SQL Server: Index RawFunctionInfo by backend 2021-07-19 15:36:09 +00:00
Translate server/postgres: Support scalar computed fields in remote joins 2021-07-12 16:04:37 +00:00
Types server: misc cleanups 2021-06-15 15:06:37 +00:00
Connection.hs server: misc cleanups 2021-06-15 15:06:37 +00:00
DDL.hs server: introduce Hasura.Base (take 2) 2021-05-11 15:19:33 +00:00