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

Function truncateQuery

tests/integration/setup_test.go:401–406  ·  view source on GitHub ↗

truncateQuery truncates a query for display

(q string)

Source from the content-addressed store, hash-verified

399
400// truncateQuery truncates a query for display
401func truncateQuery(q string) string {
402 if len(q) > 80 {
403 return q[:80] + "..."
404 }
405 return q
406}
407
408// dgOnly returns the Duckgres database
409func dgOnly(t *testing.T) *sql.DB {

Callers 1

mustExecFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected