feat: slow threshold customizable in sqlx (#1188)

This commit is contained in:
Kevin Wan
2021-11-01 08:37:44 +08:00
committed by GitHub
parent f13e6f1149
commit 785d100be9
4 changed files with 25 additions and 10 deletions

View File

@@ -17,6 +17,7 @@ type (
Option func(opts *options)
)
// SetSlowThreshold sets the slow threshold.
func SetSlowThreshold(threshold time.Duration) {
slowThreshold.Set(threshold)
}