Skip to content

Commit

Permalink
deploy: 5244d42
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic committed Feb 8, 2025
1 parent 3430a14 commit 7c98053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
:meth:<code>_asyncio.AsyncEngine.connect</code>
method of :class:<code>_asyncio.AsyncEngine</code>::</p>
<pre><code>from sqlalchemy.ext.asyncio import create_async_engine

engine = create_async_engine("postgresql+asyncpg://user:pass@host/dbname")

async with engine.connect() as conn:
Expand Down Expand Up @@ -356,7 +357,7 @@ <h3>Methods</h3>
<div class="desc"><p>Execute a statement and return an awaitable yielding a
:class:<code>_asyncio.AsyncResult</code> object.</p>
<p>E.g.::</p>
<pre><code>result = await conn.stream(stmt):
<pre><code>result = await conn.stream(stmt)
async for row in result:
print(f"{row}")
</code></pre>
Expand Down

0 comments on commit 7c98053

Please sign in to comment.