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
()
| 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. |
| 706 | func (p *Pool) Reset() { |
| 707 | p.p.Reset() |
| 708 | } |
| 709 | |
| 710 | // Config returns a copy of config that was used to initialize this [Pool]. |
| 711 | func (p *Pool) Config() *Config { return p.config.Copy() } |
no outgoing calls