Stat returns a pgxpool.Stat struct with a snapshot of Pool statistics.
()
| 712 | |
| 713 | // Stat returns a pgxpool.Stat struct with a snapshot of Pool statistics. |
| 714 | func (p *Pool) Stat() *Stat { |
| 715 | return &Stat{ |
| 716 | s: p.p.Stat(), |
| 717 | newConnsCount: p.newConnsCount.Load(), |
| 718 | lifetimeDestroyCount: p.lifetimeDestroyCount.Load(), |
| 719 | idleDestroyCount: p.idleDestroyCount.Load(), |
| 720 | } |
| 721 | } |
| 722 | |
| 723 | // Exec acquires a connection from the [Pool] and executes the given SQL. |
| 724 | // SQL can be either a prepared statement name or an SQL string. |
no outgoing calls