How to use NOTIFY / LISTEN Postgres mechanism or sqlalchemy events with async sqlalchemy (2.x style)?
I’m looking for a way to use NOTIFY / LISTEN Postgres mechanism or sqlalchemy.event
with sqlalchemy.orm.attributes.get_history
asynchronously using async/await syntax. I didn’t find the usage documentation on https://docs.sqlalchemy.org/en/20/core/event.html and https://docs.sqlalchemy.org/en/20/orm/events.html.
How to use NOTIFY / LISTEN Postgres mechanism with async sqlalchemy (2.x style)?
I’m looking for a way to use sqlalchemy.event
and sqlalchemy.orm.attributes.get_history
asynchronously using async/await syntax. I didn’t find the usage documentation on https://docs.sqlalchemy.org/en/20/core/event.html.
AttributeError: __aenter__ in async SQLalchemy sessions
I get AttributeError: __aenter__
error using session like this: