@@ -576,7 +576,13 @@ async def executemany(self, command: str, args, *, timeout: float=None):
576
576
async with self .acquire () as con :
577
577
return await con .executemany (command , args , timeout = timeout )
578
578
579
- async def fetch (self , query , * args , timeout = None ) -> list :
579
+ async def fetch (
580
+ self ,
581
+ query ,
582
+ * args ,
583
+ timeout = None ,
584
+ record_class = None
585
+ ) -> list :
580
586
"""Run a query and return the results as a list of :class:`Record`.
581
587
582
588
Pool performs this operation using one of its connections. Other than
@@ -586,7 +592,12 @@ async def fetch(self, query, *args, timeout=None) -> list:
586
592
.. versionadded:: 0.10.0
587
593
"""
588
594
async with self .acquire () as con :
589
- return await con .fetch (query , * args , timeout = timeout )
595
+ return await con .fetch (
596
+ query ,
597
+ * args ,
598
+ timeout = timeout ,
599
+ record_class = record_class
600
+ )
590
601
591
602
async def fetchval (self , query , * args , column = 0 , timeout = None ):
592
603
"""Run a query and return a value in the first row.
@@ -602,7 +613,7 @@ async def fetchval(self, query, *args, column=0, timeout=None):
602
613
return await con .fetchval (
603
614
query , * args , column = column , timeout = timeout )
604
615
605
- async def fetchrow (self , query , * args , timeout = None ):
616
+ async def fetchrow (self , query , * args , timeout = None , record_class = None ):
606
617
"""Run a query and return the first row.
607
618
608
619
Pool performs this operation using one of its connections. Other than
@@ -612,7 +623,12 @@ async def fetchrow(self, query, *args, timeout=None):
612
623
.. versionadded:: 0.10.0
613
624
"""
614
625
async with self .acquire () as con :
615
- return await con .fetchrow (query , * args , timeout = timeout )
626
+ return await con .fetchrow (
627
+ query ,
628
+ * args ,
629
+ timeout = timeout ,
630
+ record_class = record_class
631
+ )
616
632
617
633
async def copy_from_table (
618
634
self ,
0 commit comments