Return the query and parameters merged. Parameters are adapted and merged to the query the same way that `!execute()` would do.
(self, query: Query, params: Params | None = None)
| 34 | _query_cls = PostgresClientQuery |
| 35 | |
| 36 | def mogrify(self, query: Query, params: Params | None = None) -> str: |
| 37 | """ |
| 38 | Return the query and parameters merged. |
| 39 | |
| 40 | Parameters are adapted and merged to the query the same way that |
| 41 | `!execute()` would do. |
| 42 | |
| 43 | """ |
| 44 | self._tx = adapt.Transformer(self) |
| 45 | pgq = self._convert_query(query, params) |
| 46 | return pgq.query.decode(self._tx.encoding) |
| 47 | |
| 48 | def _execute_send( |
| 49 | self, |