Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support building a PostGraphile schema across multiple postgres databases #192

Merged
merged 6 commits into from
Feb 13, 2023

Conversation

benjie
Copy link
Member

@benjie benjie commented Feb 13, 2023

This was technically already possible, but now it's easy:

const preset = {
  pgConfigs: [
    makePgConfig({
      name: "main",
      connectionString: "main_db",
    }),
    makePgConfig({
      name: "other",
      connectionString: "other_db",
      schemas: ["a", "b", "c"],
    }),

…makePgConfig`

- Conflicts in `pgConfigs` (e.g. multiple sources using the same 'name') now detected and output
- `makePgConfig` now allows passing `pgSettings` callback and `pgSettingsForIntrospection` config object
@benjie benjie merged commit a568bd3 into planning Feb 13, 2023
@benjie benjie deleted the multi-postgres branch February 13, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant