Skip to content

Commit 96d7295

Browse files
Fix README async example: cursor() is sync, not async
AsyncConnection.cursor() is intentionally sync (for SQLAlchemy compatibility). Remove the incorrect `await` from the example. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b100cb7 commit 96d7295

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ from dqlitedbapi.aio import aconnect
2828

2929
async def main():
3030
conn = await aconnect("localhost:9001")
31-
cursor = await conn.cursor()
31+
cursor = conn.cursor()
3232
await cursor.execute("SELECT 1")
3333
print(await cursor.fetchone())
3434
await conn.close()

0 commit comments

Comments
 (0)