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

Method logQuery

server/querylog.go:603–689  ·  view source on GitHub ↗

logQuery builds a QueryLogEntry from the connection context and sends it to the logger.

(start time.Time, query, transpiledQuery, cmdType string,
	resultRows, writtenRows int64, errCode, errMsg, protocol string)

Source from the content-addressed store, hash-verified

601 }
602 var port int
603 for _, c := range s {
604 if c < '0' || c > '9' {
605 return 0, fmt.Errorf("invalid port")
606 }
607 port = port*10 + int(c-'0')
608 }
609 return port, nil
610}

Callers 14

handleExecuteMethod · 0.95
handleCopyMethod · 0.95
handleCopyOutMethod · 0.95
handleCopyOutBinaryMethod · 0.95
handleCopyInMethod · 0.95
handleCopyInBinaryMethod · 0.95
handleDeclareCursorMethod · 0.95
handleFetchCursorMethod · 0.95
handleCloseCursorMethod · 0.95
handleQueryMethod · 0.95

Calls 12

LogMethod · 0.95
RedactErrorForLogFunction · 0.92
RedactForLogFunction · 0.92
TraceIDFromContextFunction · 0.92
SpanIDFromContextFunction · 0.92
splitHostPortFunction · 0.85
parsePortFunction · 0.85
classifyQueryFunction · 0.85
normalizeQueryHashFunction · 0.85
RemoteAddrMethod · 0.45
StringMethod · 0.45