(sql: string)
| 154 | } |
| 155 | |
| 156 | function renderStatements(sql: string) { |
| 157 | return sql |
| 158 | .split("--> statement-breakpoint") |
| 159 | .map((statement) => statement.trim()) |
| 160 | .filter((statement) => statement.length > 0) |
| 161 | .map(renderRun) |
| 162 | .join("\n") |
| 163 | } |
| 164 | |
| 165 | function renderRun(statement: string) { |
| 166 | const lines = statement.replaceAll("\t", " ").split("\n") |
no outgoing calls
no test coverage detected