New issue
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
[Question] Customizing casbin_rule table name #74
Labels
Comments
@arafat-java what adapter do you use? Customizing casbin_rule table name is usually provided by each adapter instead of the main lib. |
We are using https://github.com/casbin/gorm-adapter |
@arafat-java see: Lines 158 to 177 in d4ad5d9
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's your scenario? What do you want to achieve?
We are working on a cloud based offering and planning to use casbin.
In that we would like to segregate tenant's data and for that we would like to create separate casbin_rules tables for each tenant.
I know that we have the provision for seperate databases and that we can pass in the connection string
But we don't want to have that many databases.
So our requirement is that instead of the default table name casbin_rule how can we have that table name customized to something like tenant1_casbin_rule, tenant1_casbin_rule... tenantn_casbin_rule
The text was updated successfully, but these errors were encountered: