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

Method unlock

pgconn/pgconn.go:834–842  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

832}
833
834func (pgConn *PgConn) unlock() {
835 switch pgConn.status {
836 case connStatusBusy:
837 pgConn.status = connStatusIdle
838 case connStatusClosed:
839 default:
840 panic("BUG: cannot unlock unlocked connection") // This should only be possible if there is a bug in this package.
841 }
842}
843
844// ParameterStatus returns the value of a parameter reported by the server (e.g.
845// server_version). Returns an empty string for unknown parameters.

Callers 15

ReceiveMessageMethod · 0.95
PrepareMethod · 0.95
DeallocateMethod · 0.95
WaitForNotificationMethod · 0.95
ExecMethod · 0.95
execExtendedPrefixMethod · 0.95
execExtendedSuffixMethod · 0.95
CopyToMethod · 0.95
CopyFromMethod · 0.95
ExecBatchMethod · 0.95
StartPipelineMethod · 0.95
receiveMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected