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

Method EqualsSQLString

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

Source from the content-addressed store, hash-verified

27}
28
29func (n AstNumber) EqualsSQLString(cfg *SQLGenerator, not bool, other Node) (string, error) {
30 switch other.UseAs().(type) {
31 case AstNumber:
32 return basicSQLEquality(cfg, not, n, other), nil
33 default:
34 return "", xerrors.Errorf("unsupported equality: %T %s %T", n, equalsOp(not), other)
35 }
36}

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