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

Function truncateNullableQuery

server/querylog.go:391–397  ·  view source on GitHub ↗
(q *string)

Source from the content-addressed store, hash-verified

389 if c.server != nil && c.server.queryLogger != nil {
390 return c.server.queryLogger
391 }
392 return nil
393}
394
395// clientAddrPort splits the peer address for the query log.
396func (c *clientConn) clientAddrPort() (string, int) {
397 addr := c.conn.RemoteAddr()
398 if addr == nil {
399 return "", 0
400 }

Callers 3

queryLogEntryInsertArgsFunction · 0.85
newQueryLogKafkaEventFunction · 0.85

Calls 1

truncateQueryFunction · 0.70

Tested by 1