Return the status of the executed command. Example:: stmt = await connection.prepare('CREATE TABLE mytab (a int)') await stmt.fetch() assert stmt.get_statusmsg() == "CREATE TABLE"
(self)
| 46 | |
| 47 | @connresource.guarded |
| 48 | def get_statusmsg(self) -> str: |
| 49 | """Return the status of the executed command. |
| 50 | |
| 51 | Example:: |
| 52 | |
| 53 | stmt = await connection.prepare('CREATE TABLE mytab (a int)') |
| 54 | await stmt.fetch() |
| 55 | assert stmt.get_statusmsg() == "CREATE TABLE" |
| 56 | """ |
| 57 | if self._last_status is None: |
| 58 | return self._last_status |
| 59 | return self._last_status.decode() |
| 60 | |
| 61 | @connresource.guarded |
| 62 | def get_parameters(self): |
no outgoing calls