* Check if a SQL statement is a SELECT query that can benefit from row limiting * Only handles SELECT queries
(sql: string)
| 9 | * Only handles SELECT queries |
| 10 | */ |
| 11 | static isSelectQuery(sql: string): boolean { |
| 12 | const trimmed = sql.trim().toLowerCase(); |
| 13 | return trimmed.startsWith('select'); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Check if a SQL statement already has a LIMIT clause. |
no outgoing calls
no test coverage detected