MCPcopy Create free account
hub / github.com/PostHog/duckgres / NewQueryRunner

Function NewQueryRunner

tests/perf/core/runner.go:40–49  ·  view source on GitHub ↗
(cfg RunnerConfig)

Source from the content-addressed store, hash-verified

38 cfg RunnerConfig
39 matcher *IntentMatcher
40 metrics *RunnerMetrics
41}
42
43func NewQueryRunner(cfg RunnerConfig) *QueryRunner {
44 if cfg.Now == nil {
45 cfg.Now = time.Now
46 }
47 return &QueryRunner{
48 cfg: cfg,
49 matcher: NewIntentMatcher(),
50 metrics: NewRunnerMetrics(),
51 }
52}

Calls 2

NewIntentMatcherFunction · 0.85
NewRunnerMetricsFunction · 0.85