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

Method EqualsSQLString

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

Source from the content-addressed store, hash-verified

31}
32
33func (p astParenthesis) EqualsSQLString(cfg *SQLGenerator, not bool, other Node) (string, error) {
34 if supp, ok := p.Value.(SupportsEquality); ok {
35 return supp.EqualsSQLString(cfg, not, other)
36 }
37 return "", xerrors.Errorf("unsupported equality: %T %s %T", p.Value, equalsOp(not), other)
38}
39
40func (p astParenthesis) ContainsSQL(cfg *SQLGenerator, other Node) (string, error) {
41 if supp, ok := p.Value.(SupportsContains); ok {

Callers

nothing calls this directly

Calls 3

equalsOpFunction · 0.85
EqualsSQLStringMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected