Skip to content

Commit 173b325

Browse files
committed
Fix sa 2.0.44 compatibility
1 parent e1067e5 commit 173b325

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ydb_sqlalchemy/sqlalchemy/dbapi_adapter.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def get_table_names(self):
6767

6868

6969
class AdaptedAsyncCursor:
70+
_awaitable_cursor_close: bool = False
71+
7072
def __init__(self, cursor: AsyncCursor):
7173
self._cursor = cursor
7274

@@ -112,3 +114,7 @@ def setinputsizes(self, *args):
112114

113115
def setoutputsizes(self, *args):
114116
pass
117+
118+
async def _async_soft_close(self) -> None:
119+
# TODO(vgvoleg): Migrate to AsyncAdapt_dbapi_cursor and AsyncAdapt_dbapi_connection
120+
pass

0 commit comments

Comments
 (0)