Mention that the context manager is only for convenience, that it's equivalent
to calling ``close()``
Change-Id: Ic186167cc3d4bbd7a24701dd6169ed0d515c5dc5
appropriate loader options should be employed for :func:`_orm.deferred`
columns as well as for :func:`_orm.relationship` constructs.
+In the example above the :class:`_asyncio.AsyncSession` is instantiated with an
+:class:`_asyncio.AsyncEngine` associated with a particular database URL.
+It is then used in a Python asynchronous context manager (i.e. ``async with:`` statement)
+so that it is automatically closed at the end of the block; this is equivalent
+to calling the :meth:`_asyncio.AsyncSession.close` method.
+
Adapting ORM Lazy loads to asyncio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
session.add(some_other_object)
session.commit()
-Above, the :class:`_orm.Session` is instantiated given an :class:`_engine.Engine`
+Above, the :class:`_orm.Session` is instantiated with an :class:`_engine.Engine`
associated with a particular database URL. It is then used in a Python
context manager (i.e. ``with:`` statement) so that it is automatically
closed at the end of the block; this is equivalent