-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Is clickhouse-sqlalchemy support integrating with flask-sqlalchemy? #251
Comments
@flyly0755 what kind of coordination do you expect? clickhouse-sqlalchemy is not compatible with flask-sqlalchemy yet. clickhouse-sqlalchemy need custom metaclass |
i hope in the future clickhouse-sqlalchemy can be compatible with flask-sqlalchemy:), so clickhouse-sqlalchemy package and clickhouse database can be used in more situation related with web product development. It will be convenient to use clickhouse-sqlalchemy in flask framework(since Django framework use itsself ORM system, usually doesn't clickhouse-sqlalchemy in Django) |
Describe the bug
With flask-sqlalchemy, ORM class showed as below, inherit db.Model where db come from SQLAlchemy(app)
but clickhouse-sqlalchemy syntax showed as below,ORM class inherit Base which come from get_declarative_base method.
Raise a issue under flask-sqlalchemy
pallets-eco/flask-sqlalchemy#1220
Seem clickhouse-sqlalchemy need to coordinate with flask-sqlalchemy if want to use clickhouse this database under Flask framework.
To Reproduce
Expected behavior
can use clickhouse-sqlalchemy under Flask framework and database clickhouse
Versions
Python version: 3.9.13
Flask-SQLAlchemy version: 2.2.3
SQLAlchemy version:1.4.48
The text was updated successfully, but these errors were encountered: