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

multi-tenancy & nonstandard schema #96

Open
elee1766 opened this issue Jul 17, 2024 · 2 comments
Open

multi-tenancy & nonstandard schema #96

elee1766 opened this issue Jul 17, 2024 · 2 comments

Comments

@elee1766
Copy link

elee1766 commented Jul 17, 2024

would you be open to MR which supported multi-tenancy?

we have 20+ tenants per environment, and it would be really nice to just connect to all databases in one ui, and then switch between them within the app, instead of host 20 instances of the ui

i imagine something like you say #3 here would work best

{
    "prod": "postgres://.../prod?search_path=river0",
    "staging": "postgres://.../staging?search_path=river0"
}

with the name being encoded into the url. the schema should be declared as a search parameter in that url, so nothing special needs to be done i think for schema.

currently riverui doesn't even work for us since we use a non-standard schema. (although maybe i am using the wrong parameter to set it?)

@elee1766 elee1766 changed the title multi-tenancy multi-tenancy & nonstandard schema Jul 17, 2024
@brandur
Copy link
Collaborator

brandur commented Jul 17, 2024

Seems plausible to one day support multi-tenancy. That's what #3 is really.

currently riverui doesn't even work for us since we use a non-standard schema. (although maybe i am using the wrong parameter to set it?)

It doesn't work even with a search_path in the database URL?

@elee1766
Copy link
Author

Seems plausible to one day support multi-tenancy. That's what #3 is really.

currently riverui doesn't even work for us since we use a non-standard schema. (although maybe i am using the wrong parameter to set it?)

It doesn't work even with a search_path in the database URL?

mmmmm search_path not working; actually this is my bad (error with bouncer config). it works locally. i'll debug more but its' probably my fault

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

No branches or pull requests

2 participants