Title: Prevent sqlalchemy_adapter.Adapter from automatically creating tables · Issue #9 · apache/casbin-python-sqlalchemy-adapter · GitHub
Open Graph Title: Prevent sqlalchemy_adapter.Adapter from automatically creating tables · Issue #9 · apache/casbin-python-sqlalchemy-adapter
X Title: Prevent sqlalchemy_adapter.Adapter from automatically creating tables · Issue #9 · apache/casbin-python-sqlalchemy-adapter
Description: Is there a way to use it only as an intermediary without creating any tables? I am using sqlalchemy_adapter.Adapter, and I have observed that it automatically creates the corresponding tables in the database during initialization. My goa...
Open Graph Description: Is there a way to use it only as an intermediary without creating any tables? I am using sqlalchemy_adapter.Adapter, and I have observed that it automatically creates the corresponding tables in th...
X Description: Is there a way to use it only as an intermediary without creating any tables? I am using sqlalchemy_adapter.Adapter, and I have observed that it automatically creates the corresponding tables in th...
Opengraph URL: https://github.com/apache/casbin-python-sqlalchemy-adapter/issues/9
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Prevent sqlalchemy_adapter.Adapter from automatically creating tables","articleBody":"Is there a way to use it only as an intermediary without creating any tables?\n\nI am using sqlalchemy_adapter.Adapter, and I have observed that it automatically creates the corresponding tables in the database during initialization.\n\nMy goal is to use the adapter strictly as an intermediary between SQLAlchemy and the system that consumes it, without having it manage or create any tables.\n\nI would like to know:\n\nWhether there is an option or parameter to disable automatic table creation.\n\nWhether there is a recommended way to configure the adapter so that it does not call metadata.create_all() or create any database structures.\n\nAny guidance or references would be appreciated.\n\n\n```python\nengine = get_engine_postgres()\n\nadapter_rbac = sqlalchemy_adapter.Adapter(engine)\n# adapter_rebac = sqlalchemy_adapter.Adapter(engine, db_class=CasbinRuleReBAC)\n# adapter_rebac = sqlalchemy_adapter.Adapter(engine, table_name=CasbinRuleReBAC.__tablename__)\n```\n\n```ini\nLib\\site-packages\\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--- All Policies (p) ---\n['alice', '/api/v1/items', 'GET']\n--- All Role Assignments (g) ---\n```","author":{"url":"https://github.com/nonodev96","@type":"Person","name":"nonodev96"},"datePublished":"2025-11-15T17:00:04Z","url":"https://github.com/apache/casbin-python-sqlalchemy-adapter/issues/9"}
| 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:540688fd-30f7-b046-0f02-d9cb1032e0ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE24:1739C:19B100:2228FC:6B04B2DE |
| html-safe-nonce | 6f9b3ffe8c5ba3ce3c161f9f3ee821ac2bc1f338b81ee681fc4aec35ad8a70c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTI0OjE3MzlDOjE5QjEwMDoyMjI4RkM6NkIwNEIyREUiLCJ2aXNpdG9yX2lkIjoiNTEwMTQ0NTcyMzcxNTg0Mjc4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a2a654bdccde852b4419601956f0e42d1de680bb7d5c843e75684266747a6ebb |
| hovercard-subject-tag | issue:3628953790 |
| 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/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df4bf79eb92b7893f00dadcac93c7d0de086e8d416c4308c7f068abfd51ec9d6/apache/casbin-python-sqlalchemy-adapter/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df4bf79eb92b7893f00dadcac93c7d0de086e8d416c4308c7f068abfd51ec9d6/apache/casbin-python-sqlalchemy-adapter/issues/9 |
| og:image:alt | Is there a way to use it only as an intermediary without creating any tables? I am using sqlalchemy_adapter.Adapter, and I have observed that it automatically creates the corresponding tables in th... |
| 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 | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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