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
Method
NewFlight
(addr, serverName, username, password string, insecureSkipVerify bool)
tests/scenario/perf/steps.go:23
↓ 1 callers
Function
NewFlightIngress
(host string, port int, tlsConfig *tls.Config, validator CredentialValidator, provider SessionProvider, cfg Co
server/flightsqlingress/ingress.go:185
↓ 1 callers
Function
NewFlightIngressFromListener
(listener net.Listener, tlsConfig *tls.Config, validator flightsqlingress.CredentialValidator, provider flight
controlplane/flight_ingress.go:34
↓ 1 callers
Function
NewFlightSQLHandler
NewFlightSQLHandler creates a new multi-session Flight SQL handler.
duckdbservice/service.go:1785
↓ 1 callers
Function
NewFromConfig
(cfg ConnectionConfig)
tests/perf/drivers/flight/driver.go:48
↓ 1 callers
Function
NewFuncAliasTransform
()
transpiler/transform/funcalias.go:14
↓ 1 callers
Function
NewFunctionTransform
()
transpiler/transform/functions.go:14
↓ 1 callers
Function
NewGormStore
NewGormStore creates a Store backed by the given ConfigStore.
controlplane/provisioning/store.go:60
↓ 1 callers
Function
NewInformationSchemaTransform
NewInformationSchemaTransform creates a new InformationSchemaTransform with default mappings.
transpiler/transform/information_schema.go:20
↓ 1 callers
Function
NewJanitorLeaderManager
(namespace, identity string, janitor *ControlPlaneJanitor)
controlplane/janitor_leader_k8s.go:55
↓ 1 callers
Function
NewK8sWorkerPool
NewK8sWorkerPool creates a K8sWorkerPool using in-cluster credentials.
controlplane/k8s_pool.go:123
↓ 1 callers
Function
NewKafkaQueryLogConsumer
(cfg QueryLogConfig)
server/querylog_kafka_writer.go:987
↓ 1 callers
Function
NewKafkaQueryLogSink
(cfg QueryLogConfig)
server/querylog_kafka.go:81
↓ 1 callers
Function
NewLogicalCatalogTransform
(logicalDatabaseName, physicalCatalogName string, mapPublicToMain bool)
transpiler/transform/logicalcatalog.go:19
↓ 1 callers
Function
NewMetricsProxy
NewMetricsProxy returns a proxy to the given Prometheus base URL (e.g. http://prometheus-server.monitoring.svc:80). An empty URL disables the endpoint
controlplane/admin/metrics_proxy.go:30
↓ 1 callers
Function
NewOnConflictTransform
()
transpiler/transform/onconflict.go:27
↓ 1 callers
Function
NewOrgRouter
NewOrgRouter creates an OrgRouter from the initial config snapshot.
controlplane/org_router.go:49
↓ 1 callers
Method
NewPGWire
(dsn string)
tests/scenario/perf/steps.go:22
↓ 1 callers
Function
NewPostHogTracker
NewPostHogTracker constructs a Tracker backed by a real PostHog client. host may be a bare host (e.g. "us.i.posthog.com") or a full URL; a bare host i
internal/analytics/analytics.go:97
↓ 1 callers
Function
NewPublicSchemaTransform
(enabled bool)
transpiler/transform/publicschema.go:21
↓ 1 callers
Function
NewQueryLogDuckLakeEntryWriter
(cfg Config)
server/querylog_kafka_writer.go:691
↓ 1 callers
Function
NewQueryLogger
NewQueryLogger opens a dedicated :memory: DuckDB, attaches DuckLake, creates the system.query_log table, and starts the background flush goroutine.
server/querylog.go:112
↓ 1 callers
Function
NewRunnerMetrics
()
tests/perf/core/metrics.go:21
↓ 1 callers
Function
NewRuntimeOrgConnectionLimiter
(store runtimeOrgConnectionStore, orgID, cpInstanceID string, queueTTL time.Duration)
controlplane/connection_limiter.go:53
↓ 1 callers
Function
NewSetShowTransform
NewSetShowTransform creates a new SetShowTransform with default ignored parameters.
transpiler/transform/setshow.go:47
↓ 1 callers
Function
NewStampedHandler
NewStampedHandler returns a handler with pod/node env vars pre-attached, writing to the provided writer. Tests pass a bytes.Buffer; production passes
internal/cliboot/logging.go:92
↓ 1 callers
Function
NewState
()
tests/scenario/dbt/steps.go:114
↓ 1 callers
Function
NewState
()
tests/scenario/sql/steps.go:104
↓ 1 callers
Function
NewState
()
tests/scenario/perf/steps.go:102
↓ 1 callers
Function
NewVersionTransform
NewVersionTransform creates a new VersionTransform.
transpiler/transform/version.go:19
↓ 1 callers
Function
NewWithExecutor
(exec Executor)
tests/perf/drivers/pgwire/driver.go:22
↓ 1 callers
Function
NewWithExecutor
(exec Executor)
tests/perf/drivers/flight/driver.go:35
↓ 1 callers
Function
OTELGRPCClientHandler
OTELGRPCClientHandler returns a gRPC StatsHandler that creates spans only for query-related Flight SQL RPCs (GetFlightInfo, DoGet, DoPut), filtering o
server/sqlcore/otel.go:17
↓ 1 callers
Method
ObserveWorker
(workerID int)
controlplane/worker_pool.go:135
↓ 1 callers
Method
OnChange
OnChange registers a callback that fires when the config snapshot changes.
controlplane/configstore/store.go:635
↓ 1 callers
Function
OpenDuckDBPair
OpenDuckDBPair builds the DSN that openBaseDB would have used, opens one DuckDB Database via *duckdb.Connector, and returns a Main + Control *sql.DB s
duckdbservice/duckdb_pair.go:90
↓ 1 callers
Method
OpenMetricsText
()
tests/perf/core/metrics.go:79
↓ 1 callers
Method
OrgDefaultWorkerProfile
OrgDefaultWorkerProfile returns the org's operator-set default worker profile (config-store columns default_worker_cpu/memory/ttl): cpu and memory as
controlplane/control.go:245
↓ 1 callers
Method
OrgWarehouseStatus
OrgWarehouseStatus reports an org's current warehouse provisioning state so connection-time errors can distinguish "no such org" from "warehouse not r
controlplane/control.go:239
↓ 1 callers
Method
OrgWarehouseStatus
OrgWarehouseStatus reports the current warehouse provisioning state for an org from the in-memory snapshot. Used by the connection handler to emit a m
controlplane/configstore/store.go:434
↓ 1 callers
Function
ParseCopyToOptions
ParseCopyToOptions extracts options from a COPY TO STDOUT command
server/conn_copy.go:132
↓ 1 callers
Function
ParseListenAddr
ParseListenAddr parses ListenAddr into a network and address for net.Listen. Supports "unix:///path/to/sock" and TCP addresses like ":8816" or "host:p
duckdbservice/config.go:40
↓ 1 callers
Function
ParseMemoryBytes
ParseMemoryBytes parses a DuckDB memory size string (e.g., "4GB", "512MB", "1.5GB") into bytes. Supports both integer and fractional values. Returns 0
server/sysinfo/sysinfo.go:102
↓ 1 callers
Method
Profile
Profile returns the pod-shape profile this worker was spawned with (zero = default exclusive profile). Exposes the unexported field for the admin API.
controlplane/worker_mgr.go:63
↓ 1 callers
Function
ProtectLongIdentifiers
ProtectLongIdentifiers exposes protectLongIdentifiers to other packages.
transpiler/longident.go:236
↓ 1 callers
Method
PutSecret
PutSecret stores one statement. With ifNotExists set, an already-stored name is left untouched (mirroring DuckDB's IF NOT EXISTS no-op on the live ses
server/conn_user_secrets.go:25
↓ 1 callers
Function
QualifyTableName
QualifyTableName builds a qualified table name from nullable catalog/schema and table name.
duckdbservice/arrowmap/arrowmap.go:285
↓ 1 callers
Method
QueryDetailForWorkerID
QueryDetailForWorkerID returns the expanded detail (redacted SQL + connection metadata + progress) for the in-flight query on the given cluster-unique
controlplane/admin/live.go:127
↓ 1 callers
Function
ReadMessage
(r io.Reader)
server/exports.go:22
↓ 1 callers
Function
ReadStartupMessage
Exported wrappers for protocol functions used by the control plane worker. These delegate to the internal (lowercase) implementations.
server/exports.go:18
↓ 1 callers
Method
Ready
Ready implements server.UserSecretManager.
controlplane/user_secrets.go:46
↓ 1 callers
Method
ReconnectFlightWorker
(ctx context.Context, workerID int, ownerEpoch int64)
controlplane/session_mgr.go:110
↓ 1 callers
Method
ReconnectFlightWorkerProfile
(ctx context.Context, workerID int, ownerEpoch int64)
controlplane/org_reserved_pool.go:543
↓ 1 callers
Method
ReconnectFlightWorkerProfile
(ctx context.Context, workerID int, ownerEpoch int64)
controlplane/session_mgr.go:114
↓ 1 callers
Method
ReconnectSession
(ctx context.Context, record flightsqlingress.DurableSessionRecord)
controlplane/flight_ingress.go:157
↓ 1 callers
Method
ReconnectSession
(ctx context.Context, record DurableSessionRecord)
server/flightsqlingress/ingress.go:125
↓ 1 callers
Function
RecordFailedAuthAttempt
RecordFailedAuthAttempt records auth telemetry and updates rate-limit state. Returns true when this failure causes the source IP to be banned.
server/auth/policy.go:37
↓ 1 callers
Function
RegisterAPI
RegisterAPI registers all admin REST endpoints on the given router group. fetcher (may be nil) aggregates per-CP live state (sessions/workers) across
controlplane/admin/api.go:82
↓ 1 callers
Function
RegisterAppender
[]Appender RegisterAppender adds a hook that AppendValue will consult before falling back to its built-in value-type handling. Intended for use from p
duckdbservice/arrowmap/arrowmap.go:384
↓ 1 callers
Function
RegisterDuckDBAppender
DuckDBAppendFunc RegisterDuckDBAppender wires a real DuckDB Appender implementation into the COPY codepath. duckdbservice's init() calls this; binarie
server/duckdb_appender.go:34
↓ 1 callers
Function
RegisterDucklingsDrift
RegisterDucklingsDrift wires GET /ducklings/drift. Admin-only via a per-route RequireAdmin so the gate travels with the route (mirrors operators_api.g
controlplane/admin/ducklings_drift.go:52
↓ 1 callers
Function
RegisterExtras
RegisterExtras wires the additional endpoints onto the authenticated /api/v1 group. RoleGate (applied at the group level) enforces viewer/admin; the i
controlplane/admin/extras.go:30
↓ 1 callers
Function
RegisterK8sPoolFactory
RegisterK8sPoolFactory is called from an init() in k8s_factory.go (build tag: kubernetes).
controlplane/worker_pool.go:146
↓ 1 callers
Method
RegisterMetricsProxy
RegisterMetricsProxy wires the metrics endpoints onto the group.
controlplane/admin/metrics_proxy.go:70
↓ 1 callers
Method
ReleaseWorker
ReleaseWorker decrements the active session count for a worker and updates its lastUsed time.
controlplane/worker_mgr.go:784
↓ 1 callers
Method
RequireTransportSecurity
()
controlplane/worker_rpc_security.go:194
↓ 1 callers
Method
ResolveQueryLogDuckLakeConfig
(context.Context, string)
server/querylog_kafka_writer.go:105
↓ 1 callers
Method
ResolveQueryLogEntryWriter
(context.Context, string)
server/querylog_kafka_writer.go:84
↓ 1 callers
Function
RestoreLongIdentifiers
RestoreLongIdentifiers exposes restoreLongIdentifiers to other packages.
transpiler/longident.go:241
↓ 1 callers
Method
RetireIdleOrHotIdleWorker
(record *configstore.WorkerRecord, reason string)
controlplane/worker_lifecycle.go:37
↓ 1 callers
Method
RetireIfDrainingAndEmpty
RetireIfDrainingAndEmpty retires a worker that is draining and has no active sessions. Does NOT decrement activeSessions (caller must have already don
controlplane/k8s_pool_lifecycle.go:98
↓ 1 callers
Method
RetireWorker
RetireWorker stops a worker process and cleans up its resources. Sends SIGINT, waits up to 3s, then SIGKILL. Runs asynchronously to avoid blocking the
controlplane/worker_mgr.go:941
↓ 1 callers
Method
Run
(ctx context.Context)
controlplane/janitor.go:77
↓ 1 callers
Method
Run
(ctx context.Context)
controlplane/per_cp_hot_idle_reaper.go:50
↓ 1 callers
Method
Run
Run starts the reconciliation loop. Blocks until ctx is cancelled.
controlplane/provisioner/controller.go:118
↓ 1 callers
Function
RunChildMode
RunChildMode is the entry point for child worker processes. It reconstructs the TCP connection from FD 3, completes TLS handshake, authenticates the u
server/worker.go:78
↓ 1 callers
Function
RunMessageLoop
RunMessageLoop runs the main message loop for a client connection. It cancels the connection context when the loop exits, ensuring in-flight query con
server/exports.go:277
↓ 1 callers
Function
RunShell
RunShell starts an interactive SQL shell with a fully initialized DuckDB connection. It uses the same CreateDBConnection path as the PostgreSQL server
server/shell.go:20
↓ 1 callers
Method
RunningQueries
RunningQueries returns every active session with its cached progress.
controlplane/admin/live.go:120
↓ 1 callers
Function
SecretRefEmpty
SecretRefEmpty reports whether the ref is entirely unset.
controlplane/configstore/tenant_refs.go:9
↓ 1 callers
Method
SeedOperator
SeedOperator inserts an operator if (and only if) the email is not already present — an idempotent create-only bootstrap. An existing row is left unto
controlplane/configstore/operators.go:109
↓ 1 callers
Function
SendInitialParams
SendInitialParams sends the initial parameter status messages and backend key data.
server/exports.go:270
↓ 1 callers
Method
SessionCountForWorker
SessionCountForWorker returns the number of sessions on a specific worker.
controlplane/session_mgr.go:934
↓ 1 callers
Method
SessionSecretLoader
SessionSecretLoader binds an org onto LoadStatements in the shape SessionManager.SetUserSecretLoader expects.
controlplane/user_secrets.go:105
↓ 1 callers
Function
SetCatalogUseRewrite
SetCatalogUseRewrite records whether this session should expand a bare `USE ducklake` into its reliable two-part target. This is not masking — the cat
server/exports.go:234
↓ 1 callers
Function
SetConnectionPhysicalCatalog
SetConnectionPhysicalCatalog records the resolved DuckDB catalog for control-plane proxy connections. The PostgreSQL-visible database remains on clien
server/exports.go:254
↓ 1 callers
Function
SetConnectionWorkerSize
SetConnectionWorkerSize records the provisioned worker pod size (in milli-units) on a control-plane connection for compute-usage billing. millicores =
server/exports.go:201
↓ 1 callers
Method
SetDataStoreBucketName
SetDataStoreBucketName patches spec.dataStore.bucketName on the named Duckling CR. JSON merge patch (RFC 7396) so it's idempotent and only touches dat
controlplane/provisioner/k8s_client.go:404
↓ 1 callers
Method
SetMaxWorkers
SetMaxWorkers updates the maximum number of workers. 0 means unlimited.
controlplane/worker_pool.go:86
↓ 1 callers
Method
SetMigrating
SetMigrating marks an org as having a DuckLake migration in progress.
controlplane/org_router.go:215
↓ 1 callers
Method
SetOwnerEpoch
(ownerEpoch int64)
server/flightclient/flight_executor.go:145
↓ 1 callers
Function
SetPassthrough
SetPassthrough flips this session into passthrough mode (bypasses the SQL transpiler + pg_catalog). The control plane resolves the per-org flag from t
server/exports.go:245
↓ 1 callers
Method
SetPgBouncerEnabled
SetPgBouncerEnabled patches spec.metadataStore.pgbouncer.enabled on the named Duckling CR. Uses a JSON merge patch (RFC 7396) so the call is idempoten
controlplane/provisioner/k8s_client.go:353
↓ 1 callers
Function
SetProgressFn
SetProgressFn sets the progress lookup function on a Server. Used by the control plane to provide cached query progress from worker health checks.
server/exports.go:370
↓ 1 callers
Method
SetTrailer
(metadata.MD)
duckdbservice/copy_from_stdin_test.go:68
↓ 1 callers
Method
SetUserSecretLoader
SetUserSecretLoader installs the per-user persistent-secret loader used at session creation (multitenant/remote backend only).
controlplane/session_mgr.go:156
↓ 1 callers
Function
SetUserSecretManager
SetUserSecretManager installs the per-user persistent secret manager on a Server. Used by the multitenant control plane after the config store is up.
server/exports.go:353
↓ 1 callers
Method
SetWarehouseDeleting
(orgID string, expectedState configstore.ManagedWarehouseProvisioningState)
controlplane/provisioning/api.go:83
↓ 1 callers
Method
SetWorkerImage
(image string)
controlplane/org_reserved_pool.go:375
↓ 1 callers
Method
SetWorkerResources
SetWorkerResources updates the CPU and memory requests (and limits) applied to newly spawned worker pods. Existing pods are not affected. In multi-te
controlplane/k8s_pool.go:301
← previous
next →
2,001–2,100 of 5,901, ranked by callers