handleFullMatchQuery checks if the given query matches any known patterns and returns the corresponding SQL query.
(inputQuery string)
| 46 | |
| 47 | // handleFullMatchQuery checks if the given query matches any known patterns and returns the corresponding SQL query. |
| 48 | func handleFullMatchQuery(inputQuery string) string { |
| 49 | return queryPatterns[preProcessing(inputQuery)] |
| 50 | } |
| 51 | |
| 52 | func preProcessing(inputQuery string) string { |
| 53 | trimmed := pattern.ReplaceAllString(inputQuery, "") |
no test coverage detected