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
↓ 1 callers
Function
SetupMultiTenant
SetupMultiTenant initializes the config store, org router, and API server. Called from RunControlPlane when --config-store is set with remote backend.
controlplane/multitenant.go:145
↓ 1 callers
Method
Shutdown
Shutdown gracefully stops the service.
duckdbservice/service.go:931
↓ 1 callers
Function
SpanIDFromContext
SpanIDFromContext returns the hex span ID from the span context, or "".
server/observe/tracing.go:255
↓ 1 callers
Method
SpawnAll
SpawnAll spawns the specified number of workers in parallel.
controlplane/worker_mgr.go:638
↓ 1 callers
Method
SpawnMinWorkers
SpawnMinWorkers pre-warms the pool with count workers at startup. Only the process FlightWorkerPool implements this (--process-min-workers); the K8s p
controlplane/worker_pool.go:77
↓ 1 callers
Method
SpawnWorker
SpawnWorker creates a new worker pod and waits for it to become ready. It acquires the spawn semaphore to limit concurrent K8s API calls and retries t
controlplane/k8s_pool_spawn.go:33
↓ 1 callers
Function
SpecialFunctionNames
SpecialFunctionNames returns all function names that have special (non-rename) transformations.
transpiler/transform/functions.go:146
↓ 1 callers
Function
StartPostgresContainer
StartPostgresContainer starts only the PostgreSQL comparison container.
tests/integration/harness.go:672
↓ 1 callers
Method
State
()
tests/scenario/dbt/steps.go:118
↓ 1 callers
Method
Stop
()
controlplane/control_test.go:32
↓ 1 callers
Method
Stop
()
server/querylog_kafka.go:145
↓ 1 callers
Method
StopContext
StopContext drains remaining entries until ctx expires, then closes the DB to unblock any in-flight flush.
server/querylog.go:236
↓ 1 callers
Method
StopContext
(ctx context.Context)
server/querylog_kafka.go:149
↓ 1 callers
Function
StopPostgresContainer
StopPostgresContainer stops the PostgreSQL Docker container
tests/integration/harness.go:691
↓ 1 callers
Method
StoreResult
(result StepResult)
tests/scenario/sql/steps.go:112
↓ 1 callers
Method
StoreResult
(result StepResult)
tests/scenario/perf/steps.go:114
↓ 1 callers
Function
SupportsLimit
SupportsLimit returns true if the (uppercased) query is a statement type that accepts a LIMIT clause. Statements like SHOW, DESCRIBE, EXPLAIN, PRAGMA,
duckdbservice/arrowmap/arrowmap.go:274
↓ 1 callers
Function
SystemMemoryBytes
SystemMemoryBytes returns total physical memory in bytes, cached after first call. Returns 0 if the system memory cannot be detected (e.g., on non-Lin
server/sysinfo/sysinfo.go:23
↓ 1 callers
Method
TableName
()
controlplane/configstore/models.go:302
↓ 1 callers
Method
TableName
()
controlplane/configstore/models.go:418
↓ 1 callers
Method
TableName
()
controlplane/configstore/models.go:465
↓ 1 callers
Method
TableName
TableName pins the audit table name in the config-store database.
controlplane/admin/audit.go:40
↓ 1 callers
Method
TouchSession
(sessionToken string, lastSeenAt time.Time)
server/flightsqlingress/ingress.go:115
↓ 1 callers
Method
Transform
(tree *pg_query.ParseResult, result *Result)
transpiler/transform/ddl.go:27
↓ 1 callers
Method
Transform
(tree *pg_query.ParseResult, result *Result)
transpiler/transform/placeholder.go:20
↓ 1 callers
Function
TriggerCThreadSegfault
TriggerCThreadSegfault crashes with SIGSEGV on a thread created by C code (never returns).
internal/crashhandler/triggers.go:34
↓ 1 callers
Function
TriggerCgoCallSegfault
TriggerCgoCallSegfault crashes with SIGSEGV inside a cgo call (never returns).
internal/crashhandler/triggers.go:40
↓ 1 callers
Method
TryAcquireOrgConnectionLeaseWithLimitLookup
TryAcquireOrgConnectionLeaseWithLimitLookup attempts to grant one queued request using a username-scoped limit lookup. Earlier queued requests must be
controlplane/configstore/org_connections.go:77
↓ 1 callers
Method
Unwrap
()
tests/scenario/provision/errors.go:65
↓ 1 callers
Method
UpdateOrg
(name string, updates configstore.Org)
controlplane/admin/api.go:130
↓ 1 callers
Method
UpdateUser
(orgID, username, passwordHash string, passthrough *bool, maxVCPUs *int)
controlplane/admin/api.go:136
↓ 1 callers
Method
UpdatedAt
UpdatedAt returns the row's updated_at timestamp at observation time.
controlplane/configstore/lifecycle_types.go:73
↓ 1 callers
Method
UpsertManagedWarehouse
(orgID string, warehouse *configstore.ManagedWarehouse)
controlplane/admin/api.go:140
↓ 1 callers
Method
UpsertOperator
UpsertOperator creates or updates an operator. The email is lowercased; role must be "admin" or "viewer". On conflict (email PK) the role + added_by +
controlplane/configstore/operators.go:58
↓ 1 callers
Method
UpsertOrgUserSecret
UpsertOrgUserSecret stores (or replaces) one sealed user secret. When maxPerUser > 0, creating a NEW secret name is rejected with ErrTooManyUserSecret
controlplane/configstore/user_secrets.go:21
↓ 1 callers
Method
UpsertSession
(record DurableSessionRecord)
server/flightsqlingress/ingress.go:113
↓ 1 callers
Method
UserSecretManager
UserSecretManager returns the installed per-user persistent secret manager (nil when the feature is not configured).
server/exports.go:359
↓ 1 callers
Method
ValidateCredentials
(username, password string)
server/flightsqlingress/ingress.go:134
↓ 1 callers
Method
ValidateCredentialsForSNI
ValidateCredentialsForSNI authenticates (username, password) against the org the connection's managed hostname (SNI) resolves to. It does NOT stash th
controlplane/control.go:2009
↓ 1 callers
Method
ValidateOrgUser
(orgID, username, password string)
controlplane/control.go:228
↓ 1 callers
Method
ValidateOrgUser
(orgID, user, pass string)
controlplane/sni_kubernetes_test.go:143
↓ 1 callers
Method
WaitForDrain
(ctx context.Context)
duckdbservice/service.go:950
↓ 1 callers
Method
WarehouseStatus
(ctx context.Context, orgID string)
tests/scenario/provision/client.go:109
↓ 1 callers
Method
Warmup
Warmup performs one-time initialization of the shared DuckDB instance. This loads extensions and attaches catalogs so that subsequent session creation
duckdbservice/service.go:550
↓ 1 callers
Method
WatchEndpoints
WatchEndpoints periodically resolves the headless Service DNS to discover peer cache proxy pods.
cmd/cache-proxy/peers.go:72
↓ 1 callers
Method
WithAttrs
WithAttrs returns a new multiHandler with the given attributes applied to all underlying handlers.
internal/cliboot/logging.go:210
↓ 1 callers
Method
WithBucketSuffix
WithBucketSuffix sets the env suffix used to compute and backfill the CP-owned per-org s3bucket name onto existing ready ducklings. Empty leaves backf
controlplane/provisioner/controller.go:112
↓ 1 callers
Method
WithGroup
WithGroup returns a new multiHandler with the given group name applied to all underlying handlers.
internal/cliboot/logging.go:219
↓ 1 callers
Method
WorkerFleet
WorkerFleet returns worker counts by lifecycle state across the cluster.
controlplane/admin/live.go:129
↓ 1 callers
Method
WorkerPodNameForPID
WorkerPodNameForPID returns the K8s pod name of the worker hosting the session, or "" if not found or not running on K8s.
controlplane/session_mgr.go:978
↓ 1 callers
Method
WorkerProfile
WorkerProfile returns the pod-shape profile (cpu/memory/ttl) of a worker by ID, or false if the worker is not in the pool. The zero profile is the def
controlplane/session_mgr.go:995
↓ 1 callers
Function
WriteArtifacts
(dir string, summary RunSummary, results []StepResult)
tests/scenario/core/artifacts.go:53
↓ 1 callers
Function
WriteAuthCleartextPassword
(w io.Writer)
server/exports.go:30
↓ 1 callers
Function
WriteAuthOK
(w io.Writer)
server/exports.go:26
↓ 1 callers
Function
WriteBindComplete
writeBindComplete sends bind complete
server/wire/protocol.go:316
↓ 1 callers
Function
WriteCloseComplete
writeCloseComplete sends close complete
server/wire/protocol.go:321
↓ 1 callers
Method
WriteQueryLogEntries
(context.Context, []QueryLogEntry)
server/querylog_kafka_writer.go:69
↓ 1 callers
Method
WriteQueryLogKafkaEvent
(context.Context, QueryLogKafkaEvent)
server/querylog_kafka_writer.go:75
↓ 1 callers
Method
WriteQueryLogKafkaEvents
(context.Context, []QueryLogKafkaEvent)
server/querylog_kafka_writer.go:80
↓ 1 callers
Function
WriteReadyForQuery
(w io.Writer, txStatus byte)
server/exports.go:34
↓ 1 callers
Method
_read_json
(self)
scripts/client-compat/results_gatherer.py:172
↓ 1 callers
Method
acceptLoop
()
controlplane/control.go:700
↓ 1 callers
Method
acceptLoop
()
tests/integration/latency_proxy.go:58
↓ 1 callers
Method
acquireDecision
acquireDecision is the short, gate-held decision section of the slow path: re-check idle reuse, then claim a hot-idle worker or create a spawning slot
controlplane/org_reserved_pool.go:136
↓ 1 callers
Function
actionVerb
(method string)
controlplane/admin/audit.go:222
↓ 1 callers
Function
activeOrTotal
(rows: { state?: string }[])
controlplane/admin/ui/src/components/Topbar.tsx:28
↓ 1 callers
Method
activeOrgConnectionLeaseVCPUUsage
(tx *gorm.DB, orgID string)
controlplane/configstore/org_connections.go:307
↓ 1 callers
Method
activeSharedDB
()
duckdbservice/activation.go:365
↓ 1 callers
Method
activeStreamCount
()
server/flightsqlingress/ingress.go:1417
↓ 1 callers
Method
addEvent
(partition int, orgID string, item queryLogKafkaBufferedEvent, now time.Time)
server/querylog_kafka_writer.go:536
↓ 1 callers
Method
addTxn
(txnKey string)
server/flightsqlingress/ingress.go:1311
↓ 1 callers
Method
adoptClaimedWorker
(ctx context.Context, claimed *configstore.WorkerRecord)
controlplane/k8s_pool_acquire.go:591
↓ 1 callers
Function
alterColumnTypeHasUsingExpression
(cmd *pg_query.AlterTableCmd)
transpiler/transform/ddl.go:446
↓ 1 callers
Method
analyzeCTEs
analyzeCTEs extracts CTE metadata while preserving declaration order
transpiler/transform/writablecte.go:106
↓ 1 callers
Function
analyze_diff
(name_status_lines: Iterable[str], patch_lines: Iterable[str])
scripts/test_impact_plan.py:278
↓ 1 callers
Function
analyze_github_pr_files
( files_payload: object, expected_file_count: int | None = None, )
scripts/test_impact_plan.py:332
↓ 1 callers
Function
appendBuiltin
appendBuiltin handles the value types arrowmap knows about natively (everything that doesn't depend on a database driver package).
duckdbservice/arrowmap/arrowmap.go:415
↓ 1 callers
Function
appendQueryHandleReleaseFuncs
(handle *QueryHandle, drainReleases, operationReleases []func())
duckdbservice/flight_handler.go:90
↓ 1 callers
Method
appendWithDuckDBAppender
appendWithDuckDBAppender dispatches to the registered DuckDB Appender, if any. Returns errDuckDBAppenderUnavailable when no implementation has been re
server/duckdb_appender.go:49
↓ 1 callers
Method
applyExpectedError
(step Step, err error, result *StepResult)
tests/scenario/core/runner.go:170
↓ 1 callers
Function
assertGaugeVecValue
(t *testing.T, gv *prometheus.GaugeVec, expected float64, labels ...string)
controlplane/pool_metrics_test.go:326
↓ 1 callers
Method
atOrgWorkerCap
atOrgWorkerCap reports whether the org has reached its maximum concurrent workers (count cap). Hot-idle workers are excluded (they don't consume the c
controlplane/org_reserved_pool.go:285
↓ 1 callers
Function
autoMigrateRuntimeTables
These runtime coordination tables are CP-owned, so AutoMigrate is acceptable while changes stay additive and the state remains safely rebuildable or e
controlplane/configstore/store.go:718
↓ 1 callers
Function
awsAssumeRole
awsAssumeRole mints fresh credentials for the given IAM role ARN via STS.
controlplane/sts_broker.go:249
↓ 1 callers
Method
backendKey
backendKey returns the backend key for this connection, used for cancel requests.
server/conn.go:281
↓ 1 callers
Function
backupTable
backupTable writes CREATE TABLE and INSERT statements for a single table. Returns the number of rows backed up.
server/ducklake/migration.go:448
↓ 1 callers
Method
begin
(ctx context.Context)
controlplane/session_lifecycle.go:25
↓ 1 callers
Method
beginOperationForTransaction
(txnKey string)
duckdbservice/service.go:249
↓ 1 callers
Method
beginTransaction
(ctx context.Context)
server/flightsqlingress/ingress.go:1323
↓ 1 callers
Function
binderErrorCode
binderErrorCode narrows a "Binder Error: …" message. The binder raises on semantic problems discovered after parsing, most commonly missing columns.
server/conn_errors.go:192
↓ 1 callers
Function
bitStringToCast
bitStringToCast converts a pg_query bit-string value ("b101" / "B101") to a '101'::BIT TypeCast node. Returns nil for hex bit-strings (X'..') or anyth
transpiler/transform/literals.go:95
↓ 1 callers
Function
blockCommentEnd
(query string, start int)
server/flightclient/flight_executor.go:973
↓ 1 callers
Function
boolComparisonRewrite
(op string, value bool)
transpiler/transform/boolpredicates.go:326
↓ 1 callers
Function
boolConstNode
(b bool)
transpiler/transform/functions_compat.go:272
↓ 1 callers
Function
boolEnv
(t *testing.T, key string, fallback bool)
tests/scenario/runner_test.go:468
↓ 1 callers
Function
boolFromWith
(step core.Step, key string)
tests/scenario/provision/steps.go:221
↓ 1 callers
Function
booleanComparisonArg
(left, right *pg_query.Node)
transpiler/transform/boolpredicates.go:300
↓ 1 callers
Function
bootstrapSessionToken
(client *flightsql.Client, username, password string)
tests/perf/drivers/flight/driver.go:166
↓ 1 callers
Method
bufferMessage
(batches *queryLogKafkaPartitionBatches, msg QueryLogKafkaConsumedMessage)
server/querylog_kafka_writer.go:249
↓ 1 callers
Method
buildDuckLakeConfigFromDuckling
buildDuckLakeConfigFromDuckling reads all infrastructure details from the Duckling CR and uses STS to broker S3 credentials. Used for Crossplane-provi
controlplane/shared_worker_activator.go:407
← previous
next →
2,101–2,200 of 5,901, ranked by callers