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

Function NewWithRules

pkg/advisor/optimizer.go:133–137  ·  view source on GitHub ↗

NewWithRules creates a new Optimizer with the specified rules.

(rules ...Rule)

Source from the content-addressed store, hash-verified

131
132// NewWithRules creates a new Optimizer with the specified rules.
133func NewWithRules(rules ...Rule) *Optimizer {
134 return &Optimizer{
135 rules: rules,
136 }
137}
138
139// Rules returns the list of rules configured for this optimizer.
140func (o *Optimizer) Rules() []Rule {

Callers 1

TestNewWithCustomRulesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewWithCustomRulesFunction · 0.68