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

Hasura: multiple sources #815

Open
droserasprout opened this issue Aug 31, 2023 · 0 comments
Open

Hasura: multiple sources #815

droserasprout opened this issue Aug 31, 2023 · 0 comments
Labels
community Reported or suggested by our awesome users feature New feature or request

Comments

@droserasprout
Copy link
Member

Multiple DipDup instances should be able to coexist on a single Hasura instance. The following configuration should work but it's not

hasura:
  source: dev
  create_source: True

Custom metadata request:

{
  "type": "pg_add_source",
  "args": {
        "name": "dev",
        "configuration": {
            "connection_info": {
                "database_url": {
                    "from_env": "HASURA_GRAPHQL_DEV_DATABASE_URL"
                }
            },
            "use_prepared_statements": true
        },
        "replace_configuration": true,
        "customization": {
            "root_fields": {
                "prefix": "dev_"
            },
            "type_names": {
                "prefix": "dev_"
            },
            "naming_convention": "hasura-default"
        }
    }
}

Requires HASURA_GRAPHQL_EXPERIMENTAL_FEATURES=naming_convention env. DipDup does not support naming convention API; still marked experimental for some reason.

@droserasprout droserasprout added feature New feature or request community Reported or suggested by our awesome users labels Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Reported or suggested by our awesome users feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant