@@ -321,6 +321,7 @@ class Transaction:
321321 self : Self ,
322322 querystring : str ,
323323 parameters : list [Any ] | None = None ,
324+ prepared : bool = True ,
324325 ) -> QueryResult :
325326 """Execute the query.
326327
@@ -330,6 +331,8 @@ class Transaction:
330331 ### Parameters:
331332 - `querystring`: querystring to execute.
332333 - `parameters`: list of parameters to pass in the query.
334+ - `prepared`: should the querystring be prepared before the request.
335+ By default any querystring will be prepared.
333336
334337 ### Example:
335338 ```python
@@ -358,6 +361,7 @@ class Transaction:
358361 self : Self ,
359362 querystring : str ,
360363 parameters : list [list [Any ]] | None = None ,
364+ prepared : bool = True ,
361365 ) -> None : ...
362366 """Execute query multiple times with different parameters.
363367
@@ -367,6 +371,8 @@ class Transaction:
367371 ### Parameters:
368372 - `querystring`: querystring to execute.
369373 - `parameters`: list of list of parameters to pass in the query.
374+ - `prepared`: should the querystring be prepared before the request.
375+ By default any querystring will be prepared.
370376
371377 ### Example:
372378 ```python
@@ -395,6 +401,7 @@ class Transaction:
395401 self : Self ,
396402 querystring : str ,
397403 parameters : list [Any ] | None = None ,
404+ prepared : bool = True ,
398405 ) -> SingleQueryResult :
399406 """Fetch exaclty single row from query.
400407
@@ -406,6 +413,8 @@ class Transaction:
406413 ### Parameters:
407414 - `querystring`: querystring to execute.
408415 - `parameters`: list of parameters to pass in the query.
416+ - `prepared`: should the querystring be prepared before the request.
417+ By default any querystring will be prepared.
409418
410419 ### Example:
411420 ```python
@@ -434,6 +443,7 @@ class Transaction:
434443 self : Self ,
435444 querystring : str ,
436445 parameters : list [Any ] | None = None ,
446+ prepared : bool = True ,
437447 ) -> Any | None :
438448 """Execute the query and return first value of the first row.
439449
@@ -443,6 +453,8 @@ class Transaction:
443453 ### Parameters:
444454 - `querystring`: querystring to execute.
445455 - `parameters`: list of parameters to pass in the query.
456+ - `prepared`: should the querystring be prepared before the request.
457+ By default any querystring will be prepared.
446458
447459 ### Example:
448460 ```python
@@ -467,6 +479,7 @@ class Transaction:
467479 async def pipeline (
468480 self ,
469481 queries : list [tuple [str , list [Any ] | None ]],
482+ prepared : bool = True ,
470483 ) -> list [QueryResult ]:
471484 """Execute queries in pipeline.
472485
@@ -492,6 +505,12 @@ class Transaction:
492505 | receive rows 3 | |
493506 ```
494507 Read more: https://docs.rs/tokio-postgres/latest/tokio_postgres/#pipelining
508+
509+ ### Parameters:
510+ - `queries`: queries with parameters to execute.
511+ - `prepared`: should the querystring/querystrings be prepared before the request.
512+ By default any querystrings will be prepared.
513+
495514 ### Example:
496515 ```python
497516 import asyncio
@@ -640,6 +659,7 @@ class Transaction:
640659 parameters : list [Any ] | None = None ,
641660 fetch_number : int | None = None ,
642661 scroll : bool | None = None ,
662+ prepared : bool = True ,
643663 ) -> Cursor :
644664 """Create new cursor object.
645665
@@ -650,6 +670,8 @@ class Transaction:
650670 - `parameters`: list of parameters to pass in the query.
651671 - `fetch_number`: how many rows need to fetch.
652672 - `scroll`: SCROLL or NO SCROLL cursor.
673+ - `prepared`: should the querystring be prepared before the request.
674+ By default any querystring will be prepared.
653675
654676 ### Returns:
655677 new initialized cursor.
@@ -693,6 +715,7 @@ class Connection:
693715 self : Self ,
694716 querystring : str ,
695717 parameters : list [Any ] | None = None ,
718+ prepared : bool = True ,
696719 ) -> QueryResult :
697720 """Execute the query.
698721
@@ -702,6 +725,8 @@ class Connection:
702725 ### Parameters:
703726 - `querystring`: querystring to execute.
704727 - `parameters`: list of parameters to pass in the query.
728+ - `prepared`: should the querystring be prepared before the request.
729+ By default any querystring will be prepared.
705730
706731 ### Returns:
707732 query result as `QueryResult`
@@ -794,6 +819,7 @@ class PSQLPool:
794819 self : Self ,
795820 querystring : str ,
796821 parameters : list [Any ] | None = None ,
822+ prepared : bool = True ,
797823 ) -> QueryResult :
798824 """Execute the query.
799825
@@ -803,6 +829,8 @@ class PSQLPool:
803829 ### Parameters:
804830 - `querystring`: querystring to execute.
805831 - `parameters`: list of parameters to pass in the query.
832+ - `prepared`: should the querystring be prepared before the request.
833+ By default any querystring will be prepared.
806834
807835 ### Example:
808836 ```python
0 commit comments