MCPcopy Index your code
hub / github.com/ent/ent / isModifier

Function isModifier

dialect/sql/builder.go:3511–3518  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

3509}
3510
3511func isModifier(s string) bool {
3512 for _, m := range [...]string{"DISTINCT", "ALL", "WITH ROLLUP"} {
3513 if strings.HasPrefix(s, m) {
3514 return true
3515 }
3516 }
3517 return false
3518}

Callers 1

IdentMethod · 0.85

Calls 1

HasPrefixMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…