Re: Choosing database settings based on request?

2008-04-29 Thread dimrub
What you can try out is the following approach (a variation of which I use in order to customize the data being presented based on the identity of the currently logged in user). 1. Create a middleware that pushes the relevant info from the request into a thread local storage. 2. Create a custom m

Choosing database settings based on request?

2008-04-29 Thread Tim Chase
While playing around, I found myself wandering down this path, wondering if anybody else had been here before. In summary, I'm wondering if there's an easy way to jockey my DB settings based on information completely self-contained within the request. In longer detail... In this case, it was