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

Method QuerySource

server/conn.go:260–265  ·  view source on GitHub ↗

QuerySource returns the current value of the `duckgres.query_source` session GUC, or defaultQuerySource ("standard") if it was never set / set to empty. This never errors on a missing value: an unset GUC is defined to mean "standard". It is the accessor a future compute meter reads to bucket usage.

()

Source from the content-addressed store, hash-verified

258 // mode prevents impossible combinations such as both direct bypass and
259 // proxy passthrough. It changes only AFTER the worker-side transport swap
260 // succeeds, so SHOW never reports a state the worker isn't in.
261 s3CacheMode transform.S3CacheMode
262
263 // idleTimeout is a validated, connect-time client override. Zero means use
264 // the server default. It is initialized before the message loop starts and
265 // never changes, so it needs no synchronization.
266 idleTimeout time.Duration
267
268 // Provisioned worker pod size for compute-usage billing (remote/k8s backend

Callers 7

handleExecuteMethod · 0.95
TestQuerySourceGetterFunction · 0.95
handleQueryMethod · 0.95
ConnectionBillingFunction · 0.80

Calls

no outgoing calls