MCPcopy Index your code
hub / github.com/coder/coder / EqualsSQLString

Method EqualsSQLString

coderd/rbac/regosql/sqltypes/variable.go:107–114  ·  view source on GitHub ↗
(cfg *SQLGenerator, not bool, other Node)

Source from the content-addressed store, hash-verified

105}
106
107func (s astStringVar) EqualsSQLString(cfg *SQLGenerator, not bool, other Node) (string, error) {
108 switch other.UseAs().(type) {
109 case AstString:
110 return basicSQLEquality(cfg, not, s, other), nil
111 default:
112 return "", xerrors.Errorf("unsupported equality: %T %s %T", s, equalsOp(not), other)
113 }
114}

Callers

nothing calls this directly

Calls 4

basicSQLEqualityFunction · 0.85
equalsOpFunction · 0.85
UseAsMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected