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

Method TotalConns

pgxpool/stat.go:65–67  ·  view source on GitHub ↗

TotalConns returns the total number of resources currently in the pool. The value is the sum of ConstructingConns, AcquiredConns, and IdleConns.

()

Source from the content-addressed store, hash-verified

63// The value is the sum of ConstructingConns, AcquiredConns, and
64// IdleConns.
65func (s *Stat) TotalConns() int32 {
66 return s.s.TotalResources()
67}
68
69// NewConnsCount returns the cumulative count of new connections opened.
70func (s *Stat) NewConnsCount() int64 {

Calls

no outgoing calls