79579645

Date: 2025-04-17 15:56:26
Score: 2
Natty:
Report link

Starting from SQLAlchemy v1.4 there is a method in_transaction() for both Session and AsyncSession classes.

AsyncSession: https://docs.sqlalchemy.org/en/20/orm/extensions/asyncio.html#sqlalchemy.ext.asyncio.AsyncSession.in_transaction
Session: https://docs.sqlalchemy.org/en/20/orm/session_api.html#sqlalchemy.orm.Session.in_transaction

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ollamh