question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature: allow changing of "public" schema with env variable

See original GitHub issue

While trying to add Hasura onto an existing DB, I recently found that all tables within any schema other than public are prefixed with that schema’s name. e.g. hasura_users

I think it’d be really helpful for adding Hasura to an existing DB if an environment variable could be set that would replace the default public schema as the unprefixed queries. e.g. HASURA_DEFAULT_SCHEMA=hasura which would then unprefix any tables in the hasura schema - making the above just users.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:22
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xiaoyu-tamucommented, Sep 19, 2021

Any updates?

1reaction
jozef-slezakcommented, Apr 14, 2021

@rakeshkky, it would really help to have HASURA_DEFAULT_SCHEMA=public. I believe it should be easy to implement. What is the chance of merging a pull request in case of contribution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing .env files and setting variables - Prisma
Learn how to manage .env files and set environment variables.
Read more >
Using Environment Variables | Cloud Functions Documentation
All environment variables are bound to a deployment of a Cloud Function, and can only be set or changed with a deployment. If...
Read more >
Introduction to environment variables - CircleCI
To change the value of an environment variable, delete the current variable, ... enable you to store secrets safely, even when your project...
Read more >
Environment variables and app settings in Azure App Service
(NOTE: This app setting does not change the path used by AlwaysOn.) WEBSITE_COMPUTE_MODE, Read-only. Specifies whether app runs on dedicated ( ...
Read more >
Environment variables - AWS Amplify Hosting
Environment variables are key-value pairs that are available at build time. ... variable to true to allow a GraphQL API to be updated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found