MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / RuleFunc

FuncType RuleFunc

pkg/transform/transform.go:66–66  ·  view source on GitHub ↗

RuleFunc is a function type that implements the Rule interface. It allows anonymous functions and closures to be used directly as transform rules without defining a named type. All built-in rule constructors (AddWhere, AddColumn, etc.) return a RuleFunc internally. Example: rule := transform.Rule

func(stmt ast.Statement) error

Source from the content-addressed store, hash-verified

64// return nil
65// })
66type RuleFunc func(stmt ast.Statement) error
67
68// Apply implements the Rule interface by invoking the underlying function.
69func (f RuleFunc) Apply(stmt ast.Statement) error {

Callers 15

AddWhereFunction · 0.85
RemoveWhereFunction · 0.85
ReplaceWhereFunction · 0.85
AddWhereFromSQLFunction · 0.85
AddSetClauseFunction · 0.85
RemoveSetClauseFunction · 0.85
ReplaceSetClauseFunction · 0.85
AddJoinFunction · 0.85
RemoveJoinFunction · 0.85
AddJoinFromSQLFunction · 0.85
AddReturningFunction · 0.85
RemoveReturningFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected