MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / containsFINAL

Function containsFINAL

pkg/sql/parser/clickhouse_test.go:232–234  ·  view source on GitHub ↗

containsFINAL reports whether s contains the uppercase keyword FINAL as a whole word. A simple strings.Contains is sufficient because SQL() always emits keywords in uppercase.

(s string)

Source from the content-addressed store, hash-verified

230// whole word. A simple strings.Contains is sufficient because SQL() always
231// emits keywords in uppercase.
232func containsFINAL(s string) bool {
233 return strings.Contains(s, "FINAL")
234}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected