| 79 | } |
| 80 | |
| 81 | type settings struct { |
| 82 | sync.RWMutex |
| 83 | |
| 84 | preparedStatementCacheEnabled uint32 |
| 85 | |
| 86 | connMaxLifetime time.Duration |
| 87 | connMaxIdleTime time.Duration |
| 88 | maxOpenConns int |
| 89 | maxIdleConns int |
| 90 | |
| 91 | maxTransactionRetries int |
| 92 | } |
| 93 | |
| 94 | func (c *settings) binaryOption(opt *uint32) bool { |
| 95 | return atomic.LoadUint32(opt) == 1 |
nothing calls this directly
no outgoing calls
no test coverage detected