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

Switching schema on the fly #61

Open
mvrhov opened this issue Feb 24, 2016 · 1 comment
Open

Switching schema on the fly #61

mvrhov opened this issue Feb 24, 2016 · 1 comment

Comments

@mvrhov
Copy link

mvrhov commented Feb 24, 2016

I'm working on a multi-tenant application, where the connection pooler would connect to an admin db, to get the information about the tenant's db an schema, and then connect to the db an set proper search path, the problem is that all Models include the schema name.

Having an option when Models are generated to disable prefixing a relation with a schema name would solve this problem.

@chanmix51 chanmix51 added the bug label Feb 25, 2016
@chanmix51 chanmix51 added this to the 2.1 milestone Feb 25, 2016
@chanmix51
Copy link
Member

The way the schema and relation are handled in the structure classes is actually an architectural problem in Pomm 2.0. The way it is done does not permit to escape them properly or to dissociate them.

The problem is how to fix that problem without breaking BC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants