diff --git a/README.rst b/README.rst index ed1d6c5..a44628d 100644 --- a/README.rst +++ b/README.rst @@ -71,7 +71,7 @@ Connection pooling ported from aiopg_ and rely on PEP492_ features: dsn = 'Driver=SQLite;Database=sqlite.db' pool = await aioodbc.create_pool(dsn=dsn, loop=loop) - async with (await pool) as conn: + async with pool.get() as conn: cur = await conn.cursor() await cur.execute("SELECT 42;") r = await cur.fetchall()