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

Method GetStats

IceFireDB-SQLite/pkg/mysql/client/pool.go:134–142  ·  view source on GitHub ↗
(stats *ConnectionStats)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected