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

Method queryContext

server/conn.go:310–312  ·  view source on GitHub ↗

queryContext returns a cancellable context for query execution. The cancel function is registered with the server so it can be invoked via a cancel request from another connection. The caller must call the returned cleanup function when the query completes. A disconnect monitor goroutine runs for t

()

Source from the content-addressed store, hash-verified

308 // worker yet (lazy activation). Applied by ensureSessionActive AFTER the
309 // executor is installed — never earlier, or the worker swap silently no-ops
310 // while the session flag flips. Same goroutine as everything else here.
311 pendingS3Cache string
312 hasPendingS3Cache bool
313
314 // workerTTLOverride holds the `duckgres.worker_ttl` session GUC state
315 // (another duckgres-namespaced custom parameter, NOT forwarded to

Callers 5

execUserSecretDDLMethod · 0.95
handleQueryMethod · 0.95
executeQueryDirectMethod · 0.95
executeSelectQueryMethod · 0.95

Calls 1

queryContextInnerMethod · 0.95

Tested by

no test coverage detected