MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / GetStats

Method GetStats

IceFireDB-SQLProxy/pkg/mysql/client/pool.go:136–144  ·  view source on GitHub ↗
(stats *ConnectionStats)

Source from the content-addressed store, hash-verified

134}
135
136func (pool *Pool) GetStats(stats *ConnectionStats) {
137 pool.synchro.Lock()
138
139 *stats = pool.synchro.stats
140
141 stats.IdleCount = len(pool.synchro.idleConnections)
142
143 pool.synchro.Unlock()
144}
145
146// GetConn returns connection from the pool or create new
147func (pool *Pool) GetConn(ctx context.Context) (*Conn, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected