generateLargeSQLDocument generates a SQL document with the specified number of statements
(statements int)
| 522 | |
| 523 | // generateLargeSQLDocument generates a SQL document with the specified number of statements |
| 524 | func 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 |
| 533 | func generateMultipleStatements(count int) string { |
no test coverage detected