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

Method IsClosed

pgconn/pgconn.go:811–813  ·  view source on GitHub ↗

IsClosed reports if the connection has been closed. CleanupDone() can be used to determine if all cleanup has been completed.

()

Source from the content-addressed store, hash-verified

809//
810// CleanupDone() can be used to determine if all cleanup has been completed.
811func (pgConn *PgConn) IsClosed() bool {
812 return pgConn.status < connStatusIdle
813}
814
815// IsBusy reports if the connection is busy.
816func (pgConn *PgConn) IsBusy() bool {

Calls

no outgoing calls