Skip to content

Commit 6b412be

Browse files
committed
Improve documentation for Connection.execute
1 parent cd0003a commit 6b412be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asyncpg/connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ async def execute(self, query: str, *args, timeout: float=None) -> str:
124124
125125
>>> await con.execute('''
126126
... CREATE TABLE mytab (a int);
127+
... INSERT INTO mytab (a) VALUES (100), (200), (300);
127128
... ''')
128-
CREATE TABLE
129+
INSERT 0 3
129130
130131
>>> await con.execute('''
131132
... INSERT INTO mytab (a) VALUES ($1), ($2)

0 commit comments

Comments
 (0)