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
Method
SetMaxWorkers
(n int)
controlplane/session_mgr_drain_test.go:316
Method
SetMaxWorkers
SetMaxWorkers updates the maximum number of workers. 0 means unlimited.
controlplane/k8s_pool.go:289
Method
SetMaxWorkers
SetMaxWorkers updates the maximum number of workers. 0 means unlimited.
controlplane/worker_mgr.go:1038
Method
SetMaxWorkers
(n int)
controlplane/session_mgr_test.go:57
Method
SetOrgUserDisabled
SetOrgUserDisabled flips the per-user kill switch for an existing user. The change is persisted immediately; it becomes effective for new connections
controlplane/configstore/store.go:621
Method
SetOrgUserDisabled
(org, user string, disabled bool)
controlplane/admin/live_aggregate_test.go:69
Method
SetProtocol
SetProtocol updates the protocol label for an active session.
controlplane/session_mgr.go:1041
Function
SetQueryLogger
SetQueryLogger sets the query logger on a Server. Used by the control plane to attach a query logger to the minimal server after creation.
server/exports.go:314
Method
SetSessionOptions
(ctx context.Context, request *flight.SetSessionOptionsRequest, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:420
Method
SetTrailer
(metadata.MD)
duckdbservice/flight_handler_test.go:48
Method
SetWarehouseDeleting
SetWarehouseDeleting atomically transitions a warehouse from expectedState to deleting. Returns gorm.ErrRecordNotFound if no warehouse exists, or an e
controlplane/provisioning/store.go:231
Method
SetWarehouseDeleting
(orgID string, expectedState configstore.ManagedWarehouseProvisioningState)
controlplane/provisioning/api_test.go:165
Method
SetWriteDeadline
(time.Time)
server/conn_passthrough_test.go:57
Function
SetupMultiTenant
SetupMultiTenant is not available without the kubernetes build tag.
controlplane/multitenant_stub.go:13
Function
ShardBadge
({ meta }: { meta: DucklingMetadataEntry | undefined })
controlplane/admin/ui/src/components/ShardBadge.tsx:11
Method
ShutdownAll
()
controlplane/org_router_test.go:49
Method
ShutdownAll
()
controlplane/org_router_test.go:230
Method
ShutdownAll
()
controlplane/org_router_test_helpers_test.go:15
Method
ShutdownAll
()
controlplane/org_reserved_pool.go:381
Method
ShutdownAll
()
controlplane/flight_ingress_test.go:22
Method
ShutdownAll
()
controlplane/flight_ingress_test.go:39
Method
ShutdownAll
()
controlplane/session_mgr_drain_test.go:53
Method
ShutdownAll
()
controlplane/session_mgr_drain_test.go:92
Method
ShutdownAll
()
controlplane/session_mgr_drain_test.go:282
Method
ShutdownAll
()
controlplane/session_mgr_drain_test.go:318
Method
ShutdownAll
ShutdownAll stops all workers by deleting their pods. Per worker it runs a 3-step CAS chain against the runtime store and K8s API: 1. MarkWorkerDrain
controlplane/k8s_pool_lifecycle.go:600
Method
ShutdownAll
()
controlplane/session_mgr_test.go:59
Method
ShutdownAll
ShutdownAll shuts down all org stacks.
controlplane/org_router.go:349
Method
ShutdownAll
()
controlplane/multitenant.go:57
Function
Sidebar
()
controlplane/admin/ui/src/components/Sidebar.tsx:8
Function
Skeleton
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
controlplane/admin/ui/src/components/ui/skeleton.tsx:3
Function
Sparkline
({ data, color = "hsl(var(--primary))", height = 40, }: { data: number[]; color?: string; height?:
controlplane/admin/ui/src/components/Sparkline.tsx:3
Method
SpawnMinWorkers
(count int)
controlplane/org_router_test.go:40
Method
SpawnMinWorkers
(count int)
controlplane/org_router_test.go:223
Method
SpawnMinWorkers
(count int)
controlplane/org_reserved_pool.go:362
Method
SpawnMinWorkers
(count int)
controlplane/session_mgr_drain_test.go:44
Method
SpawnMinWorkers
(count int)
controlplane/session_mgr_drain_test.go:83
Method
SpawnMinWorkers
(count int)
controlplane/session_mgr_drain_test.go:273
Method
SpawnMinWorkers
(count int)
controlplane/session_mgr_drain_test.go:309
Method
SpawnMinWorkers
SpawnMinWorkers pre-warms the pool with the given number of workers. This is used at startup for the elastic 1:1 model.
controlplane/worker_mgr.go:672
Method
SpawnMinWorkers
SpawnMinWorkers is a no-op for the K8s pool: workers are created on demand. pre-spawn. Workers are created on demand per request (ReserveSharedWorker)
controlplane/k8s_pool_acquire.go:739
Method
SpawnMinWorkers
(count int)
controlplane/session_mgr_test.go:50
Method
StackForOrg
(_ string)
controlplane/org_router_test_helpers_test.go:10
Method
StackForOrg
(orgID string)
controlplane/flight_ingress_test.go:16
Method
StackForOrg
(orgID string)
controlplane/flight_ingress_test.go:32
Method
StackForOrg
StackForOrg resolves an orgID directly to its org stack.
controlplane/org_router.go:207
Method
StackForOrg
(orgID string)
controlplane/multitenant.go:45
Method
Start
(ctx context.Context)
controlplane/janitor_leader_stub.go:13
Function
Stat
({ n, label, sub, detail, muted }: { n: number; label: string; sub?: string; detail?: string; muted?: boolean
controlplane/admin/ui/src/components/Topbar.tsx:12
Function
StatCard
({ label, value, hint, icon, accent, children, }: { label: string; value: ReactNode; hint?:
controlplane/admin/ui/src/components/StatCard.tsx:5
Function
StateBadge
({ state }: { state: string | undefined })
controlplane/admin/ui/src/components/StateBadge.tsx:23
Method
Stop
()
controlplane/janitor_leader_stub.go:17
Method
StopContext
(context.Context)
controlplane/control_test.go:36
Method
StopContext
(context.Context)
server/querylog_kafka_test.go:59
Method
String
()
server/conn_passthrough_test.go:62
Method
TLSConfig
TLSConfig returns a tls.Config that serves the ACME-obtained certificate.
server/tlscert/acme_dns.go:157
Method
TableName
()
controlplane/configstore/models.go:64
Method
TableName
()
controlplane/configstore/models.go:82
Method
TableName
()
controlplane/configstore/models.go:101
Method
TableName
()
controlplane/configstore/models.go:269
Method
TableName
()
controlplane/configstore/models.go:446
Function
TableSkeleton
({ rows = 6, cols = 5 }: { rows?: number; cols?: number })
controlplane/admin/ui/src/components/states.tsx:16
Method
TakeOverWorker
(workerID int, ownerCPInstanceID, orgID string, expectedOwnerEpoch int64)
controlplane/k8s_pool_test.go:327
Method
TakeOverWorker
TakeOverWorker transfers durable worker ownership to a new control-plane instance when the caller still has the expected prior owner_epoch.
controlplane/configstore/store.go:1493
Method
Temporary
()
cmd/cache-proxy/proxy_test.go:24
Function
TestACMEDNSCertCache
(t *testing.T)
server/tlscert/acme_dns_test.go:50
Function
TestACMEDNSManagerRequiresFields
(t *testing.T)
server/tlscert/acme_dns_test.go:36
Function
TestACMEManagerClose
(t *testing.T)
server/tlscert/acme_test.go:66
Function
TestACMEManagerTLSConfig
(t *testing.T)
server/tlscert/acme_test.go:46
Function
TestAPIMiddlewareAcceptsCookie
(t *testing.T)
controlplane/admin/dashboard_test.go:31
Function
TestAPIMiddlewareAcceptsFallbackDuringRotation
During a secret rotation the server accepts the previous secret(s) as fallbacks while clients are flipped over to the new primary — on both the servic
controlplane/admin/dashboard_test.go:181
Function
TestAPIMiddlewareRejectsMissingAuth
(t *testing.T)
controlplane/admin/dashboard_test.go:15
Function
TestAbortedTransactionStillAllowsExtendedRollback
TestAbortedTransactionStillAllowsExtendedRollback pins the recovery trigger: it is the error event during extended-query processing, NOT txStatus == '
server/conn_skip_until_sync_test.go:243
Function
TestAcquireMetricsObserveHelpers
TestAcquireMetricsObserveHelpers exercises every observe helper (and every label combination they can emit) so a registration conflict or label-arity
controlplane/acquire_metrics_test.go:16
Function
TestAcquireTotalOutcomeClassification
(t *testing.T)
controlplane/acquire_metrics_test.go:49
Function
TestAcquireWorkerCleansDeadWorkersWhenAllDead
(t *testing.T)
controlplane/worker_mgr_process_test.go:358
Function
TestAcquireWorkerConcurrentSharing
(t *testing.T)
controlplane/worker_mgr_process_test.go:723
Function
TestAcquireWorkerLeastLoadedAtCapacity
(t *testing.T)
controlplane/worker_mgr_process_test.go:301
Function
TestAcquireWorkerReusesIdleWorker
(t *testing.T)
controlplane/worker_mgr_process_test.go:276
Function
TestAcquireWorkerShutdownReturnsError
(t *testing.T)
controlplane/worker_mgr_process_test.go:417
Function
TestAcquireWorkerSpawnsWhenBelowCapacity
(t *testing.T)
controlplane/worker_mgr_process_test.go:331
Function
TestAcquireWorkerUnlimitedWhenMaxZero
(t *testing.T)
controlplane/worker_mgr_process_test.go:400
Function
TestAcquireWorker_AtomicClaimRace
(t *testing.T)
controlplane/worker_mgr_process_test.go:516
Function
TestActivateTenantRejectsDifferentTenantAfterActivation
(t *testing.T)
duckdbservice/flight_handler_test.go:655
Function
TestActivateWorkerForOrgRecordsActivationDurationWhenWorkerAlreadyHot
(t *testing.T)
controlplane/pool_metrics_test.go:145
Function
TestActivatorClearsMigrationLockOnFailure
(t *testing.T)
controlplane/migration_lock_test.go:152
Function
TestActivatorSetsClearsMigrationLock
(t *testing.T)
controlplane/migration_lock_test.go:120
Function
TestActivatorSkipsCheckWhenCachedFalse
(t *testing.T)
controlplane/migration_lock_test.go:178
Function
TestAggregateDedupesByWorker
A worker that appears on both local and a peer (handover window / self-loop) is deduped by worker id — the merge is idempotent.
controlplane/admin/live_aggregate_test.go:325
Function
TestAggregateSkipsBadPeer
A peer that returns garbage is skipped, not allowed to corrupt the result.
controlplane/admin/live_aggregate_test.go:303
Function
TestAirbyteQueries
TestAirbyteQueries tests queries commonly issued by Airbyte
tests/integration/clients/clients_test.go:416
Function
TestAppendValue
(t *testing.T)
duckdbservice/arrow_helpers_test.go:20
Function
TestAppendValueJSONCompositeToString
Regression for #716: DuckDB JSON columns map to an Arrow String column, and the database/sql driver decodes JSON values into native Go composites ([]i
duckdbservice/arrowmap/arrowmap_test.go:330
Function
TestApplyDuckLakePreAttachSettingsWith_IgnoresUnsupportedSettingAfterLoad
(t *testing.T)
server/server_test.go:335
Function
TestApplyDuckLakePreAttachSettingsWith_IgnoresUnsupportedSettingWhenLoaderFails
(t *testing.T)
server/server_test.go:312
Function
TestArrayLowerCompatibilityMacro
(t *testing.T)
server/catalog_test.go:309
Function
TestArrayToStringThreeArg
TestArrayToStringThreeArg covers the PostgreSQL 3-arg array_to_string(arr, sep, nullstr) form. DuckDB's builtin only has the 2-arg arity, so initPgCat
server/pg_catalog_wiring_test.go:11
Function
TestArrowTypeToDuckDB_DeeplyNestedThreeLevels
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1258
Function
TestArrowTypeToDuckDB_ListOfMap
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1248
Function
TestArrowTypeToDuckDB_ListOfStruct
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:66
← previous
next →
3,701–3,800 of 5,901, ranked by callers