Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PostHog/duckgres
/ functions
Functions
5,901 in github.com/PostHog/duckgres
⨍
Functions
5,901
◇
Types & classes
803
↓ 3 callers
Function
metricGaugeFamilyLabelValue
(t *testing.T, metricName string, labels map[string]string)
controlplane/pool_metrics_test.go:287
↓ 3 callers
Function
metricGaugeValue
(t *testing.T, metricName string)
controlplane/metrics_test_helpers_test.go:10
↓ 3 callers
Function
modelDescriptors
modelDescriptors returns the ordered registry of browsable models. Order is the sidebar order. Every persisted configstore model that an operator migh
controlplane/admin/models_api.go:62
↓ 3 callers
Function
newFlightValidator
(t *testing.T, mode string, store *fakeConfigStore)
controlplane/sni_kubernetes_test.go:186
↓ 3 callers
Function
newGormAPIStore
(store *configstore.ConfigStore)
controlplane/admin/api.go:154
↓ 3 callers
Function
newHealthHandler
(isHealthy func() bool)
controlplane/multitenant.go:654
↓ 3 callers
Function
newOrgAcquireGate
()
controlplane/org_acquire_gate.go:29
↓ 3 callers
Function
newPipelineConn
(t *testing.T, executor QueryExecutor)
server/conn_skip_until_sync_test.go:168
↓ 3 callers
Function
newPostgresConfigStore
(t *testing.T)
controlplane/admin/api_postgres_test.go:20
↓ 3 callers
Function
newSTSBroker
newSTSBroker wires the cache/single-flight machinery around the given credential-minting func. Split from NewSTSBroker so tests can inject a fake.
controlplane/sts_broker.go:182
↓ 3 callers
Function
newStderrStampedHandler
(level slog.Level)
internal/cliboot/logging.go:103
↓ 3 callers
Function
newTestActivator
newTestActivator creates a SharedWorkerActivator with fake k8s secrets and configurable activation behavior for migration lock testing.
controlplane/migration_lock_test.go:40
↓ 3 callers
Function
newTestWorker
(t *testing.T, id int, orgID string)
controlplane/migration_lock_test.go:108
↓ 3 callers
Function
normalizeDriverValue
normalizeDriverValue runs every registered ValueNormalizer over the value. Each normalizer returns the input unchanged when it doesn't claim it; the f
server/value_normalize.go:40
↓ 3 callers
Function
normalizeNextPath
(next string)
controlplane/admin/dashboard.go:155
↓ 3 callers
Function
nsFilter
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:336
↓ 3 callers
Function
observeDrainTotalDuration
observeDrainTotalDuration records the wall-clock duration of one complete worker drain (Drain CAS + pod delete + RetireDrained CAS) inside ShutdownAll
controlplane/worker_lifecycle_metrics.go:325
↓ 3 callers
Function
observedPools
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:166
↓ 3 callers
Function
observedWorkerRecordMatchesCurrent
(observed, current *configstore.WorkerRecord)
controlplane/k8s_pool_test.go:461
↓ 3 callers
Method
onPodTerminated
onPodTerminated handles a worker pod being terminated (crash, eviction, etc.). It closes the done channel on the corresponding ManagedWorker so the he
controlplane/k8s_pool_reconcile.go:383
↓ 3 callers
Method
onStartedLeading
(ctx context.Context)
controlplane/leader_loop.go:19
↓ 3 callers
Method
onStoppedLeading
()
controlplane/leader_loop.go:35
↓ 3 callers
Method
only
(t *testing.T, event string)
controlplane/provisioning/analytics_events_test.go:39
↓ 3 callers
Method
openFile
openFile opens a cached entry WITHOUT recording a hit. Used to serve a body that was just fetched on a miss — that path already counted a miss, so cou
cmd/cache-proxy/cache.go:298
↓ 3 callers
Function
openSecretTestDB
(t *testing.T)
duckdbservice/user_secrets_test.go:13
↓ 3 callers
Function
orgName
(org *configstore.OrgConfig)
controlplane/shared_worker_activator.go:671
↓ 3 callers
Function
orgPath
(orgID, suffix string)
tests/scenario/provision/client.go:262
↓ 3 callers
Function
parseBasicCredentials
(authHeader string)
server/flightsqlingress/ingress.go:2035
↓ 3 callers
Function
parseExtensionName
parseExtensionName splits an extension string into its name and install command. For "cache_httpfs FROM community", returns ("cache_httpfs", "cache_ht
server/server.go:1353
↓ 3 callers
Function
parseK8sMemory
parseK8sMemory parses a Kubernetes memory string (e.g., "360Gi", "8Gi", "512Mi", "4GB") into bytes. Supports both IEC (Ki/Mi/Gi/Ti) and SI (KB/MB/GB/T
controlplane/control.go:1456
↓ 3 callers
Function
parseNumericTypmod
parseNumericTypmod parses precision and scale from a type name like "DECIMAL(10,2)" and encodes them as a PostgreSQL typmod: ((precision << 16) | scal
server/types.go:229
↓ 3 callers
Function
passwordMessage
passwordMessage builds a client PasswordMessage ('p') for the given password.
server/worker_auth_test.go:12
↓ 3 callers
Function
pgDateFormatToStrftime
pgDateFormatToStrftime converts PostgreSQL date/time format specifiers to strftime/strptime format. Processes left-to-right with longest-match-first t
transpiler/transform/functions.go:559
↓ 3 callers
Function
podReq
(pod: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:108
↓ 3 callers
Method
pruneNodeFirstSeenLocked
pruneNodeFirstSeenLocked drops nodeName from the first-seen map when no remaining worker references it, to keep the map bounded as nodes turn over. Ca
controlplane/k8s_pool_acquire.go:774
↓ 3 callers
Function
publishArtifacts
(ctx context.Context, cfg Config, db dbHandle, loaded artifacts)
tests/perf/publisher/publisher.go:246
↓ 3 callers
Function
put
(path: string, body: unknown)
controlplane/admin/ui/src/lib/api.ts:109
↓ 3 callers
Function
queryIntPairs
(t *testing.T, db *sql.DB, query string)
tests/controlplane/ducklake_bool_merge_test.go:38
↓ 3 callers
Method
queryRows
(ctx context.Context, tx *sql.Tx, query string, args ...any)
duckdbservice/service.go:384
↓ 3 callers
Function
quoteIdentifier
(v string)
controlplane/configstore/store.go:808
↓ 3 callers
Function
quoteSQLStringLiteral
(value string)
server/sessionmeta/sessionmeta.go:910
↓ 3 callers
Method
readSecretValue
(ctx context.Context, ref configstore.SecretRef)
controlplane/shared_worker_activator.go:576
↓ 3 callers
Function
readSystemMemoryBytes
readSystemMemoryBytes reads total physical memory from /proc/meminfo on Linux. Returns 0 if the file cannot be read or parsed (e.g., on non-Linux syst
server/sysinfo/sysinfo.go:32
↓ 3 callers
Method
reapIdle
(now time.Time, trigger string)
server/flightsqlingress/ingress.go:1862
↓ 3 callers
Method
reapStuckActivatingWorkers
reapStuckActivatingWorkers retires workers that have been in reserved or activating state for longer than the activating timeout.
controlplane/k8s_pool_lifecycle.go:857
↓ 3 callers
Function
reconcilePods
(container: HTMLElement, list: [any, string][])
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:427
↓ 3 callers
Method
recordSpawnForHeadroom
recordSpawnForHeadroom appends this spawn's shape to the spawn log, which the leader-only reconcile reads to size the placeholder pool. Best-effort: a
controlplane/headroom.go:99
↓ 3 callers
Function
recreatePgClassForDuckLake
recreatePgClassForDuckLake recreates pg_class_full to source from DuckDB's native system functions (duckdb_tables, duckdb_views, etc.) filtered to onl
server/catalog.go:1922
↓ 3 callers
Function
recreatePgNamespaceForDuckLake
recreatePgNamespaceForDuckLake recreates pg_namespace to source from DuckDB's native duckdb_tables() and duckdb_views() functions to get schema OIDs t
server/catalog.go:2118
↓ 3 callers
Function
registerClusterAPI
registerClusterAPI wires the read-only cluster-topology endpoints. It is only called when a kubernetes client is available (remote/k8s backend); the p
controlplane/admin/cluster.go:47
↓ 3 callers
Method
removeWorkerAfterLostLeaseLocked
(lease workerLeaseSnapshot)
controlplane/k8s_pool_lifecycle.go:1309
↓ 3 callers
Function
render
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:510
↓ 3 callers
Function
renderEvRow
(e: any, animate: boolean)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:305
↓ 3 callers
Function
renderPanel
renderPanel substitutes the named tokens into a panel template. $ORGERR is listed before $ORG so the replacer matches the longer token first.
controlplane/admin/metrics_proxy.go:61
↓ 3 callers
Function
requireGooseLatestVersion
(t *testing.T, db *sql.DB, version int64)
tests/configstore/migrations_postgres_test.go:394
↓ 3 callers
Function
requiredString
(step core.Step, key string)
tests/scenario/perf/steps.go:335
↓ 3 callers
Function
requiredString
(step core.Step, key string)
tests/scenario/provision/steps.go:197
↓ 3 callers
Method
resolve
()
cmd/cache-proxy/peers.go:89
↓ 3 callers
Method
resolveSessionLimits
(memoryLimit string, threads int)
controlplane/session_mgr.go:476
↓ 3 callers
Function
resolveWorkerAssignment
(current, proposed *WorkerAssignment)
controlplane/worker_state.go:192
↓ 3 callers
Method
rollbackConn
(ctx context.Context)
duckdbservice/service.go:365
↓ 3 callers
Function
rowsAffectedOrError
(res server.ExecResult)
server/flightsqlingress/ingress.go:666
↓ 3 callers
Function
runChildAuth
runChildAuth feeds clientBytes to authenticateChildClient and returns the exit code plus everything the server wrote to the client.
server/worker_auth_test.go:23
↓ 3 callers
Function
runCrashChild
runCrashChild re-runs the test binary in the given crash mode and returns (stderr, waitStatus).
internal/crashhandler/crashhandler_test.go:39
↓ 3 callers
Function
runPipeline
runPipeline feeds a pipelined client byte stream (terminated with a Terminate frame) through messageLoop and returns the parsed output frames.
server/conn_skip_until_sync_test.go:156
↓ 3 callers
Method
safeCleanupDB
safeCleanupDB safely closes the database connection, handling the case where the underlying connection (e.g., DuckLake's SSL connection to RDS) may be
server/conn.go:584
↓ 3 callers
Function
sameOwnerActivationAttempt
(current, next ActivationPayload)
duckdbservice/activation.go:285
↓ 3 callers
Method
scheduleCleanup
scheduleCleanup invokes WorkerPhysicalCleanup if configured. Separated so every successful-CAS path goes through one helper, making it easy to audit "
controlplane/worker_lifecycle.go:385
↓ 3 callers
Method
sendInitialParams
()
server/conn.go:1082
↓ 3 callers
Method
sendPgStatActivityDataRow
sendPgStatActivityDataRow sends a DataRow for a single connection in pg_stat_activity.
server/conn_pg_stat_activity.go:139
↓ 3 callers
Function
setDuckLakeDefault
setDuckLakeDefault sets the DuckLake catalog as the default so all queries use it. This should be called AFTER creating per-connection views in memory
server/server.go:1958
↓ 3 callers
Function
setInvalidWorkerBinary
(pool *FlightWorkerPool)
controlplane/worker_mgr_process_test.go:16
↓ 3 callers
Function
shapeDrifted
shapeDrifted reports whether an existing placeholder's request differs from the planned one by more than headroomShapeDriftPct on this axis. The toler
controlplane/headroom.go:219
↓ 3 callers
Method
sizeMainForSessions
sizeMainForSessions matches the Main DB's connection capacity to the worker's session admission. Every admitted session pins one *sql.Conn for its who
duckdbservice/service.go:540
↓ 3 callers
Function
skipCommentsAndSpace
skipCommentsAndSpace removes leading whitespace, line comments (--) and block comments (/* */, nested) from s. Returns ok=false on an unterminated blo
server/usersecrets/classify.go:175
↓ 3 callers
Method
skippedResult
(runID string, step Step, errorClass, message string, err error)
tests/scenario/core/runner.go:206
↓ 3 callers
Method
snapshot
()
controlplane/runtime_tracker_test.go:31
↓ 3 callers
Function
sortPods
(l: [any, string][])
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:534
↓ 3 callers
Function
splitHostPort
splitHostPort splits a host:port pair.
server/querylog.go:692
↓ 3 callers
Function
splitTopLevel
splitTopLevel splits query on top-level semicolons (outside string literals, quoted identifiers, and comments), using the same scanning rules as hasTr
server/usersecrets/classify.go:261
↓ 3 callers
Function
splitTopLevelCommas
splitTopLevelCommas splits s on commas at parenthesis depth 0, respecting double-quoted identifiers (with "" as escape).
duckdbservice/arrowmap/arrowmap.go:148
↓ 3 callers
Function
startPoll
( path: string, store: Map<string, any>, onEvent: (type: string, o: any) => void, intervalMs:
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:196
↓ 3 callers
Method
stopContextDone
()
server/querylog_kafka.go:278
↓ 3 callers
Method
stopQueryLogger
()
controlplane/control.go:1807
↓ 3 callers
Function
stripLeadingSQLComments
(query string)
duckdbservice/transient.go:53
↓ 3 callers
Function
transformErrorSQLState
transformErrorSQLState returns the SQLSTATE for a transpiler-detected error. A transform may attach an explicit code (e.g. 0A000 for an unsupported fe
server/conn_errors.go:125
↓ 3 callers
Method
transformFromItem
(node *pg_query.Node)
transpiler/transform/operators.go:330
↓ 3 callers
Method
transformReturningList
transformReturningList transforms RETURNING expressions of INSERT/UPDATE/DELETE.
transpiler/transform/operators.go:227
↓ 3 callers
Method
transformSortClause
transformSortClause transforms the sort expressions in a list of SortBy nodes (SELECT ORDER BY, aggregate ORDER BY, window ORDER BY).
transpiler/transform/operators.go:194
↓ 3 callers
Function
trimK8sPodHashSuffix
trimK8sPodHashSuffix removes the trailing 5-character random pod-hash segment from a K8s deployment pod name (e.g. "duckgres-7b667c7bfd-7745x" → "duck
controlplane/k8s_pool_helpers.go:172
↓ 3 callers
Function
unwrapFlightError
unwrapFlightError recovers the underlying error message from an Arrow Flight / gRPC wrapper. gRPC errors stringify as "… rpc error: code = X desc = <m
server/conn_errors.go:138
↓ 3 callers
Method
upsertAt
(now time.Time)
controlplane/runtime_tracker.go:100
↓ 3 callers
Function
useOrgs
()
controlplane/admin/ui/src/hooks/useApi.ts:105
↓ 3 callers
Function
validateQueryLogKafkaConfig
(cfg QueryLogConfig)
server/querylog_kafka.go:119
↓ 3 callers
Function
validateSharedStartupConfig
(data []byte)
controlplane/shared_startup_config.go:31
↓ 3 callers
Method
validateWithDuckDB
validateWithDuckDB checks if a query is valid DuckDB syntax. This is used when PostgreSQL parsing fails to determine if the query should be executed n
server/conn.go:701
↓ 3 callers
Method
waitBeforeRetry
(ctx context.Context)
server/querylog_kafka_writer.go:433
↓ 3 callers
Method
waitForSessionIdle
()
server/flightclient/flight_executor.go:349
↓ 3 callers
Function
waitTimeoutError
(target, orgID string)
tests/scenario/provision/client.go:251
↓ 3 callers
Function
withSpanRecorder
withSpanRecorder installs an in-memory span recorder as proxyTracer for the test and returns it. Restores the previous tracer on cleanup. This is how
cmd/cache-proxy/tracing_test.go:18
← previous
next →
1,201–1,300 of 5,901, ranked by callers