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

Function truncateQuery

server/querylog.go:384–389  ·  view source on GitHub ↗

truncateQuery truncates a query string to maxQueryLength.

(q string)

Source from the content-addressed store, hash-verified

382 if sink, ok := c.executor.(queryLogEntrySink); ok {
383 return sink
384 }
385 }
386 if c.server != nil && c.server.queryLogSink != nil {
387 return c.server.queryLogSink
388 }
389 if c.server != nil && c.server.queryLogger != nil {
390 return c.server.queryLogger
391 }
392 return nil

Callers 4

queryLogEntryInsertArgsFunction · 0.70
truncateNullableQueryFunction · 0.70
TestTruncateQueryFunction · 0.70
newQueryLogKafkaEventFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestTruncateQueryFunction · 0.56