MCPcopy Create free account
hub / github.com/PostHog/duckgres / normalizeDriverValue

Function normalizeDriverValue

server/value_normalize.go:40–46  ·  view source on GitHub ↗

normalizeDriverValue runs every registered ValueNormalizer over the value. Each normalizer returns the input unchanged when it doesn't claim it; the final value is whatever the chain produced (or the original input if no normalizers ran or none matched).

(v any)

Source from the content-addressed store, hash-verified

38// final value is whatever the chain produced (or the original input if no
39// normalizers ran or none matched).
40func normalizeDriverValue(v any) any {
41 hooks, _ := driverNormalizers.Load().([]ValueNormalizer)
42 for _, h := range hooks {
43 v = h(v)
44 }
45 return v
46}

Callers 3

formatValueFunction · 0.85
encodeIntervalFunction · 0.85
encodeNumericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected