Versions in this module Expand all Collapse all v1 v1.2.1 Mar 20, 2026 Changes in this version + func CloneHookArgs(args []interface{}) []interface + func FingerprintSQL(query string, mode int, keepComments bool) string + func NormalizeFingerprintMode(mode int) int + func NormalizePlaceholderStyle(style int) int + func ShouldRunAfterHook(hasAfterHook bool, slowThreshold, duration time.Duration, err error) bool + type State struct + func (s *State) FingerprintCounterEnabled() bool + func (s *State) FingerprintCountsSnapshot() map[string]uint64 + func (s *State) FingerprintEnabled() bool + func (s *State) FingerprintKeepComments() bool + func (s *State) FingerprintMode() int + func (s *State) Hooks() (before, after interface{}, slowThreshold time.Duration) + func (s *State) IncFingerprintCount(fingerprint string) + func (s *State) Options() (before, after interface{}, placeholder int, slowThreshold time.Duration) + func (s *State) PlaceholderStyle() int + func (s *State) ResetFingerprintCounts() + func (s *State) SetAfterHook(after interface{}) + func (s *State) SetBeforeHook(before interface{}) + func (s *State) SetFingerprintCounterEnabled(enabled bool) + func (s *State) SetFingerprintEnabled(enabled bool) + func (s *State) SetFingerprintKeepComments(keep bool) + func (s *State) SetFingerprintMode(mode int) + func (s *State) SetHooks(before, after interface{}) + func (s *State) SetPlaceholderStyle(style int) + func (s *State) SetSlowThreshold(threshold time.Duration) + func (s *State) SlowThreshold() time.Duration