MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / close

Method close

lib/sqlalchemy/ext/asyncio/scoping.py:414–435  ·  view source on GitHub ↗

r"""Close out the transactional resources and ORM objects used by this :class:`_asyncio.AsyncSession`. .. container:: class_bases Proxied for the :class:`_asyncio.AsyncSession` class on behalf of the :class:`_asyncio.scoping.async_scoped_session` class.

(self)

Source from the content-addressed store, hash-verified

412 return self._proxied.begin_nested()
413
414 async def close(self) -> None:
415 r"""Close out the transactional resources and ORM objects used by this
416 :class:`_asyncio.AsyncSession`.
417
418 .. container:: class_bases
419
420 Proxied for the :class:`_asyncio.AsyncSession` class on
421 behalf of the :class:`_asyncio.scoping.async_scoped_session` class.
422
423 .. seealso::
424
425 :meth:`_orm.Session.close` - main documentation for
426 "close"
427
428 :ref:`session_closing` - detail on the semantics of
429 :meth:`_asyncio.AsyncSession.close` and
430 :meth:`_asyncio.AsyncSession.reset`.
431
432
433 """ # noqa: E501
434
435 return await self._proxied.close()
436
437 async def reset(self) -> None:
438 r"""Close out the transactional resources and ORM objects used by this

Callers 1

removeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected