Closed cnicodeme closed 1 year ago
... And just like that, I found the solution!
It's cursor_cls
!
from sqlalchemy.ext.asyncio import create_async_engine
from asyncmy.cursors import SSCursor
engine = create_async_engine('mysql+asyncmy://user:pass@127.0.0.1/db', connect_args={'cursor_cls': SSCursor})
Thanks for share that!
Hi,
I'm transposing this answer: https://stackoverflow.com/a/31413200/330867
to AsyncMy, which I'm using, but I can't make it work:
I get the following error:
I tried changing it to
cursor
, and got the same error:Is there a way to define which cursor to use?