Propagate user settings (language) to DB_CONNECTION_MUTATOR #22101
Unanswered
nklinked
asked this question in
Q&A / Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear community,
I would appreciate any feedback on the question, since I am stuck a bit trying to get it resolved.
Let us imagine that we use DB_CONNECTION_MUTATOR to adjust some of the params in the SQL connection string in the following way:
The target database can intercept the query and apply some additional logic on filtering data or getting the locale-dependent values. Is there any option to get the propagate user settings, e.g. the preferred/selected language so we can handle it as a connection string variable while fetching the resultset?
Any help will be much appreciated! :)
UPD: The option with the Jinja templating might not be fully suitable, since the language parameter cannot be passed within the SQL query
Beta Was this translation helpful? Give feedback.
All reactions