MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

MethodFetchPeers
(_ context.Context, path string)
controlplane/admin/live_aggregate_test.go:107
FunctionField
({ label, value, mono }: { label: string; value: React.ReactNode; mono?: boolean })
controlplane/admin/ui/src/components/QueryDetailDialog.tsx:17
FunctionField
({ label, children }: { label: string; children: React.ReactNode })
controlplane/admin/ui/src/pages/OrgDetail.tsx:332
FunctionField
({ label, value, mono }: { label: string; value: React.ReactNode; mono?: boolean })
controlplane/admin/ui/src/pages/Errors.tsx:33
MethodFlushComputeUsage
(d []configstore.ComputeUsageDelta)
controlplane/compute_meter_test.go:141
MethodFlushComputeUsage
FlushComputeUsage applies a batch of per-key deltas to the durable buffer via UPSERT-increment, so contributions from every CP pod sum into the same r
controlplane/configstore/compute_usage.go:73
MethodGCComputeUsage
(olderThan time.Time)
controlplane/compute_billing_api_test.go:66
MethodGCComputeUsage
GCComputeUsage hard-deletes buffered buckets older than the cutoff regardless of ack — the safety net that bounds table growth if billing stops pullin
controlplane/configstore/compute_usage.go:178
FunctionGenerateSecretKey
GenerateSecretKey returns a cryptographically random secret key suitable for embedding in a BackendKey. Falls back to a time-based key if crypto/rand
server/wire/backend_key.go:24
MethodGetCatalog
()
duckdbservice/flight_handler_test.go:89
MethodGetDBSchemaFilterPattern
()
duckdbservice/flight_handler_test.go:93
MethodGetFlightInfo
(ctx context.Context, in *flight.FlightDescriptor, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:440
MethodGetFlightInfo
(context.Context, *flight.FlightDescriptor)
server/flightclient/flight_executor_test.go:84
MethodGetFlightInfoStatement
(ctx context.Context, cmd flightsql.StatementQuery, desc *flight.FlightDescriptor)
server/flightsqlingress/ingress.go:514
MethodGetFlightSessionRecord
(string)
controlplane/sni_kubernetes_test.go:173
MethodGetFlightSessionRecord
GetFlightSessionRecord returns a durable Flight reconnect row by session token.
controlplane/configstore/store.go:1800
MethodGetManagedWarehouse
(orgID string)
controlplane/provisioning/store.go:80
MethodGetManagedWarehouse
(orgID string)
controlplane/provisioning/api_test.go:56
MethodGetManagedWarehouse
(orgID string)
controlplane/admin/api_test.go:153
MethodGetOrg
(orgID string)
controlplane/provisioning/store.go:64
MethodGetOrg
(orgID string)
controlplane/provisioning/api_test.go:33
MethodGetOrg
(name string)
controlplane/admin/api_test.go:53
MethodGetQuery
()
duckdbservice/flight_handler_test.go:76
MethodGetQuery
()
duckdbservice/flight_handler_test.go:132
MethodGetRequestMetadata
(ctx context.Context, uri ...string)
controlplane/worker_mgr.go:1380
MethodGetRequestMetadata
(ctx context.Context, uri ...string)
controlplane/worker_rpc_security.go:188
MethodGetRequestMetadata
(ctx context.Context, uri ...string)
server/flightclient/flight_executor.go:867
MethodGetSession
(sessionToken string)
controlplane/flight_ingress.go:203
MethodGetSession
GetSession returns a session by token.
duckdbservice/service.go:1198
MethodGetSessionOptions
(ctx context.Context, request *flight.GetSessionOptionsRequest, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:424
MethodGetTransactionId
()
duckdbservice/flight_handler_test.go:55
MethodGetTransactionId
()
duckdbservice/flight_handler_test.go:80
MethodGetTransactionId
()
duckdbservice/flight_handler_test.go:136
MethodGetUser
(orgID, username string)
controlplane/admin/api_test.go:115
MethodHandle
(_ context.Context, r slog.Record)
internal/cliboot/logging.go:36
MethodHandle
(ctx context.Context, r slog.Record)
internal/cliboot/logging.go:117
MethodHandle
(_ context.Context, r slog.Record)
cmd/cache-proxy/proxy_test.go:41
MethodHandle
(_ context.Context, r slog.Record)
server/pg_catalog_airgap_test.go:20
FunctionHeader
({ id, actions }: { id: string; actions?: React.ReactNode })
controlplane/admin/ui/src/pages/OrgDetail.tsx:315
MethodHeader
()
controlplane/session_mgr_drain_test.go:488
MethodHeadroomSpawnStats
(_, _, _ time.Duration)
controlplane/headroom_test.go:57
MethodHeadroomSpawnStats
HeadroomSpawnStats aggregates the spawn log for the headroom controller. PeakBurst groups spawns of the last burstWindow into fixed bucket-sized bins;
controlplane/configstore/spawn_log.go:38
MethodHealthCheckLoop
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)
controlplane/org_router_test.go:44
MethodHealthCheckLoop
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)
controlplane/org_router_test.go:225
MethodHealthCheckLoop
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)
controlplane/org_reserved_pool.go:366
MethodHealthCheckLoop
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)
controlplane/session_mgr_drain_test.go:48
MethodHealthCheckLoop
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)
controlplane/session_mgr_drain_test.go:87
MethodHealthCheckLoop
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)
controlplane/session_mgr_drain_test.go:277
MethodHealthCheckLoop
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)
controlplane/session_mgr_drain_test.go:313
MethodHealthCheckLoop
HealthCheckLoop periodically checks worker health.
controlplane/k8s_pool_lifecycle.go:324
MethodHealthCheckLoop
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)
controlplane/session_mgr_test.go:54
FunctionIdentityProvider
({ children }: { children: ReactNode })
controlplane/admin/ui/src/components/IdentityProvider.tsx:24
FunctionImpersonate
()
controlplane/admin/ui/src/pages/Impersonate.tsx:25
MethodImpersonate
(c *gin.Context, org, username, sql string, allowWrite bool)
controlplane/admin_providers.go:258
MethodInvalidateQueryLogEntryWriter
(orgID string, writer QueryLogEntryWriter)
server/querylog_kafka_writer_test.go:104
MethodInvalidateQueryLogEntryWriter
(orgID string, writer QueryLogEntryWriter)
server/querylog_kafka_writer.go:892
MethodIsDatabaseNameAvailable
(name string)
controlplane/provisioning/store.go:221
MethodIsDatabaseNameAvailable
(name string)
controlplane/provisioning/api_test.go:156
MethodIsMigratingForOrg
(_ string)
controlplane/flight_ingress_test.go:21
MethodIsMigratingForOrg
(_ string)
controlplane/flight_ingress_test.go:38
MethodIsMigratingForOrg
(orgID string)
controlplane/multitenant.go:53
MethodIsOrgUserPassthrough
(string, string)
controlplane/sni_kubernetes_test.go:150
MethodIsOrgUserPassthrough
IsOrgUserPassthrough reports whether the given (org, user) is configured to bypass the PostgreSQL compatibility layer. Returns false for unknown users
controlplane/configstore/store.go:532
MethodJdbcCompatTest
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:30
FunctionJsonValue
({ value, className }: { value: unknown; className?: string })
controlplane/admin/ui/src/components/JsonView.tsx:11
MethodKillSession
KillSession tears down the session (and its exclusive worker) for pid by locating the owning org stack.
controlplane/admin_providers.go:170
MethodKillSession
(int32)
controlplane/admin/live_aggregate_test.go:46
MethodKillSessionByWorkerID
KillSessionByWorkerID tears down the session bound to the cluster-unique worker id on this replica, returning the count destroyed (0 or 1 — one sessio
controlplane/admin_providers.go:185
MethodKillSessionByWorkerID
(wid int)
controlplane/admin/live_aggregate_test.go:47
MethodKillUserSessions
KillUserSessions tears down every active session for (orgID, username) owned by THIS control-plane replica and returns the count destroyed. It is the
controlplane/admin_providers.go:230
MethodKillUserSessions
(org, user string)
controlplane/admin/live_aggregate_test.go:51
MethodLastInsertId
()
tests/perf/publisher/publisher_test.go:62
MethodLastInsertId
()
server/sessionmeta/sessionmeta_test.go:77
MethodLastProfilingOutput
()
server/executor.go:74
MethodLastProfilingOutput
()
server/executor.go:135
MethodLastProfilingOutput
()
server/profiling_noop_test.go:7
MethodLastProfilingOutput
()
server/profiling_test.go:191
MethodLastProfilingOutput
()
server/sessionmeta/sessionmeta_test.go:45
MethodLastProfilingOutput
()
server/sessionmeta/sessionmeta_test.go:78
MethodLastProfilingOutput
()
server/flightclient/flight_executor.go:472
MethodListActions
(ctx context.Context, in *flight.Empty, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:464
MethodListCRNames
ListCRNames returns the names of every Duckling CR in the namespace. Used by the admin drift finder to detect orphan CRs (CRs with no warehouse row).
controlplane/provisioner/k8s_client.go:239
MethodListExpiredHotIdleSnapshots
ListExpiredHotIdleSnapshots is the lifecycle-typed counterpart used by the migrated janitor hot-idle path. The mock wraps the same underlying slice th
controlplane/janitor_test.go:96
MethodListExpiredHotIdleSnapshots
ListExpiredHotIdleSnapshots is the snapshot-typed variant of ListExpiredHotIdleWorkers used by the janitor's hot-idle TTL reaper.
controlplane/configstore/lifecycle_store.go:36
MethodListExpiredHotIdleSnapshotsForCP
(cpID string, now time.Time, ttl time.Duration)
controlplane/per_cp_hot_idle_reaper_test.go:18
MethodListExpiredHotIdleSnapshotsForCP
ListExpiredHotIdleSnapshotsForCP is the snapshot-typed, owner-scoped variant of ListExpiredHotIdleWorkers used by the per-CP fallback reaper.
controlplane/configstore/lifecycle_store.go:46
MethodListFlights
(ctx context.Context, in *flight.Criteria, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:436
MethodListOrgUserSecrets
ListOrgUserSecrets returns all sealed secrets for one user, ordered by creation time so replay order is deterministic.
controlplane/configstore/user_secrets.go:74
MethodListOrgs
()
controlplane/admin/api.go:162
MethodListOrgs
()
controlplane/admin/api_test.go:35
MethodListOrphanedWorkerSnapshots
ListOrphanedWorkerSnapshots is the lifecycle-typed counterpart used by the migrated janitor orphan path. The mock wraps the same orphan slice through
controlplane/janitor_test.go:57
MethodListOrphanedWorkerSnapshots
(before time.Time)
controlplane/per_cp_hot_idle_reaper_test.go:27
MethodListOrphanedWorkerSnapshots
ListOrphanedWorkerSnapshots is the snapshot-typed variant of ListOrphanedWorkers used by the orphan-cleanup path. Each returned snapshot binds the obs
controlplane/configstore/lifecycle_store.go:26
MethodListStuckWorkerSnapshots
(spawningBefore, activatingBefore time.Time)
controlplane/janitor_test.go:70
MethodListStuckWorkerSnapshots
ListStuckWorkerSnapshots is the snapshot-typed variant of ListStuckWorkers used by the janitor's stuck-spawn/activate reaper.
controlplane/configstore/lifecycle_store.go:56
MethodListUsers
()
controlplane/admin/api.go:257
MethodListUsers
()
controlplane/admin/api_test.go:96
MethodListWarehousesByStates
(states []ManagedWarehouseProvisioningState)
controlplane/configstore/store.go:665
MethodListWarehousesByStates
(states []configstore.ManagedWarehouseProvisioningState)
controlplane/provisioner/controller_test.go:31
MethodListWorkerLifecycleStats
ListWorkerLifecycleStats returns grouped cluster-wide active worker lifecycle state by image and tenant binding for Prometheus observability, with sum
controlplane/configstore/store.go:829
← previousnext →3,301–3,400 of 5,901, ranked by callers