Postgres set session variables #510
Unanswered
svetozar02
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are planning to use DB row level security to ensure that the user only gets access to rows they are allowed to. This means that before each SQL is executed we need to set session variables that are specific to the user that is executing that query.
Any idea on how this can be accomplished?
Should we call https://vanna.ai/docs/base/#vanna.base.base.VannaBase.get_sql_prompt to get SQL and then just execute it however we want to? Bascially, we wouldn't use vanna's https://vanna.ai/docs/base/#vanna.base.base.VannaBase.run_sql
Beta Was this translation helpful? Give feedback.
All reactions