Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into typing
  • Loading branch information
AsfhtgkDavid authored Apr 6, 2025
commit 94823daa36d895a55faef2dadc1ff04ea4af7645
15 changes: 13 additions & 2 deletions asyncpg/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,12 @@ async def _get_new_connection(self):

return con

async def execute(self, query: str, *args, timeout: Optional[float] = None) -> str:
async def execute(
self,
query: str,
*args,
timeout: Optional[float] = None,
) -> str:
"""Execute an SQL command (or commands).

Pool performs this operation using one of its connections. Other than
Expand All @@ -586,7 +591,13 @@ async def execute(self, query: str, *args, timeout: Optional[float] = None) -> s
async with self.acquire() as con:
return await con.execute(query, *args, timeout=timeout)

async def executemany(self, command: str, args, *, timeout: Optional[float] = None):
async def executemany(
self,
command: str,
args,
*,
timeout: Optional[float]=None,
):
"""Execute an SQL *command* for each sequence of arguments in *args*.

Pool performs this operation using one of its connections. Other than
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.