MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 15 callersFunctionint64Ptr
(i int64)
controlplane/k8s_pool.go:315
↓ 15 callersMethodopenConn
(t *testing.T)
tests/controlplane/controlplane_test.go:217
↓ 15 callersFunctionqueryReturnsResults
queryReturnsResults checks if a SQL query returns a result set. This is used to determine whether to send RowDescription or NoData.
server/conn.go:1562
↓ 15 callersMethodrunOnce
()
controlplane/janitor.go:102
↓ 15 callersMethodsendDataRowWithFormats
sendDataRowWithFormats sends a data row with optional binary encoding formatCodes: per-column format codes (0=text, 1=binary), or nil for all text typ
server/conn_results.go:255
↓ 15 callersFunctionstartControlPlane
(t *testing.T, opts cpOpts)
tests/controlplane/controlplane_test.go:121
↓ 14 callersMethodBuildActivationRequest
(ctx context.Context, org *configstore.OrgConfig, assignment *WorkerAssignment)
controlplane/shared_worker_activator.go:345
↓ 14 callersMethodHealthCheckLoop
HealthCheckLoop runs periodic health checks on all workers. onCrash is called when a worker crash is detected. onProgress is called with per-session p
controlplane/worker_pool.go:83
↓ 14 callersMethodMatchKey
MatchKey is the identity used to decide whether an existing worker can serve a request. A nil profile shares the key of the zero/default profile, so l
controlplane/worker_state.go:43
↓ 14 callersFunctionNewControlPlaneJanitor
(store controlPlaneExpiryStore, interval, expiryTimeout time.Duration)
controlplane/janitor.go:47
↓ 14 callersFunctionNewOnConflictTransformWithConfig
(duckLakeMode bool)
transpiler/transform/onconflict.go:31
↓ 14 callersFunctionNewRunner
(cfg RunnerConfig)
tests/scenario/core/runner.go:55
↓ 14 callersFunctionNewWorkerLease
NewWorkerLease constructs a WorkerLease from explicit identity fields. The expected callers are paths that already hold ownership information out-of-b
controlplane/configstore/lifecycle_store.go:104
↓ 14 callersFunctionReadStartupMessage
readStartupMessage reads the initial startup message from the client
server/wire/protocol.go:68
↓ 14 callersMethodRemoteAddr
()
server/conn_passthrough_test.go:54
↓ 14 callersMethodRun
(ctx context.Context)
tests/scenario/core/runner.go:62
↓ 14 callersMethoddb
()
controlplane/admin/api.go:158
↓ 14 callersFunctionnewLifecycleClientConn
newLifecycleClientConn builds a clientConn with both reader and writer wired so the disconnect monitor's bufio.Reader.Peek doesn't dereference nil. Th
server/conn_querylog_lifecycle_test.go:19
↓ 14 callersFunctionobserveFlightRPCDuration
(method string, started time.Time)
server/flightsqlingress/metrics.go:21
↓ 14 callersFunctionreleaseDrainFunc
(release func())
duckdbservice/service.go:153
↓ 14 callersFunctionsendStreamChunk
(ctx context.Context, ch chan<- flight.StreamChunk, chunk flight.StreamChunk)
server/flightsqlingress/ingress.go:2131
↓ 13 callersMethodContext
()
duckdbservice/copy_from_stdin_test.go:65
↓ 13 callersFunctionNewClient
(cfg Config)
tests/scenario/provision/client.go:81
↓ 13 callersFunctionNewLocalExecutor
NewLocalExecutor creates a new LocalExecutor wrapping the given *sql.DB.
server/executor.go:29
↓ 13 callersFunctionNewQueryLogKafkaWriter
(consumer QueryLogKafkaConsumer, resolver QueryLogEntryWriterResolver)
server/querylog_kafka_writer.go:128
↓ 13 callersFunctionNewRateLimiter
NewRateLimiter creates a new rate limiter with the given config.
server/auth/ratelimit.go:53
↓ 13 callersMethodQuerySource
QuerySource returns the current value of the `duckgres.query_source` session GUC, or defaultQuerySource ("standard") if it was never set / set to empt
server/conn.go:260
↓ 13 callersMethodRead
(p []byte)
cmd/cache-proxy/cache_test.go:43
↓ 13 callersMethodSetReadDeadline
(time.Time)
server/conn_passthrough_test.go:56
↓ 13 callersFunctionactionLabel
(action: string)
controlplane/admin/ui/src/lib/audit.ts:53
↓ 13 callersMethodclaimSessionLocked
claimSessionLocked records one newly-assigned session on the worker: it increments the active session count and advances the peak-sessions high-water
controlplane/worker_mgr.go:157
↓ 13 callersMethodeatKeyword
eatKeyword consumes the given keyword (case-insensitive, word-bounded).
server/usersecrets/classify.go:342
↓ 13 callersMethodexecUserSecretDDL
execUserSecretDDL is the shared (simple + extended protocol) handler for persistent-secret DDL. It returns handled=false when the statement is not sec
server/conn_user_secrets.go:67
↓ 13 callersMethodfail
(self, name, reason)
scripts/client-compat/clients/pgadmin/test_pgadmin.py:81
↓ 13 callersMethodgetCommandType
(upperQuery string)
server/conn.go:2071
↓ 13 callersFunctiongetNestedString
(obj map[string]interface{}, key string)
controlplane/provisioner/k8s_client.go:499
↓ 13 callersFunctionnormalizeQueryHash
normalizeQueryHash computes a FNV-1a hash of a query after collapsing whitespace and replacing literals with placeholders. This groups queries that di
server/querylog.go:569
↓ 13 callersFunctionrenameFuncAndStripPrefix
renameFuncAndStripPrefix renames a function and removes any pg_catalog/public schema prefix.
transpiler/transform/functions.go:502
↓ 13 callersFunctionrequireColumnAbsent
(t *testing.T, db *sql.DB, tableName, columnName string)
tests/configstore/migrations_postgres_test.go:469
↓ 13 callersFunctionrequireColumnPresent
(t *testing.T, db *sql.DB, tableName, columnName string)
tests/configstore/migrations_postgres_test.go:411
↓ 13 callersMethodsendRowDescription
(cols []string, colTypes []ColumnTyper)
server/conn_results.go:166
↓ 13 callersFunctiontolerate404
(fallback: T)
controlplane/admin/ui/src/hooks/useApi.ts:45
↓ 13 callersMethodworkerRecordFor
(id int, worker *ManagedWorker, ownerEpoch int64, state configstore.WorkerState, retireReason string, activati
controlplane/k8s_pool_helpers.go:63
↓ 12 callersMethodCapture
Capture records an event. orgID attributes the event to an org via group analytics; an empty orgID falls back to a non-org distinct_id and omits the g
internal/analytics/analytics.go:36
↓ 12 callersFunctionDefault
Default returns the installed Tracker, or a no-op tracker if none is set.
internal/analytics/analytics.go:115
↓ 12 callersFunctionInitSessionDatabaseMetadata
InitSessionDatabaseMetadata installs session-local overrides for metadata surfaces (current_database, pg_database, information_schema views) so they r
server/sessionmeta/sessionmeta.go:27
↓ 12 callersMethodRegisterConnection
RegisterConnection records a new connection from the given address. Returns true if the connection is allowed, false otherwise.
server/auth/ratelimit.go:105
↓ 12 callersMethodShutdownAll
ShutdownAll stops all workers gracefully.
controlplane/worker_pool.go:89
↓ 12 callersMethodactivateTenant
(payload ActivationPayload)
duckdbservice/activation.go:38
↓ 12 callersFunctionclassified
(class string, err error)
tests/scenario/dbt/errors.go:26
↓ 12 callersFunctionfmtTime
(ts: string | number | Date | null | undefined)
controlplane/admin/ui/src/lib/format.ts:93
↓ 12 callersFunctiongetTypeInfo
getTypeInfo extracts type info from a ColumnTyper (e.g. *sql.ColumnType).
server/types.go:222
↓ 12 callersFunctionintConstNode
(n int)
transpiler/transform/functions_compat.go:266
↓ 12 callersFunctionpgxConnect
pgxConnect creates a pgx connection to Duckgres (uses extended query protocol).
tests/integration/jdbc_test.go:15
↓ 12 callersMethodpostCallCount
()
controlplane/admin/live_aggregate_test.go:123
↓ 12 callersFunctionprotectLongIdentifiers
protectLongIdentifiers scans sql and replaces every identifier whose value exceeds maxIdentifierBytes with a unique short placeholder. It returns the
transpiler/longident.go:39
↓ 12 callersFunctionquoteIdent
quoteIdent quotes a PostgreSQL identifier with double quotes. Any embedded double quotes are doubled per SQL standard.
server/ducklake/migration.go:436
↓ 12 callersFunctionreadManifest
readManifest reads a file relative to the project root (located by walking up to the go.mod), matching how the manifests ship in the repo.
tests/manifests/manifests_test.go:244
↓ 12 callersFunctionserverHistogramVecSampleCount
(t *testing.T, hv *prometheus.HistogramVec, labels ...string)
server/query_metrics_test.go:28
↓ 12 callersFunctionstrandedReconcilerPool
--- Stranded-pod reconciler tests --- cleanupOrphanedWorkerPods closes a gap left by ShutdownAll: the CP marks the worker row terminal (retired/lost)
controlplane/k8s_pool_test.go:3779
↓ 11 callersMethodAcquireWorker
(ctx context.Context, profile *WorkerProfile)
controlplane/org_reserved_pool.go:46
↓ 11 callersMethodDestroySession
DestroySession closes and removes a session.
duckdbservice/service.go:1206
↓ 11 callersMethodHandleProxy
HandleProxy handles forward HTTP proxy requests from DuckDB httpfs. Expects absolute-form URIs (scheme + host + path in the request-line).
cmd/cache-proxy/proxy.go:256
↓ 11 callersMethodListOrphanedWorkers
ListOrphanedWorkers returns workers in active states that no live CP is responsible for any longer. Three independent failure modes are covered, joine
controlplane/configstore/store.go:1645
↓ 11 callersFunctionPairFromMain
PairFromMain builds a *DuckDBPair that points Main and Control at the same *sql.DB and owns no connector. Intended for test fixtures that don't exerci
duckdbservice/duckdb_pair.go:170
↓ 11 callersMethodResolvePostgresConnection
(startupDatabase, sniPrefix string, useManagedSNI bool, username, password string)
controlplane/configstore/store.go:368
↓ 11 callersFunctionSetDefault
SetDefault installs the global Tracker. Passing nil installs a no-op tracker.
internal/analytics/analytics.go:122
↓ 11 callersMethodSnapshot
Snapshot returns the current config snapshot.
controlplane/configstore/store.go:268
↓ 11 callersFunctionassertCursorRows
(t *testing.T, label string, got, want []cursorRow)
tests/integration/cursor_test.go:52
↓ 11 callersMethodbeginConnWork
beginConnWork fences any operation that uses the session connection while a raw SQL transaction may be open. It intentionally does not mutate queryAct
duckdbservice/service.go:303
↓ 11 callersFunctioncontainsAny
containsAny returns true if s contains any of the given substrings.
transpiler/transpiler.go:674
↓ 11 callersFunctiondefaultOpts
()
tests/controlplane/controlplane_test.go:117
↓ 11 callersMethodensureLifecycle
ensureLifecycle returns the pool's lifecycle service, lazily wiring it on first use when a runtimeStore is set but lifecycle is nil. Production paths
controlplane/k8s_pool.go:273
↓ 11 callersMethodload
load fetches all config from the database and builds a Snapshot.
controlplane/configstore/store.go:179
↓ 11 callersFunctionlocalScope
localScope reports whether this request is a peer-to-peer fan-out call that must return only the local CP's view (no further fan-out).
controlplane/admin/live_aggregate.go:43
↓ 11 callersFunctionmetricHistogramCount
(t *testing.T, metricName string)
controlplane/metrics_test_helpers_test.go:36
↓ 11 callersFunctionmkWorkerPod
(name, cpu, mem string)
controlplane/headroom_test.go:66
↓ 11 callersMethodok
(self, name, detail="")
scripts/client-compat/clients/pgadmin/test_pgadmin.py:75
↓ 11 callersFunctionpgFrame
pgFrame builds a framed wire-protocol message: type byte + int32 length (including itself) + body.
server/conn_skip_until_sync_test.go:74
↓ 11 callersFunctionpgxCursorRows
pgxCursorRows issues stmt via the extended query protocol and returns the rows, command tag, and error. pgx.Conn.Query always goes through Parse/Bind/
tests/integration/cursor_test.go:235
↓ 11 callersFunctionpodDeleteActionCount
(cs *fake.Clientset)
controlplane/k8s_pool_test.go:561
↓ 11 callersMethodresolveWorkerProfile
resolveWorkerProfile turns the client's worker_cpu / worker_memory / worker_ttl startup options plus the org's operator-set default worker profile int
controlplane/worker_profile.go:78
↓ 11 callersFunctionset
(k: keyof FormState, v: string)
controlplane/admin/ui/src/pages/OrgDetail.tsx:106
↓ 11 callersMethodwalkAndCount
(node *pg_query.Node, paramCount *int, changed *bool)
transpiler/transform/placeholder.go:35
↓ 11 callersMethodwalkAndTransform
(node *pg_query.Node, changed *bool)
transpiler/transform/typecast.go:54
↓ 10 callersMethodCheckConnection
CheckConnection checks if a connection from the given address should be allowed. Returns an error message if the connection should be rejected, or emp
server/auth/ratelimit.go:76
↓ 10 callersMethodClose
Close flushes any buffered events. Safe to call multiple times.
internal/analytics/analytics.go:38
↓ 10 callersMethodDDL
()
transpiler/backend/profile.go:73
↓ 10 callersMethodHas
Has returns true if the cache contains the given key.
cmd/cache-proxy/cache.go:164
↓ 10 callersMethodIsBanned
IsBanned checks if an IP is currently banned.
server/auth/ratelimit.go:215
↓ 10 callersFunctionIsValidCacheKey
IsValidCacheKey returns true if key is a 64-char lowercase hex string.
cmd/cache-proxy/cache.go:27
↓ 10 callersMethodListenAndServe
()
server/server.go:516
↓ 10 callersMethodRecv
()
duckdbservice/service.go:1775
↓ 10 callersMethodSend
(r *pb.PutResult)
duckdbservice/copy_from_stdin_test.go:71
↓ 10 callersMethodSetConnectionLimiter
SetConnectionLimiter replaces the local process limiter with a cluster-wide admission limiter. Local session maps still track only this control-plane'
controlplane/session_mgr.go:163
↓ 10 callersFunctionStartCredentialRefresh
StartCredentialRefresh starts a background goroutine that periodically refreshes S3 credentials for long-lived DuckDB connections using the credential
server/server.go:2316
↓ 10 callersFunctionTracer
Tracer returns the package-level tracer.
server/observe/tracing.go:26
↓ 10 callersMethodUpdateWarehouseState
(orgID string, expectedState configstore.ManagedWarehouseProvisioningState, updates map[string]interface{})
controlplane/provisioner/controller.go:55
↓ 10 callersMethodUpsertFlightSessionRecord
(record *configstore.FlightSessionRecord)
controlplane/control.go:246
↓ 10 callersMethodWrite
(p []byte)
tests/controlplane/controlplane_test.go:84
← previousnext →201–300 of 5,901, ranked by callers