(ctx context.Context, startTime time.Time, threshold time.Duration, messageFormat string, args ...interface{})
| 471 | } |
| 472 | |
| 473 | func SlowQueryLog(ctx context.Context, startTime time.Time, threshold time.Duration, messageFormat string, args ...interface{}) { |
| 474 | if elapsed := time.Now().Sub(startTime); elapsed > threshold { |
| 475 | InfofCtx(ctx, KeyQuery, messageFormat+" took "+elapsed.String(), args...) |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | // Converts to a format like `value1`,`value2` when quote=` |
| 480 | func StringSliceToN1QLArray(values []string, quote string) string { |
no test coverage detected