Dynamically changing the database shard that I am connecting to

I want to have a pool of database connections connecting to different based databases.

In each request I will pass to tenant / customerId and based on the customerId I will choose which database to connect and use for the current request.

Is this something that can be done with Slick out of the box?


source to share

1 answer

Not supported out of the box, but I don't think it's too difficult to implement. I created a ticket: https://github.com/slick/slick/issues/703



All Articles