Replies: 2 comments 5 replies
-
Some info on diesel integration |
Beta Was this translation helpful? Give feedback.
0 replies
-
As listed in the documentation You have two options to fix that: Either implement |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
cargo version:
cargo 1.80.0 (376290515 2024-07-16)
rust version:
rustc 1.80.1 (3f5fd8dd4 2024-08-06) (built from a source tarball)
Hi Diesel Team,
I'm trying to build a way to change the table schema at runtime. This is to support a multi-tenant setup for a project I'm working on. Earlier I was setting the search path in the connection string and pooling these connections for a particular tenant, but as the number of tenants have increased; I have reached the max number of connections I can make to my postgres instance.
I tried following the advice in this thread and got an implementation done, but I can't get it to work. I get the error:
Not sure what I am missing here. Am I on the right track? I'm looking for guidance and suggestions and how I can implement this correctly.
Example
Beta Was this translation helpful? Give feedback.
All reactions