MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / generateLargeSelectQuery

Function generateLargeSelectQuery

pkg/sql/security/scanner_bench_test.go:364–374  ·  view source on GitHub ↗

generateLargeSelectQuery generates a SELECT query with specified number of columns

(columns int)

Source from the content-addressed store, hash-verified

362
363// generateLargeSelectQuery generates a SELECT query with specified number of columns
364func generateLargeSelectQuery(columns int) string {
365 query := "SELECT "
366 for i := 0; i < columns; i++ {
367 if i > 0 {
368 query += ", "
369 }
370 query += fmt.Sprintf("col%d", i)
371 }
372 query += " FROM large_table WHERE active = true"
373 return query
374}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected