Skip to content

Commit 748a1d2

Browse files
authored
Added autocommit key word argument to create_pool
Autocommit default to false as key word argument to create pool method.
1 parent e1d3662 commit 748a1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pool.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The basic usage is::
1818
def go()
1919
pool = yield from aiomysql.create_pool(host='127.0.0.1', port=3306,
2020
user='root', password='',
21-
db='mysql', loop=loop)
21+
db='mysql', loop=loop, autocommit=False)
2222

2323
with (yield from pool) as conn:
2424
cur = yield from conn.cursor()

0 commit comments

Comments
 (0)