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

Function SetQueryLogger

server/exports.go:314–317  ·  view source on GitHub ↗

SetQueryLogger sets the query logger on a Server. Used by the control plane to attach a query logger to the minimal server after creation.

(s *Server, ql *QueryLogger)

Source from the content-addressed store, hash-verified

312// giving those per-org events a PostHog-native key. Resolved from the config
313// snapshot at setup (the connecting user's team, else the org's oldest team);
314// 0 when unknown or non-multitenant. Constant for the connection's life.
315func SetConnectionTeamID(cc *clientConn, teamID int64) {
316 if cc != nil {
317 cc.teamID = teamID
318 }
319}
320

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected