Title: Warning with declarative base in SQLAlchemy · Issue #11 · apache/casbin-python-sqlalchemy-adapter · GitHub
Open Graph Title: Warning with declarative base in SQLAlchemy · Issue #11 · apache/casbin-python-sqlalchemy-adapter
X Title: Warning with declarative base in SQLAlchemy · Issue #11 · apache/casbin-python-sqlalchemy-adapter
Description: SQLAlchemy shows a warning when there are multiple tables with the same name. This might be caused by create_casbin_rule_class when db_class=None in __init__. I think it's because the class is re-declared and SQLAlchemy doesn't process t...
Open Graph Description: SQLAlchemy shows a warning when there are multiple tables with the same name. This might be caused by create_casbin_rule_class when db_class=None in __init__. I think it's because the class is re-d...
X Description: SQLAlchemy shows a warning when there are multiple tables with the same name. This might be caused by create_casbin_rule_class when db_class=None in __init__. I think it's because the class is ...
Opengraph URL: https://github.com/apache/casbin-python-sqlalchemy-adapter/issues/11
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Warning with declarative base in SQLAlchemy","articleBody":"SQLAlchemy shows a warning when there are multiple tables with the same name. This might be caused by `create_casbin_rule_class` when `db_class=None` in `__init__`.\n\nI think it's because the class is re-declared and SQLAlchemy doesn't process that it's a dynamic table.\n\nThis warning appears during the adapter tests.\n\n```python\nRun coverage run -m unittest discover -s tests -t tests\n/home/runner/work/sqlalchemy-adapter/sqlalchemy-adapter/sqlalchemy_adapter/adapter.py:33: SAWarning: This declarative base already contains a class with the same class name and module name as sqlalchemy_adapter.adapter.CasbinRule, and will be replaced in the string-lookup table.\n class CasbinRule(Base):\n```","author":{"url":"https://github.com/nonodev96","@type":"Person","name":"nonodev96"},"datePublished":"2025-11-17T15:41:28Z","url":"https://github.com/apache/casbin-python-sqlalchemy-adapter/issues/11"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:05e5be2c-cfdf-b501-2782-ec96461db5e1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1E6:27A67B:219D37:2D2A06:6B04B4ED |
| html-safe-nonce | 2de70cda3cb7c48f4cf7671942d88e1adfa5e84b5ee8c94e9ef7a6571f2321be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUU2OjI3QTY3QjoyMTlEMzc6MkQyQTA2OjZCMDRCNEVEIiwidmlzaXRvcl9pZCI6IjM4OTI4NjkyNzI2NzgyMTY5NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b70196655c348be02ccda1a08393db73b7fdeb9cf2f65b271678704e6a6bf717 |
| hovercard-subject-tag | issue:3633874639 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/casbin-python-sqlalchemy-adapter/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/692d1e944144247e8cd60366174c6a17a21a71cc38b2506486141404c09621b8/apache/casbin-python-sqlalchemy-adapter/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/692d1e944144247e8cd60366174c6a17a21a71cc38b2506486141404c09621b8/apache/casbin-python-sqlalchemy-adapter/issues/11 |
| og:image:alt | SQLAlchemy shows a warning when there are multiple tables with the same name. This might be caused by create_casbin_rule_class when db_class=None in __init__. I think it's because the class is re-d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nonodev96 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/casbin-python-sqlalchemy-adapter git https://github.com/apache/casbin-python-sqlalchemy-adapter.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 878922594 |
| octolytics-dimension-repository_nwo | apache/casbin-python-sqlalchemy-adapter |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 878922594 |
| octolytics-dimension-repository_network_root_nwo | apache/casbin-python-sqlalchemy-adapter |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width