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

Method Reset

pgxpool/pool.go:706–708  ·  view source on GitHub ↗

Reset closes all connections, but leaves the pool open. It is intended for use when an error is detected that would disrupt all connections (such as a network interruption or a server state change). It is safe to reset a pool while connections are checked out. Those connections will be closed when

()

Source from the content-addressed store, hash-verified

704// It is safe to reset a pool while connections are checked out. Those connections will be closed when they are returned
705// to the pool.
706func (p *Pool) Reset() {
707 p.p.Reset()
708}
709
710// Config returns a copy of config that was used to initialize this [Pool].
711func (p *Pool) Config() *Config { return p.config.Copy() }

Callers 8

multiInsertFunction · 0.80
TestLoggerFuncFunction · 0.80
writeTraceMethod · 0.80
sanitize.goFile · 0.80
triggerHealthCheckMethod · 0.80
TestPoolBeforeCloseFunction · 0.80
TestPoolResetFunction · 0.80

Calls

no outgoing calls

Tested by 4

multiInsertFunction · 0.64
TestLoggerFuncFunction · 0.64
TestPoolBeforeCloseFunction · 0.64
TestPoolResetFunction · 0.64