Return the text of the query for this prepared statement. Example:: stmt = await connection.prepare('SELECT $1::int') assert stmt.get_query() == "SELECT $1::int"
(self)
| 35 | |
| 36 | @connresource.guarded |
| 37 | def get_query(self) -> str: |
| 38 | """Return the text of the query for this prepared statement. |
| 39 | |
| 40 | Example:: |
| 41 | |
| 42 | stmt = await connection.prepare('SELECT $1::int') |
| 43 | assert stmt.get_query() == "SELECT $1::int" |
| 44 | """ |
| 45 | return self._query |
| 46 | |
| 47 | @connresource.guarded |
| 48 | def get_statusmsg(self) -> str: |
no outgoing calls