SQLAlchemy Runtime Inspection API doesn't support `AsyncEngine`
See original GitHub issueThe title pretty much describes this feature request. I would greatly appreciate if SQLAlchemy would support the Runtime Inspection API with a AsyncEngine much in the same way that it does with normal Engine objects. I know that the SQLAlchemy devs are very busy atm, so please don’t feel any pressure to implement this soon. Just wanted to let you guys know about this.
Have a nice day!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:19 (11 by maintainers)
Top Results From Across the Web
Asynchronous I/O (asyncio)
The SQLAlchemy event system is not directly exposed by the asyncio extension, meaning there is not yet an “async” version of a SQLAlchemy...
Read more >SQLAlchemy async engine with ORM unable to execute ...
Returns error sqlalchemy.exc.NoInspectionAvailable: Inspection on an AsyncConnection is currently not supported. Please use ``run_sync`` to ...
Read more >pytest-async-sqlalchemy
pytest-async-sqlalchemy. PyPI version Python versions. Database testing fixtures using the SQLAlchemy asyncio API. You can install "pytest-async-sqlalchemy" ...
Read more >sqlalchemy: the async-ening - matt.sh
The new AsyncEngine and AsyncSession also means you can now use the great asyncpg library for the async engine driver instead of being...
Read more >Async SQLAlchemy with FastAPI
SQLAlchemy unifies Core and ORM APIs for consistency. Both Core and ORM now support async with asyncio, but this feature is not production ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello @whg517,
As @zzzeek mentioned above the best solution would be to use the
run_sync()method. Consider the following example:Learn more about the
run_syncmethod here: https://docs.sqlalchemy.org/en/latest/orm/extensions/asyncio.html#sqlalchemy.ext.asyncio.AsyncConnection.run_syncUpdate:
I got the workaround…
or you can use it like this
Don’t create metadata and use it like.
This won’t work.