update rx.asession docstring
This commit is contained in:
parent
86b49e4149
commit
721283a496
@ -519,6 +519,11 @@ def session(url: str | None = None) -> sqlmodel.Session:
|
|||||||
def asession(url: str | None = None) -> AsyncSession:
|
def asession(url: str | None = None) -> AsyncSession:
|
||||||
"""Get an async sqlmodel session to interact with the database.
|
"""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:
|
Args:
|
||||||
url: The database url.
|
url: The database url.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user