MCPcopy Create free account
hub / github.com/apecloud/myduckserver / handleFullMatchQuery

Function handleFullMatchQuery

pgserver/full_match_handler.go:48–50  ·  view source on GitHub ↗

handleFullMatchQuery checks if the given query matches any known patterns and returns the corresponding SQL query.

(inputQuery string)

Source from the content-addressed store, hash-verified

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

Callers 1

convertQueryMethod · 0.85

Calls 1

preProcessingFunction · 0.85

Tested by

no test coverage detected