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

Function queryOutcomeFromErrorCode

server/query_metrics.go:79–84  ·  view source on GitHub ↗
(code string)

Source from the content-addressed store, hash-verified

77 // metadata is what the statement touches (querymeta). Computed at most once
78 // per statement — the start and terminal events share it.
79 metadata querymeta.Metadata
80 metadataDone bool
81}
82
83func (c *clientConn) beginQueryMetrics(start time.Time) *queryMetricsScope {
84 scope := &queryMetricsScope{
85 start: start,
86 errorResponsesSent: c.errorResponsesSent,
87 status: queryStatusSuccess,

Callers 1

finishQueryMetricsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected