Skip to content

Commit 25721c3

Browse files
authored
Merge pull request #381 from kusaku/kusaku/fix_asynch
fix: support asynch 0.2.5+ by using Connection constructor
2 parents 3dc8df9 + 63995ad commit 25721c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clickhouse_sqlalchemy/drivers/asynch/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def _init_dbapi_attributes(self):
146146
def connect(self, *args, **kwargs) -> 'AsyncAdapt_asynch_connection':
147147
return AsyncAdapt_asynch_connection(
148148
self,
149-
await_only(self.asynch.connect(*args, **kwargs))
149+
self.asynch.connection.Connection(*args, **kwargs)
150150
)
151151

152152

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def read_version():
9999
'sqlalchemy>=2.0.0,<2.1.0',
100100
'requests',
101101
'clickhouse-driver>=0.1.2',
102-
'asynch>=0.2.2,<=0.2.4',
102+
'asynch>=0.2.5',
103103
],
104104
# Registering `clickhouse` as dialect.
105105
entry_points={

0 commit comments

Comments
 (0)