When doing
engine: AsyncEngine = create_async_engine(...)
and then
async with engine.connect() as conn:
result: Result = await conn.execute(text("""..."""))
I would like to specify a timeout. Ideally I'd be able to set statement_timeout just for this one query execution. I am also fine with sqlalchemy doing the timeout and cancelling the query execution, but I can't find a way to set either.