MCPcopy Index your code
hub / github.com/upper/db / settings

Struct settings

settings.go:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81type 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
94func (c *settings) binaryOption(opt *uint32) bool {
95 return atomic.LoadUint32(opt) == 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected