SingleConnPool is a pool that always returns the same connection. Note: This pool is not thread-safe. It is intended to be used by clients that need a single connection.
| 9 | // Note: This pool is not thread-safe. |
| 10 | // It is intended to be used by clients that need a single connection. |
| 11 | type SingleConnPool struct { |
| 12 | pool Pooler |
| 13 | cn *Conn |
| 14 | stickyErr error |
| 15 | } |
| 16 | |
| 17 | var _ Pooler = (*SingleConnPool)(nil) |
| 18 |
nothing calls this directly
no outgoing calls
no test coverage detected