MCPcopy
hub / github.com/jackc/pgx / TxStatus

Method TxStatus

pgconn/pgconn.go:721–723  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

719//
720// See https://www.postgresql.org/docs/current/protocol-message-formats.html.
721func (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.
726func (pgConn *PgConn) SecretKey() []byte {

Callers 6

CommitMethod · 0.80
ResetSessionMethod · 0.80
ReleaseMethod · 0.80

Calls

no outgoing calls