You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prevent sqlalchemy_adapter.Adapter from automatically creating tables #9
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 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.
I would like to know:
Whether there is an option or parameter to disable automatic table creation.
Whether there is a recommended way to configure the adapter so that it does not call metadata.create_all() or create any database structures.
Lib\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.
class CasbinRule(Base):
--- All Policies (p) ---
['alice', '/api/v1/items', 'GET']
--- All Role Assignments (g) ---
Activity
nonodev96 commentedon Nov 17, 2025
The bug has been fixed, but the warning remains.
hsluoyz commentedon Nov 17, 2025
@nonodev96 create new issue, show your warning