update rx.asession docstring

This commit is contained in:
Masen Furer 2024-12-09 16:59:59 -08:00
parent 86b49e4149
commit 721283a496
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

View File

@ -519,6 +519,11 @@ def session(url: str | None = None) -> sqlmodel.Session:
def asession(url: str | None = None) -> AsyncSession:
"""Get an async sqlmodel session to interact with the database.
async with rx.asession() as asession:
...
Most operations against the `asession` must be awaited.
Args:
url: The database url.