-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support for asyncio in sqlalchemy-iris #13
Comments
Did you try to use it? |
I tried running following sample code to test asyncio from Jupyter Notebook, get the error "InvalidRequestError: The asyncio extension requires an async driver to be used. The loaded 'iris' is not async." import asyncio Define an async function to test asyncio with SQLAlchemyasync def test_asyncio_sqlalchemy():
Run the async function#asyncio.run(test_asyncio_sqlalchemy()) |
I'll do some changes for it |
try installing version 0.13.4b2 |
Thanks Dmitry, now I am getting error on the next line: async_engine = create_async_engine(DATABASE_URL, echo=True) The error is: ArgumentError: Pool class QueuePool cannot be used with asyncio engine (Background on this error at: https://sqlalche.me/e/20/pcls) |
I dug it a bit, and it will need much more work to bring async support. |
sqlalchemy supports asyncio (Asynchronous I/O (asyncio) — SQLAlchemy 2.0 Documentation).
Can this support be added to sqlalchemy-iris.
The text was updated successfully, but these errors were encountered: