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
↓ 2 callers
Method
set_suite
(self, suite: str)
scripts/client-compat/clients/pgadmin/test_pgadmin.py:72
↓ 2 callers
Function
setup
(fleet: FleetStat[], opts?: { sessions?: number; orgs?: number })
controlplane/admin/ui/src/pages/Overview.test.tsx:21
↓ 2 callers
Method
sharedWarmupConfig
()
duckdbservice/activation.go:357
↓ 2 callers
Function
shouldHandleCopyBeforeTranspile
(query string)
server/conn_copy.go:21
↓ 2 callers
Method
shutdown
()
controlplane/control.go:1646
↓ 2 callers
Method
shutdownRuntimeResources
()
controlplane/control.go:1761
↓ 2 callers
Function
skipBalancedParens
skipBalancedParens advances past a parenthesized group in an uppercased SQL string. i must point to the character immediately after the opening '('. I
server/conn.go:1866
↓ 2 callers
Method
skipSpace
()
server/usersecrets/classify.go:332
↓ 2 callers
Method
snapshot
()
controlplane/session_mgr_drain_test.go:216
↓ 2 callers
Function
sortRows
sortRows sorts rows for order-independent comparison
tests/integration/compare.go:504
↓ 2 callers
Function
sortedCopy
sortedCopy returns a sorted copy of a string slice
tests/integration/compare.go:570
↓ 2 callers
Function
sqlState
(err error)
transpiler/transform/writablecte_returning_test.go:22
↓ 2 callers
Method
stackForWorker
(workerID int)
controlplane/org_router.go:409
↓ 2 callers
Method
startInformer
startInformer starts a SharedIndexInformer to watch worker pods.
controlplane/k8s_pool_reconcile.go:319
↓ 2 callers
Function
startupPacket
(protocolVersion uint32)
controlplane/control_startup_test.go:11
↓ 2 callers
Method
stopAcceptingPGConnections
()
controlplane/control.go:1706
↓ 2 callers
Method
stopLeaderLoops
stopLeaderLoops stops the janitor loop plus any attached extra leader-only loops when this CP loses the lease.
controlplane/janitor_leader_k8s.go:154
↓ 2 callers
Method
storeProfilingFromTrailer
(trailer metadata.MD)
server/flightclient/flight_executor.go:482
↓ 2 callers
Function
stringClaim
(claims map[string]any, key string)
controlplane/admin/authz.go:241
↓ 2 callers
Function
stringConstNode
stringConstNode builds an A_Const string node carrying the given value.
transpiler/transform/operators.go:883
↓ 2 callers
Function
stringPtrOrNil
(value string)
tests/perf/publisher/publisher.go:342
↓ 2 callers
Function
stripLeadingSQL
stripLeadingSQL strips leading whitespace, line comments (--), and block comments (/* ... */) from SQL. Mirrors the logic in hasAnyPrefix.
transpiler/show_create.go:172
↓ 2 callers
Function
stripPgCatalogFromTypeName
stripPgCatalogFromTypeName removes a leading pg_catalog qualifier from a type name so the deparser emits e.g. json instead of pg_catalog.json (which D
transpiler/transpiler.go:1033
↓ 2 callers
Function
syncPoolMenu
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:178
↓ 2 callers
Function
terminalEligibleState
(targetState configstore.WorkerState, currentState configstore.WorkerState)
controlplane/k8s_pool_test.go:439
↓ 2 callers
Function
testMetadataSecret
()
controlplane/shared_worker_activator_credentials_test.go:39
↓ 2 callers
Function
testWarehouseConfig
testWarehouseConfig returns a minimal config-store warehouse whose metadata credentials resolve against the fake clientset's "metadata-creds" secret.
controlplane/shared_worker_activator_credentials_test.go:18
↓ 2 callers
Function
tlsConfigForConnection
(cfg ConnectionConfig)
tests/perf/drivers/flight/driver.go:77
↓ 2 callers
Function
tmpDirEntries
tmpDirEntries counts the files left behind in the cache's .tmp subdir, so tests can assert PutStream never leaks a temp file.
cmd/cache-proxy/cache_test.go:204
↓ 2 callers
Method
toSessionProgress
toSessionProgress converts wire-format progress data to SessionProgress values.
controlplane/worker_mgr.go:580
↓ 2 callers
Method
touchLocked
(key string)
cmd/cache-proxy/cache.go:320
↓ 2 callers
Method
transformColumnDef
transformColumnDef modifies a column definition for DuckLake compatibility. SERIAL is rewritten to plain integer types; GENERATED STORED and DEFAULT <
transpiler/transform/ddl.go:206
↓ 2 callers
Method
transformSelectTargets
(stmt *pg_query.SelectStmt)
transpiler/transform/funcalias.go:54
↓ 2 callers
Method
transformTypeName
transformTypeName converts PostgreSQL type names to DuckDB equivalents
transpiler/transform/types.go:121
↓ 2 callers
Method
transformWindowDef
transformWindowDef transforms the PARTITION BY / ORDER BY expressions of a window definition (inline OVER (...) or a named WINDOW clause entry).
transpiler/transform/operators.go:209
↓ 2 callers
Method
transpileWithFlags
transpileWithFlags parses the SQL and applies only transforms whose flag is set.
transpiler/transpiler.go:225
↓ 2 callers
Method
tryReuseIdleAssigned
tryReuseIdleAssigned returns an already-assigned, idle (Hot) worker of the requested shape with its session count bumped, or nil if none is available.
controlplane/org_reserved_pool.go:304
↓ 2 callers
Function
ttlField
ttlField parses a worker TTL (Go duration) and clamps it to [0,maxTTL] when maxTTL > 0. ttl=0 means "retire as soon as the last query finishes".
controlplane/worker_profile.go:223
↓ 2 callers
Function
useClusterStatus
()
controlplane/admin/ui/src/hooks/useApi.ts:75
↓ 2 callers
Function
useDucklingsMetadata
()
controlplane/admin/ui/src/hooks/useApi.ts:192
↓ 2 callers
Function
useFleet
()
controlplane/admin/ui/src/hooks/useApi.ts:354
↓ 2 callers
Function
useKillUserSessions
()
controlplane/admin/ui/src/hooks/useApi.ts:246
↓ 2 callers
Function
useMetricRange
(expr: string, org: string | undefined, window: string, enabled = true)
controlplane/admin/ui/src/hooks/useApi.ts:378
↓ 2 callers
Function
useUpsertOperator
()
controlplane/admin/ui/src/hooks/useApi.ts:418
↓ 2 callers
Function
useUsers
()
controlplane/admin/ui/src/hooks/useApi.ts:205
↓ 2 callers
Function
validOperatorRole
(role string)
controlplane/configstore/operators.go:23
↓ 2 callers
Function
validateBearerToken
(ctx context.Context, expectedToken string)
duckdbservice/auth.go:44
↓ 2 callers
Function
validateFrozenDatasetMetadata
(path, expectedDatasetVersion string)
tests/perf/harness_artifacts.go:81
↓ 2 callers
Function
validateGRPCMetadataValue
validateGRPCMetadataValue checks that a string is safe for use as a gRPC metadata value: ASCII-only, no newlines, no carriage returns, no NUL bytes.
duckdbservice/profiling_test.go:13
↓ 2 callers
Function
validateOrgMutationPayload
(org *configstore.Org)
controlplane/admin/api.go:719
↓ 2 callers
Function
validateQueryLogKafkaEvent
(event QueryLogKafkaEvent)
server/querylog_kafka_writer.go:635
↓ 2 callers
Function
validateSelectOnlySQL
(field, queryID, sql string)
tests/perf/core/catalog.go:90
↓ 2 callers
Function
validateUsers
(users map[string]string)
controlplane/validation.go:15
↓ 2 callers
Function
validateWorkerBackendConfig
(cfg ControlPlaneConfig)
controlplane/validation.go:42
↓ 2 callers
Function
valuesEqual
valuesEqual compares two values with tolerance
tests/integration/compare.go:320
↓ 2 callers
Method
waitConnWorkDoneLocked
()
duckdbservice/service.go:333
↓ 2 callers
Function
waitContextError
(ctx context.Context, target, orgID string)
tests/scenario/provision/client.go:255
↓ 2 callers
Function
waitForAdvisoryLockWaiter
(t *testing.T, db *sql.DB, holderPID int)
tests/configstore/org_connection_limiter_test.go:1330
↓ 2 callers
Function
waitForCalls
(t *testing.T, timeout time.Duration, fn func() bool)
server/server_test.go:94
↓ 2 callers
Function
waitForRecorder
(t *testing.T, ch <-chan *httptest.ResponseRecorder, msg string)
cmd/cache-proxy/proxy_test.go:65
↓ 2 callers
Method
waitForState
(ctx context.Context, orgID, target string, opts WaitOptions)
tests/scenario/provision/client.go:184
↓ 2 callers
Function
waitForWorkerTCPWithMetadata
waitForWorkerTCPWithMetadata connects to a worker over TCP and verifies its health using the provided metadata payload. For adopted hot-idle workers,
controlplane/k8s_pool_spawn.go:500
↓ 2 callers
Method
waitOptionsForStep
(step core.Step)
tests/scenario/provision/steps.go:167
↓ 2 callers
Function
wipePersistedSecrets
wipePersistedSecrets removes DuckDB's persistent-secret directories for this config. Called on worker startup so persisted secrets never survive a rec
duckdbservice/service.go:509
↓ 2 callers
Function
workerActiveStates
()
controlplane/configstore/store.go:1747
↓ 2 callers
Function
workerMemoryHygieneEnv
workerMemoryHygieneEnv derives the memory/thread env vars for a worker pod from its resolved resource requests. See the call site comment in spawnWork
controlplane/k8s_pool_spawn.go:648
↓ 2 callers
Method
workerPodNamePrefix
workerPodNamePrefix builds the worker pod name prefix: "duckgres-worker[-<org>]-<cp-replicaset-hash>". A fixed "duckgres-worker" head makes worker pod
controlplane/k8s_pool_helpers.go:146
↓ 2 callers
Function
workerPodStatusLogAttrs
(pod *corev1.Pod)
controlplane/k8s_pool_helpers.go:217
↓ 2 callers
Method
workerResourcesForProfile
workerResourcesForProfile builds the pod resource requirements for a worker of the given profile: the profile's CPU/Memory when set, otherwise the poo
controlplane/k8s_pool_spawn.go:674
↓ 2 callers
Function
workerTerminalEligibleStates
(targetState WorkerState)
controlplane/configstore/store.go:1776
↓ 2 callers
Function
writeAttr
writeAttr appends " key=value" to b, quoting the value if it contains whitespace, '=', '"', or unprintable runes — matching slog's TextHandler. Withou
internal/cliboot/logging.go:57
↓ 2 callers
Function
writeCustomSummaryFile
(t *testing.T, runDir string, payload map[string]any)
tests/perf/publisher/publisher_test.go:313
↓ 2 callers
Function
writeDBTProject
(t *testing.T)
tests/scenario/dbt/runner_test.go:177
↓ 2 callers
Function
writeMinimalCSVFile
(t *testing.T, runDir string)
tests/perf/publisher/publisher_test.go:339
↓ 2 callers
Method
writeOrgBatchOrDrop
(ctx context.Context, orgID string, batch []queryLogKafkaBufferedEvent)
server/querylog_kafka_writer.go:355
↓ 2 callers
Function
writeSummaryFile
(t *testing.T, runDir string)
tests/perf/publisher/publisher_test.go:292
↓ 2 callers
Function
write_results
Write results JSON and DuckDB database to volume if configured.
scripts/client-compat/results_gatherer.py:238
↓ 2 callers
Function
write_text
(path: str | None, content: str)
scripts/test_impact_plan.py:535
↓ 1 callers
Method
AckComputeUsage
(watermarkHigh time.Time)
controlplane/compute_billing_api.go:16
↓ 1 callers
Method
Acquire
(ctx context.Context, request connectionAdmissionRequest, limits func(string) configstore.OrgResourceLimits)
controlplane/connection_limiter.go:29
↓ 1 callers
Method
ActiveSessions
ActiveSessions returns the number of active sessions.
duckdbservice/service.go:1342
↓ 1 callers
Method
AggregateComputeUsage
(low, high time.Time)
controlplane/compute_billing_api.go:14
↓ 1 callers
Method
AllOrgStats
AllOrgStats returns per-org worker and session counts.
controlplane/admin/api.go:72
↓ 1 callers
Method
AllSessionStatuses
AllSessionStatuses returns all active sessions across orgs.
controlplane/admin/api.go:76
↓ 1 callers
Method
AllWorkerStatuses
AllWorkerStatuses returns all workers across orgs.
controlplane/admin/api.go:74
↓ 1 callers
Function
ApplyProfilingSettings
ApplyProfilingSettings runs ProfilingSetupSQL against the given connection, writing profiles to ProfilingOutputPath. Use this for connections that byp
server/profiling.go:42
↓ 1 callers
Method
AttachLeaderLoop
AttachLeaderLoop registers an additional run function to start when this CP acquires the janitor lease and stop when it loses it. Used to co-locate ot
controlplane/janitor_leader_k8s.go:46
↓ 1 callers
Function
AuditMiddleware
AuditMiddleware records every mutating request (POST/PUT/PATCH/DELETE) after it completes. It deliberately does NOT capture request bodies (they may c
controlplane/admin/audit.go:92
↓ 1 callers
Function
BackupMetadata
BackupMetadata runs only the metadata backup (no version check). Exported for use by the control plane to run the backup asynchronously.
server/ducklake/migration.go:191
↓ 1 callers
Function
BearerTokenStreamInterceptor
BearerTokenStreamInterceptor returns a gRPC stream interceptor that validates the bearer token from the "authorization" metadata header. If expectedTo
duckdbservice/auth.go:32
↓ 1 callers
Function
BearerTokenUnaryInterceptor
BearerTokenUnaryInterceptor returns a gRPC unary interceptor that validates the bearer token from the "authorization" metadata header. If expectedToke
duckdbservice/auth.go:17
↓ 1 callers
Method
BeginDrain
()
server/flightsqlingress/ingress.go:283
↓ 1 callers
Method
BeginDrain
()
duckdbservice/service.go:944
↓ 1 callers
Method
BeginTransaction
(ctx context.Context, req flightsql.ActionBeginTransactionRequest)
server/flightsqlingress/ingress.go:674
↓ 1 callers
Function
BuildTenantActivationPayload
(ctx context.Context, clientset kubernetes.Interface, defaultNamespace string, org *configstore.OrgConfig, sts
controlplane/shared_worker_activator.go:564
↓ 1 callers
Function
BuildTenantActivationPayloadWithResolver
BuildTenantActivationPayloadWithResolver builds a tenant activation payload when the caller already owns the Kubernetes and runtime resolver dependenc
controlplane/tenant_activation_payload_with_resolver.go:15
↓ 1 callers
Method
BumpWorkerEpoch
(workerID int, ownerCPInstanceID string, expectedOwnerEpoch int64)
controlplane/worker_lifecycle.go:41
↓ 1 callers
Method
CRStatus
CRStatus takes the Duckling CR name — the warehouse row's duckling_name, never a derived value.
controlplane/admin/ducklings_drift.go:21
↓ 1 callers
Function
CancelClientConn
CancelClientConn cancels the context of a clientConn.
server/exports.go:224
↓ 1 callers
Method
CancelQueryBySignal
CancelQueryBySignal sends SIGUSR1 to a child process to cancel its current query. Returns true if the signal was sent successfully.
server/parent.go:296
← previous
next →
1,801–1,900 of 5,901, ranked by callers