Hi Lukas,
of course you're right. I didn't realize that I could use a separate 
configuratin instace per instance. Thank you, and thanks for the great 
library!


Am Mittwoch, 7. Februar 2018 15:17:27 UTC+1 schrieb Lukas Eder:
>
> Hello,
>
> I'm not sure why you're calling the Settings.renderMapping a "stsatic" 
> configuration. You can create a Configuration per request (or cache them in 
> some object pool per tenant) and use those dynamically.
>
> Hope this helps,
> Lukas
>
> 2018-02-07 12:11 GMT+01:00 <yil...@joinpoint.org <javascript:>>:
>
>> Hi in our system every tenant has a separate schema, i.e. it is prefixed 
>> with the tenant's id.
>>
>> I'm trying to find a way to dynamically set schema to be used in JOOQ 
>> queries, but until now i only found static configuration to do this (via 
>> `Settings.withRenderMapping()`).
>> Now in our case the schema that must be used can change on every request 
>> that is served. The tenant-id is known in the request's context and I'd 
>> like the schema-name in generated sql queries to reflect the current tenant.
>>
>> Is there a proper way to achieve this?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "jOOQ User Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jooq-user+...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jooq-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to