TxStatus returns the current TxStatus as reported by the server in the ReadyForQuery message. Possible return values: 'I' - idle / not in transaction 'T' - in a transaction 'E' - in a failed transaction See https://www.postgresql.org/docs/current/protocol-message-formats.html.
()
| 719 | // |
| 720 | // See https://www.postgresql.org/docs/current/protocol-message-formats.html. |
| 721 | func (pgConn *PgConn) TxStatus() byte { |
| 722 | return pgConn.txStatus |
| 723 | } |
| 724 | |
| 725 | // SecretKey returns the backend secret key used to send a cancel query message to the server. |
| 726 | func (pgConn *PgConn) SecretKey() []byte { |
no outgoing calls