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

Method setQuerySource

server/conn.go:271–273  ·  view source on GitHub ↗

setQuerySource records a client-supplied `duckgres.query_source` value on the session. Pass-through: any string is accepted (only "standard"/"endpoints" are meaningful downstream, but other values are stored, not rejected). An empty value resets to the default.

(value string)

Source from the content-addressed store, hash-verified

269 // only). Counted in milli-units to avoid truncating a fractional-core or
270 // sub-GiB worker. workerMillicores == 0 means "unknown size" (non-remote /
271 // standalone), in which case metering is skipped. Constant for the
272 // connection's life, except that exploratory-tier escalation may raise it
273 // once (largest size wins) on the message-loop goroutine — the same
274 // goroutine that reads it; the metric is computed once at teardown over
275 // backendStart→now.
276 workerMillicores int64

Callers 5

handleExecuteMethod · 0.95
TestQuerySourceGetterFunction · 0.95
handleStartupMethod · 0.95
handleQueryMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestQuerySourceGetterFunction · 0.76