Skip to content

feat: add custom table names for CasbinRule class and update tests#4

Merged
hsluoyz merged 2 commits intoapache:masterfrom
wf-yamaday:feat/casbin-rule-tablename
Aug 14, 2025
Merged

feat: add custom table names for CasbinRule class and update tests#4
hsluoyz merged 2 commits intoapache:masterfrom
wf-yamaday:feat/casbin-rule-tablename

Conversation

@wf-yamaday
Copy link
Contributor

fix: #3

Summary

  • Add table_name parameter for Adapter class.
  • Define create_casbin_rule_class function to create a CasbinRule class with a custom table name.
  • Add test for custom table name.

@hsluoyz hsluoyz merged commit 0d2b660 into apache:master Aug 14, 2025
6 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CasbinRule change just __tablename__

2 participants