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

Method EqualsSQLString

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

Source from the content-addressed store, hash-verified

20}
21
22func (s AstString) EqualsSQLString(cfg *SQLGenerator, not bool, other Node) (string, error) {
23 switch other.UseAs().(type) {
24 case AstString:
25 return basicSQLEquality(cfg, not, s, other), nil
26 default:
27 return "", xerrors.Errorf("unsupported equality: %T %s %T", s, equalsOp(not), other)
28 }
29}

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