-
Notifications
You must be signed in to change notification settings - Fork 98
Description
Is your feature request related to a problem? Please describe.
Currently, clickhouse-connect does not support using SQLAlchemy with async operations. Users must choose between get_async_client() for async capabilities or SQLAlchemy for query building, but cannot use both together. This is problematic for analytics applications that need SQLAlchemy's dynamic query construction (especially for filter-based queries) while maintaining async performance benefits.
Describe the solution you'd like
I would like clickhouse-connect to provide async SQLAlchemy support by implementing an async dialect that works with SQLAlchemy's create_async_engine().
Ideally, this would work similar to how other async database drivers operate:
engine = create_async_engine('clickhousedb+async://user:password@host:port/database')
Describe alternatives you've considered
The only alternative for asynchronous requests I could find is clickhouse-sqlalchemy which is unfortunately no longer maintained. Under the hood, another outdated library asynch is used.