MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 4 callersFunctionmetricCounterValueByLabel
(t *testing.T, metricName string, labels map[string]string)
server/flightsqlingress/ingress_test.go:346
↓ 4 callersMethodmissReason
()
controlplane/worker_pool.go:28
↓ 4 callersFunctionnewBindTestConn
(out *bytes.Buffer)
server/conn_bind_test.go:41
↓ 4 callersFunctionnewComputeUsageCounter
()
controlplane/compute_meter.go:59
↓ 4 callersFunctionnewFeedbackClientConn
(t *testing.T)
server/conn_querylog_feedback_test.go:78
↓ 4 callersFunctionnewKafkaQueryLogSinkForProducer
(cfg QueryLogConfig, producer queryLogKafkaProducer)
server/querylog_kafka.go:89
↓ 4 callersFunctionnewPeerServer
newPeerServer returns an httptest server exposing /cache/has and /cache/get for the supplied key and data. hasCallback/getCallback increment counters.
cmd/cache-proxy/peers_test.go:24
↓ 4 callersFunctionnewSNIControlPlane
(store *fakeConfigStore)
controlplane/sni_kubernetes_test.go:198
↓ 4 callersFunctionnodeDraining
(n: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:359
↓ 4 callersFunctionnotifyQueryCancel
notifyQueryCancel delivers one query-cancel request, coalescing bursts: if a cancel is already pending (buffer full), the new one is dropped — the pen
server/worker.go:185
↓ 4 callersFunctionobserveAcquireGateWait
(d time.Duration, org, outcome string)
controlplane/acquire_metrics.go:77
↓ 4 callersFunctionobserveControlPlaneWorkerQueueDepthDelta
(delta int64)
controlplane/flight_ingress_metrics.go:78
↓ 4 callersMethodobserveExtendedParseQueryError
(code, message string)
server/query_metrics.go:96
↓ 4 callersFunctionobserveOrgSessionsActive
(org string, count int)
controlplane/flight_ingress_metrics_k8s.go:41
↓ 4 callersFunctionobserveWorkerLifecycleStats
observeWorkerLifecycleStats refreshes the per-image worker lifecycle gauge from the latest cluster snapshot. previous (the stats observed on the prior
controlplane/pool_metrics.go:22
↓ 4 callersFunctionok
(data: T)
controlplane/admin/ui/src/pages/Overview.test.tsx:19
↓ 4 callersMethodopenCursor
openCursor executes the cursor's stored query and caches the result set metadata.
server/conn_cursor.go:30
↓ 4 callersFunctionparseNodeSelector
parseNodeSelector parses a JSON string into a map[string]string. Returns nil if the input is empty or invalid.
controlplane/multitenant.go:666
↓ 4 callersFunctionparsePort
parsePort converts a port string to int.
server/querylog.go:697
↓ 4 callersFunctionpeerManagerWith
peerManagerWith returns a PeerManager with the given peer addresses hardcoded, skipping DNS resolution entirely.
cmd/cache-proxy/peers_test.go:56
↓ 4 callersFunctionpublishArtifactsIfConfigured
publishArtifactsIfConfigured invokes publishRunDir for cfg if it's enabled, returning a wrapped error so callers see context. A no-op when the publish
tests/perf/harness_publish.go:19
↓ 4 callersFunctionqueryLogColumnExists
(db *sql.DB, fullTableName, tableSchema, tableName, columnName string)
server/querylog.go:496
↓ 4 callersFunctionqueryLogColumnType
(db *sql.DB, fullTableName, tableSchema, tableName, columnName string)
server/querylog.go:507
↓ 4 callersFunctionqueryLogEntryFromKafkaEvent
(event QueryLogKafkaEvent)
server/querylog_kafka_writer.go:654
↓ 4 callersMethodqueryRowScan
(query string, dest ...any)
server/attach_timeout.go:199
↓ 4 callersMethodrecordEvent
(evt string)
controlplane/k8s_pool_test.go:179
↓ 4 callersMethodrecordRetryableError
(reason string, err error)
server/querylog_kafka_writer.go:405
↓ 4 callersFunctionrecoverClientPanic
recoverClientPanic converts a nil-pointer panic from a closed Flight SQL client into an error. The arrow-go Close() method nils out the embedded Fligh
server/flightclient/flight_executor.go:160
↓ 4 callersFunctionredactConnectionString
(connStr string)
server/server.go:169
↓ 4 callersMethodreleaseConnectionSlot
(lease connectionLease)
controlplane/session_mgr.go:277
↓ 4 callersMethodreleaseFileDB
releaseFileDB decrements the ref count for a user's shared DB. When the last reference is released, the DB is closed and removed from the pool.
server/server.go:813
↓ 4 callersMethodremoveByKeyForTokenLocked
(token string)
server/flightsqlingress/ingress.go:2009
↓ 4 callersFunctionrequest
( path: string, init?: RequestInit & { rawQuery?: Record<string, string | number | undefined> }, )
controlplane/admin/ui/src/lib/api.ts:53
↓ 4 callersFunctionrequireTablePresent
(t *testing.T, db *sql.DB, tableName string)
tests/configstore/migrations_postgres_test.go:431
↓ 4 callersFunctionreservePID
reservePID returns the next backend pid from counter, skipping 0. Backend pids are int32; after ~2.1B connections in one process the counter wraps and
controlplane/session_mgr.go:75
↓ 4 callersMethodresolvePostgresSNI
(mode, sni string)
controlplane/control.go:773
↓ 4 callersFunctionresolveS3SecretTransport
resolveS3SecretTransport picks the URL_STYLE and USE_SSL values to embed in the DuckDB S3 secret. When the cache proxy is in front of the worker (HTTP
server/server.go:2089
↓ 4 callersFunctionretryOnTransientAttach
retryOnTransientAttach retries a DuckLake ATTACH operation on transient errors.
server/transient.go:46
↓ 4 callersFunctionroundTrip
roundTrip parses and deparses sql the way the transpiler core does, with long-identifier protection applied. It returns the SQL DuckDB would receive.
transpiler/longident_test.go:22
↓ 4 callersFunctionrowSetToRecord
(alloc memory.Allocator, rows server.RowSet, schema *arrow.Schema, batchSize int)
server/flightsqlingress/ingress.go:2213
↓ 4 callersMethodrun
()
server/checkpoint.go:135
↓ 4 callersFunctionrun_dbt
Run a dbt command and return (returncode, stdout, stderr).
scripts/client-compat/clients/dbt/test_dbt.py:73
↓ 4 callersFunctionsameTenantActivationRuntime
sameTenantActivationRuntime compares all structural DuckLake fields except short-lived credentials (S3AccessKey, S3SecretKey, S3SessionToken) which ro
duckdbservice/activation.go:296
↓ 4 callersFunctionscanPgStatActivityRow
scanPgStatActivityRow scans a full pg_stat_activity row into a map. All 21 columns are always returned regardless of the SELECT column list, so we mus
tests/integration/pg_stat_activity_test.go:15
↓ 4 callersFunctionsdNotify
sdNotify sends a notification to systemd via the NOTIFY_SOCKET. If NOTIFY_SOCKET is not set (i.e. not running under systemd), this is a no-op.
controlplane/sdnotify.go:11
↓ 4 callersFunctionsecretDeleteActionCount
(cs *fake.Clientset)
controlplane/k8s_pool_test.go:585
↓ 4 callersFunctionsecretNames
(t *testing.T, db *sql.DB, where string)
duckdbservice/user_secrets_test.go:29
↓ 4 callersMethodsendNotice
(severity, code, message string)
server/conn_results.go:553
↓ 4 callersFunctionsendStreamChunk
(ctx context.Context, ch chan<- flight.StreamChunk, chunk flight.StreamChunk)
duckdbservice/flight_handler.go:54
↓ 4 callersFunctionserviceNamed
(t *testing.T, compose composeFile, name string)
tests/integration/composefile/compose_test.go:72
↓ 4 callersFunctionsessionClosedStatus
(err error)
duckdbservice/flight_handler.go:47
↓ 4 callersFunctionsetExtensionDirectory
(db *sql.DB, dataDir string)
server/server.go:105
↓ 4 callersMethodsnapshot
snapshot returns up to limit most-recent errors, newest first (limit <= 0 returns all retained).
server/recent_errors.go:64
↓ 4 callersFunctionsplitSQLStatements
(sql string)
tests/integration/harness.go:763
↓ 4 callersMethodstampNodeFirstSeenLocked
--- Shared scheduling helpers (same logic as FlightWorkerPool) --- stampNodeFirstSeenLocked records now as the first-seen time for nodeName if we have
controlplane/k8s_pool_acquire.go:747
↓ 4 callersFunctionsupportsLimit
(upper string)
server/flightsqlingress/ingress.go:2245
↓ 4 callersFunctionsupportsReadOnlySchemaInference
(upper string)
server/flightsqlingress/ingress.go:2127
↓ 4 callersFunctiontick
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:203
↓ 4 callersFunctiontoFloat64
toFloat64 attempts to convert a value to float64
tests/integration/compare.go:436
↓ 4 callersFunctiontopOrgsByLoad
(orgs: OrgStatus[] | undefined, n: number)
controlplane/admin/ui/src/lib/fleet.ts:59
↓ 4 callersFunctiontranspileCTE
(t *testing.T, sql string)
transpiler/transform/writablecte_returning_test.go:9
↓ 4 callersFunctiontruncate
(s string, maxLen int)
tests/integration/harness.go:820
↓ 4 callersFunctionuseModel
(model: string | undefined)
controlplane/admin/ui/src/hooks/useApi.ts:399
↓ 4 callersFunctionvalidateControlPlaneSecurity
(cfg ControlPlaneConfig)
controlplane/validation.go:32
↓ 4 callersFunctionvalidateTLSFiles
(certFile, keyFile string)
controlplane/validation.go:8
↓ 4 callersFunctionversionLessThan
versionLessThan returns true if version a is strictly less than version b. Both must be in "major.minor" format (e.g., "0.3", "0.4", "0.10").
server/ducklake/migration.go:240
↓ 4 callersMethodvisitFromItem
(node *pg_query.Node)
transpiler/transform/boolpredicates.go:172
↓ 4 callersFunctionwaitForSessionManagerDraining
(t *testing.T, sm *SessionManager)
controlplane/session_mgr_drain_test.go:940
↓ 4 callersFunctionwaitForSignal
(t *testing.T, ch <-chan struct{}, msg string)
cmd/cache-proxy/proxy_test.go:56
↓ 4 callersFunctionwantDirect
(t *testing.T, cfg Config, input string)
transpiler/classify_wiring_test.go:25
↓ 4 callersFunctionwipeUserSecrets
wipeUserSecrets drops every user-created DuckDB secret on the shared per-org instance — both persistent ones (replayed/created by a user session) AND
duckdbservice/user_secrets.go:42
↓ 4 callersMethodworkerBillingSize
workerBillingSize returns the provisioned worker pod size for compute-usage billing, in milli-units (millicores, MiB). It mirrors workerDuckDBLimits's
controlplane/control.go:1440
↓ 4 callersMethodworkerDuckDBLimits
workerDuckDBLimits derives DuckDB memory_limit and threads from the worker pod's K8s resource spec. Uses 75% of the worker's memory limit for DuckDB a
controlplane/control.go:1388
↓ 4 callersFunctionwritePGMessage
writePGMessage writes a PostgreSQL wire protocol message (type byte + int32 length + body) into w, matching the format wire.ReadMessage() expects.
server/conn_test.go:3947
↓ 3 callersFunctionAPIAuthMiddleware
(tokens TokenSet)
controlplane/admin/dashboard.go:75
↓ 3 callersMethodAcquire
(ctx context.Context, request connectionAdmissionRequest, limits func(string) configstore.OrgResourceLimits)
controlplane/connection_limiter.go:68
↓ 3 callersMethodActivateTenant
ActivateTenant delivers tenant runtime to a shared warm worker before it may serve sessions.
controlplane/worker_mgr.go:1323
↓ 3 callersMethodActiveSessionCount
()
server/flightsqlingress/ingress.go:1828
↓ 3 callersMethodAdvance
(d time.Duration)
controlplane/sts_broker_test.go:27
↓ 3 callersFunctionAttachDeltaCatalog
AttachDeltaCatalog attaches the configured Delta Lake catalog/table alongside DuckLake. It reuses the DuckLake S3 secret settings so Delta scans can a
server/server.go:1716
↓ 3 callersFunctionAttachDuckLake
AttachDuckLake attaches a DuckLake catalog if configured (but does NOT set it as default). Call setDuckLakeDefault after creating per-connection views
server/server.go:1522
↓ 3 callersFunctionBuildDeltaAttachStmt
BuildDeltaAttachStmt builds the ATTACH statement for the Delta extension catalog. The catalog path defaults to a sibling delta/ prefix at the DuckLake
server/ducklake/migration.go:711
↓ 3 callersFunctionBuildDuckDBCopyFromSQL
BuildDuckDBCopyFromSQL generates a DuckDB COPY FROM statement
server/conn_copy.go:161
↓ 3 callersFunctionClassify
Classify inspects a SQL statement and reports whether it is DuckDB secret DDL. It is deliberately conservative: anything it cannot confidently parse a
server/usersecrets/classify.go:81
↓ 3 callersMethodClose
Close shuts down the proxy and all active connections.
tests/integration/latency_proxy.go:45
↓ 3 callersMethodClose
()
tests/perf/publisher/publisher.go:67
↓ 3 callersMethodClose
()
server/querylog_kafka.go:64
↓ 3 callersMethodCloseAll
CloseAll closes all sessions.
duckdbservice/service.go:1429
↓ 3 callersMethodCloseFlightSessionRecordIfReconnectTargetUnchanged
(stale configstore.FlightSessionRecord, closedAt time.Time)
controlplane/control.go:250
↓ 3 callersMethodConnSummariesByWorkerID
ConnSummariesByWorkerID returns a one-pass snapshot of every live connection keyed by cluster-unique worker id: its state and current-query start. Use
server/exports.go:177
↓ 3 callersMethodCreateSession
(ctx context.Context, username string, pid int32, memoryLimit string, threads int)
controlplane/flight_ingress.go:85
↓ 3 callersMethodDML
()
transpiler/backend/profile.go:77
↓ 3 callersFunctionDecrementOpenConnections
DecrementOpenConnections decrements the open connections gauge.
server/observe/metrics.go:19
↓ 3 callersFunctionDefaultDeltaCatalogPath
DefaultDeltaCatalogPath returns the default Delta Lake catalog location for a DuckLake-backed worker as a sibling of the DuckLake prefix at the same p
server/ducklake/migration.go:666
↓ 3 callersMethodDefaultMaxWorkers
DefaultMaxWorkers returns a reasonable default for max_workers. Derived from the memory budget (budget / 256MB).
controlplane/memory_rebalancer.go:212
↓ 3 callersMethodDestroyOrgStack
DestroyOrgStack drains and cleans up an org's resources.
controlplane/org_router.go:185
↓ 3 callersMethodDestroySession
(pid int32)
controlplane/flight_ingress.go:117
↓ 3 callersMethodDestroySessionsForUser
DestroySessionsForUser tears down every active session owned by username (the per-user kill switch). Each DestroySession cancels the session's in-flig
controlplane/session_mgr.go:758
↓ 3 callersFunctionDucklingBucketName
DucklingBucketName returns the per-org S3 bucket name for a type=s3bucket Duckling, mirroring the Crossplane composition's naming (charts crossplane-c
controlplane/configstore/bucketname.go:35
↓ 3 callersMethodEnrich
Enrich backfills Commit/Date from runtime/debug VCS settings when ldflags did not provide them — useful for local `go run` / `go build` where the link
internal/cliboot/buildinfo.go:29
← previousnext →901–1,000 of 5,901, ranked by callers