module documentation
Undocumented
Class | async |
A configurable :class:`.AsyncSession` factory. |
Class |
|
Asyncio version of :class:`_orm.Session`. |
Class |
|
A wrapper for the ORM :class:`_orm.SessionTransaction` object. |
Function | async |
Return the :class:`_asyncio.AsyncSession` to which the given instance belongs. |
Function | async |
Return the :class:`_asyncio.AsyncSession` which is proxying the given :class:`_orm.Session` object, if any. |
Class | _ |
Undocumented |
Constant | _EXECUTE |
Undocumented |
Constant | _STREAM |
Undocumented |
Type Variable | _AS |
Undocumented |
Type Variable | _T |
Undocumented |
Type Alias | _ |
Undocumented |
Return the :class:`_asyncio.AsyncSession` to which the given instance belongs. This function makes use of the sync-API function :class:`_orm.object_session` to retrieve the :class:`_orm.Session` which refers to the given instance, and from there links it to the original :class:`_asyncio.AsyncSession`. If the :class:`_asyncio.AsyncSession` has been garbage collected, the return value is ``None``. This functionality is also available from the :attr:`_orm.InstanceState.async_session` accessor. :param instance: an ORM mapped instance :return: an :class:`_asyncio.AsyncSession` object, or ``None``. .. versionadded:: 1.4.18