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

Function generateLargeSQLDocument

pkg/lsp/handler_bench_test.go:524–530  ·  view source on GitHub ↗

generateLargeSQLDocument generates a SQL document with the specified number of statements

(statements int)

Source from the content-addressed store, hash-verified

522
523// generateLargeSQLDocument generates a SQL document with the specified number of statements
524func generateLargeSQLDocument(statements int) string {
525 var builder strings.Builder
526 for i := 0; i < statements; i++ {
527 builder.WriteString(fmt.Sprintf("SELECT col%d FROM table%d WHERE id = %d;\n", i, i%10, i))
528 }
529 return builder.String()
530}
531
532// generateMultipleStatements generates multiple different types of SQL statements
533func generateMultipleStatements(count int) string {

Callers 1

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected