Skip to content

Commit c83b83d

Browse files
committed
add options
1 parent 7099650 commit c83b83d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

option.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@ func WithSlowLogThreshold(slowLogThreshold time.Duration) Option {
9595
c.config.SlowLogThreshold = slowLogThreshold
9696
}
9797
}
98+
99+
func WithEnableDetailSQL(enableDetailSQL bool) Option {
100+
return func(c *Container) {
101+
c.config.EnableDetailSQL = enableDetailSQL
102+
}
103+
}

0 commit comments

Comments
 (0)