Open praseetha-nair opened 1 year ago
If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.
Related: #6780
Need to pass some variable to PostgreSQL current_setting to fetch store specific data in multi-tenant application. On checking PostgresDriver package code, there is an option to SET current settings variable as following
I need to set one(or more) additional current settings variable, so that my view will return current store specific data only.
Describe the solution you'd like I need an option to pass some additional variables and it should loop and set current settings before running the cube queries.
PostgresDriver Initialization
prepareConnection function should loop options given and set variable accordingly.