We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, we have a multi tenant application and we choose doobie for our sql.
Do we have a method in doobie to have a multi tenant application to force a filter for each transaction ?
For example hook transactor ? Fragment hooks ?
The text was updated successfully, but these errors were encountered:
You can modify Strategy.before to execute some ConnectionIO[Unit] in the beginning of each transaction that is executed with the modified Transactor.
Strategy.before
ConnectionIO[Unit]
Transactor
val additionalBefore: ConnectionIO[Unit] = sql"SET search_path = ...".run.void // append an additional action to an existing one val transactor0 = Transactor.before.modify(transactor, _ *> additionalBefore)
Sorry, something went wrong.
Thank you I'll try it.
No branches or pull requests
Hello,
we have a multi tenant application and we choose doobie for our sql.
Do we have a method in doobie to have a multi tenant application to force a filter for each transaction ?
For example hook transactor ?
Fragment hooks ?
The text was updated successfully, but these errors were encountered: