MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

MethodSetMaxWorkers
(n int)
controlplane/session_mgr_drain_test.go:316
MethodSetMaxWorkers
SetMaxWorkers updates the maximum number of workers. 0 means unlimited.
controlplane/k8s_pool.go:289
MethodSetMaxWorkers
SetMaxWorkers updates the maximum number of workers. 0 means unlimited.
controlplane/worker_mgr.go:1038
MethodSetMaxWorkers
(n int)
controlplane/session_mgr_test.go:57
MethodSetOrgUserDisabled
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
MethodSetOrgUserDisabled
(org, user string, disabled bool)
controlplane/admin/live_aggregate_test.go:69
MethodSetProtocol
SetProtocol updates the protocol label for an active session.
controlplane/session_mgr.go:1041
FunctionSetQueryLogger
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
MethodSetSessionOptions
(ctx context.Context, request *flight.SetSessionOptionsRequest, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:420
MethodSetTrailer
(metadata.MD)
duckdbservice/flight_handler_test.go:48
MethodSetWarehouseDeleting
SetWarehouseDeleting atomically transitions a warehouse from expectedState to deleting. Returns gorm.ErrRecordNotFound if no warehouse exists, or an e
controlplane/provisioning/store.go:231
MethodSetWarehouseDeleting
(orgID string, expectedState configstore.ManagedWarehouseProvisioningState)
controlplane/provisioning/api_test.go:165
MethodSetWriteDeadline
(time.Time)
server/conn_passthrough_test.go:57
FunctionSetupMultiTenant
SetupMultiTenant is not available without the kubernetes build tag.
controlplane/multitenant_stub.go:13
FunctionShardBadge
({ meta }: { meta: DucklingMetadataEntry | undefined })
controlplane/admin/ui/src/components/ShardBadge.tsx:11
MethodShutdownAll
()
controlplane/org_router_test.go:49
MethodShutdownAll
()
controlplane/org_router_test.go:230
MethodShutdownAll
()
controlplane/org_router_test_helpers_test.go:15
MethodShutdownAll
()
controlplane/org_reserved_pool.go:381
MethodShutdownAll
()
controlplane/flight_ingress_test.go:22
MethodShutdownAll
()
controlplane/flight_ingress_test.go:39
MethodShutdownAll
()
controlplane/session_mgr_drain_test.go:53
MethodShutdownAll
()
controlplane/session_mgr_drain_test.go:92
MethodShutdownAll
()
controlplane/session_mgr_drain_test.go:282
MethodShutdownAll
()
controlplane/session_mgr_drain_test.go:318
MethodShutdownAll
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
MethodShutdownAll
()
controlplane/session_mgr_test.go:59
MethodShutdownAll
ShutdownAll shuts down all org stacks.
controlplane/org_router.go:349
MethodShutdownAll
()
controlplane/multitenant.go:57
FunctionSidebar
()
controlplane/admin/ui/src/components/Sidebar.tsx:8
FunctionSkeleton
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
controlplane/admin/ui/src/components/ui/skeleton.tsx:3
FunctionSparkline
({ data, color = "hsl(var(--primary))", height = 40, }: { data: number[]; color?: string; height?:
controlplane/admin/ui/src/components/Sparkline.tsx:3
MethodSpawnMinWorkers
(count int)
controlplane/org_router_test.go:40
MethodSpawnMinWorkers
(count int)
controlplane/org_router_test.go:223
MethodSpawnMinWorkers
(count int)
controlplane/org_reserved_pool.go:362
MethodSpawnMinWorkers
(count int)
controlplane/session_mgr_drain_test.go:44
MethodSpawnMinWorkers
(count int)
controlplane/session_mgr_drain_test.go:83
MethodSpawnMinWorkers
(count int)
controlplane/session_mgr_drain_test.go:273
MethodSpawnMinWorkers
(count int)
controlplane/session_mgr_drain_test.go:309
MethodSpawnMinWorkers
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
MethodSpawnMinWorkers
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
MethodSpawnMinWorkers
(count int)
controlplane/session_mgr_test.go:50
MethodStackForOrg
(_ string)
controlplane/org_router_test_helpers_test.go:10
MethodStackForOrg
(orgID string)
controlplane/flight_ingress_test.go:16
MethodStackForOrg
(orgID string)
controlplane/flight_ingress_test.go:32
MethodStackForOrg
StackForOrg resolves an orgID directly to its org stack.
controlplane/org_router.go:207
MethodStackForOrg
(orgID string)
controlplane/multitenant.go:45
MethodStart
(ctx context.Context)
controlplane/janitor_leader_stub.go:13
FunctionStat
({ n, label, sub, detail, muted }: { n: number; label: string; sub?: string; detail?: string; muted?: boolean
controlplane/admin/ui/src/components/Topbar.tsx:12
FunctionStatCard
({ label, value, hint, icon, accent, children, }: { label: string; value: ReactNode; hint?:
controlplane/admin/ui/src/components/StatCard.tsx:5
FunctionStateBadge
({ state }: { state: string | undefined })
controlplane/admin/ui/src/components/StateBadge.tsx:23
MethodStop
()
controlplane/janitor_leader_stub.go:17
MethodStopContext
(context.Context)
controlplane/control_test.go:36
MethodStopContext
(context.Context)
server/querylog_kafka_test.go:59
MethodString
()
server/conn_passthrough_test.go:62
MethodTLSConfig
TLSConfig returns a tls.Config that serves the ACME-obtained certificate.
server/tlscert/acme_dns.go:157
MethodTableName
()
controlplane/configstore/models.go:64
MethodTableName
()
controlplane/configstore/models.go:82
MethodTableName
()
controlplane/configstore/models.go:101
MethodTableName
()
controlplane/configstore/models.go:269
MethodTableName
()
controlplane/configstore/models.go:446
FunctionTableSkeleton
({ rows = 6, cols = 5 }: { rows?: number; cols?: number })
controlplane/admin/ui/src/components/states.tsx:16
MethodTakeOverWorker
(workerID int, ownerCPInstanceID, orgID string, expectedOwnerEpoch int64)
controlplane/k8s_pool_test.go:327
MethodTakeOverWorker
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
MethodTemporary
()
cmd/cache-proxy/proxy_test.go:24
FunctionTestACMEDNSCertCache
(t *testing.T)
server/tlscert/acme_dns_test.go:50
FunctionTestACMEDNSManagerRequiresFields
(t *testing.T)
server/tlscert/acme_dns_test.go:36
FunctionTestACMEManagerClose
(t *testing.T)
server/tlscert/acme_test.go:66
FunctionTestACMEManagerTLSConfig
(t *testing.T)
server/tlscert/acme_test.go:46
FunctionTestAPIMiddlewareAcceptsCookie
(t *testing.T)
controlplane/admin/dashboard_test.go:31
FunctionTestAPIMiddlewareAcceptsFallbackDuringRotation
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
FunctionTestAPIMiddlewareRejectsMissingAuth
(t *testing.T)
controlplane/admin/dashboard_test.go:15
FunctionTestAbortedTransactionStillAllowsExtendedRollback
TestAbortedTransactionStillAllowsExtendedRollback pins the recovery trigger: it is the error event during extended-query processing, NOT txStatus == '
server/conn_skip_until_sync_test.go:243
FunctionTestAcquireMetricsObserveHelpers
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
FunctionTestAcquireTotalOutcomeClassification
(t *testing.T)
controlplane/acquire_metrics_test.go:49
FunctionTestAcquireWorkerCleansDeadWorkersWhenAllDead
(t *testing.T)
controlplane/worker_mgr_process_test.go:358
FunctionTestAcquireWorkerConcurrentSharing
(t *testing.T)
controlplane/worker_mgr_process_test.go:723
FunctionTestAcquireWorkerLeastLoadedAtCapacity
(t *testing.T)
controlplane/worker_mgr_process_test.go:301
FunctionTestAcquireWorkerReusesIdleWorker
(t *testing.T)
controlplane/worker_mgr_process_test.go:276
FunctionTestAcquireWorkerShutdownReturnsError
(t *testing.T)
controlplane/worker_mgr_process_test.go:417
FunctionTestAcquireWorkerSpawnsWhenBelowCapacity
(t *testing.T)
controlplane/worker_mgr_process_test.go:331
FunctionTestAcquireWorkerUnlimitedWhenMaxZero
(t *testing.T)
controlplane/worker_mgr_process_test.go:400
FunctionTestAcquireWorker_AtomicClaimRace
(t *testing.T)
controlplane/worker_mgr_process_test.go:516
FunctionTestActivateTenantRejectsDifferentTenantAfterActivation
(t *testing.T)
duckdbservice/flight_handler_test.go:655
FunctionTestActivateWorkerForOrgRecordsActivationDurationWhenWorkerAlreadyHot
(t *testing.T)
controlplane/pool_metrics_test.go:145
FunctionTestActivatorClearsMigrationLockOnFailure
(t *testing.T)
controlplane/migration_lock_test.go:152
FunctionTestActivatorSetsClearsMigrationLock
(t *testing.T)
controlplane/migration_lock_test.go:120
FunctionTestActivatorSkipsCheckWhenCachedFalse
(t *testing.T)
controlplane/migration_lock_test.go:178
FunctionTestAggregateDedupesByWorker
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
FunctionTestAggregateSkipsBadPeer
A peer that returns garbage is skipped, not allowed to corrupt the result.
controlplane/admin/live_aggregate_test.go:303
FunctionTestAirbyteQueries
TestAirbyteQueries tests queries commonly issued by Airbyte
tests/integration/clients/clients_test.go:416
FunctionTestAppendValue
(t *testing.T)
duckdbservice/arrow_helpers_test.go:20
FunctionTestAppendValueJSONCompositeToString
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
FunctionTestApplyDuckLakePreAttachSettingsWith_IgnoresUnsupportedSettingAfterLoad
(t *testing.T)
server/server_test.go:335
FunctionTestApplyDuckLakePreAttachSettingsWith_IgnoresUnsupportedSettingWhenLoaderFails
(t *testing.T)
server/server_test.go:312
FunctionTestArrayLowerCompatibilityMacro
(t *testing.T)
server/catalog_test.go:309
FunctionTestArrayToStringThreeArg
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
FunctionTestArrowTypeToDuckDB_DeeplyNestedThreeLevels
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1258
FunctionTestArrowTypeToDuckDB_ListOfMap
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1248
FunctionTestArrowTypeToDuckDB_ListOfStruct
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:66
← previousnext →3,701–3,800 of 5,901, ranked by callers