(fullSQL string, loc ast.Loc)
| 478 | } |
| 479 | |
| 480 | func extractStatementText(fullSQL string, loc ast.Loc) string { |
| 481 | start := max(0, loc.Start) |
| 482 | end := loc.End |
| 483 | if end <= start || end > len(fullSQL) { |
| 484 | end = len(fullSQL) |
| 485 | } |
| 486 | return strings.TrimSpace(fullSQL[start:end]) |
| 487 | } |
| 488 | |
| 489 | func generateSQL(ctx context.Context, tCtx base.TransformContext, statementInfoList []statementInfo, databaseName string, tablePrefix string) ([]base.BackupStatement, error) { |
| 490 | if len(statementInfoList) <= maxMixedDMLCount { |
no outgoing calls
no test coverage detected