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
↓ 28 callers
Function
invalidStep
(stepID, format string, args ...any)
tests/scenario/sql/errors.go:42
↓ 28 callers
Method
query
(ctx context.Context, query string, args ...any)
server/flightsqlingress/ingress.go:1208
↓ 27 callers
Method
Read
(p []byte)
server/conn_copy.go:841
↓ 27 callers
Method
SetOwnerEpoch
(epoch int64)
controlplane/worker_mgr.go:89
↓ 27 callers
Method
Start
Start begins the polling goroutine that periodically reloads config.
controlplane/configstore/store.go:146
↓ 27 callers
Function
get
(path: string, rawQuery?: Record<string, string | number | undefined>)
controlplane/admin/ui/src/lib/api.ts:101
↓ 27 callers
Method
updateTxStatus
updateTxStatus updates the transaction status based on the executed command. This is called after a successful command execution.
server/conn.go:2144
↓ 27 callers
Function
walkNode
walkNode recursively walks a node and its children
transpiler/transform/transform.go:76
↓ 26 callers
Method
fail
(self, name, reason)
scripts/client-compat/clients/psycopg/test_psycopg.py:70
↓ 26 callers
Function
requireGooseMigrationRecorded
(t *testing.T, db *sql.DB, version int64)
tests/configstore/migrations_postgres_test.go:377
↓ 24 callers
Method
Addr
Addr returns the bound listener address.
server/flightsqlingress/ingress.go:259
↓ 24 callers
Method
Columns
()
server/sqlcore/interfaces.go:25
↓ 24 callers
Method
PodName
()
controlplane/worker_mgr.go:146
↓ 24 callers
Method
Stop
Stop stops the background debounce goroutine. Must be called on shutdown.
controlplane/memory_rebalancer.go:100
↓ 24 callers
Function
enc
(s: string)
controlplane/admin/ui/src/lib/api.ts:112
↓ 24 callers
Method
isCallerCancellation
isCallerCancellation reports whether err is a cancellation that the caller asked for — either through pgwire CancelRequest, an explicit ctx cancel, or
server/conn_errors.go:29
↓ 24 callers
Function
newFakeDucklingClient
()
controlplane/provisioner/controller_test.go:99
↓ 24 callers
Function
observeControlPlaneWorkers
(count int)
controlplane/flight_ingress_metrics.go:57
↓ 24 callers
Method
ok
(self, name, detail="")
scripts/client-compat/clients/sqlalchemy/test_sqlalchemy.py:57
↓ 24 callers
Method
reconcile
(ctx context.Context)
controlplane/provisioner/controller.go:147
↓ 24 callers
Function
skipIfKnown
skipIfKnown checks if the current test is in the known failures list and skips it with the documented reason. Call at the start of subtests.
tests/integration/setup_test.go:233
↓ 23 callers
Method
Get
Get returns a child process by PID
server/parent.go:61
↓ 23 callers
Function
ParseScenario
(raw []byte)
tests/scenario/core/catalog.go:57
↓ 23 callers
Method
Transition
Transition validates a lifecycle change and returns the next worker state. When assignment metadata is omitted, the current assignment is carried forw
controlplane/worker_state.go:124
↓ 23 callers
Function
WriteErrorResponse
(w io.Writer, severity, code, message string)
server/exports.go:38
↓ 23 callers
Method
add
(e RecentError)
server/recent_errors.go:49
↓ 23 callers
Function
fail
(name, reason)
scripts/client-compat/clients/node-postgres/test_node_postgres.js:63
↓ 22 callers
Function
$
(s: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:22
↓ 22 callers
Method
DB
DB exposes the GORM database for direct CRUD operations (used by admin API).
controlplane/configstore/store.go:813
↓ 22 callers
Function
NewOperatorTransform
()
transpiler/transform/operators.go:14
↓ 22 callers
Method
Transform
Transform modifies the AST in place. Returns true if any changes were made. The result parameter can be used to set metadata like IsNoOp.
transpiler/transform/transform.go:62
↓ 22 callers
Method
ok
(String name, String detail)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:379
↓ 21 callers
Method
OwnerCPInstanceID
()
controlplane/worker_mgr.go:138
↓ 21 callers
Method
Raw
(func(any) error)
server/sqlcore/interfaces.go:41
↓ 21 callers
Function
ReadMessage
readMessage reads a single message from the client
server/wire/protocol.go:156
↓ 21 callers
Method
Record
(result QueryResult)
tests/perf/core/runner.go:19
↓ 21 callers
Method
SessionCount
SessionCount returns the number of active sessions.
controlplane/session_mgr.go:927
↓ 21 callers
Method
Stop
Stop drains remaining entries and shuts down the flush goroutine.
server/querylog.go:230
↓ 21 callers
Method
String
String renders the human-readable single-line version string used by `--version` / `-v`.
internal/cliboot/buildinfo.go:62
↓ 21 callers
Method
WaitForDrain
(ctx context.Context)
duckdbservice/service.go:1371
↓ 21 callers
Method
beginDrainWork
(allowWhenDraining bool)
duckdbservice/service.go:1389
↓ 21 callers
Function
benchSub
(t *testing.T, name string, latencyMs int, body func(t *testing.T, m *metric))
tests/integration/ducklake_concurrency_test.go:61
↓ 21 callers
Method
executeQuery
(ctx context.Context, step core.Step, spec querySpec, resultID string)
tests/scenario/sql/steps.go:150
↓ 20 callers
Method
BeginDrain
()
duckdbservice/service.go:1348
↓ 20 callers
Method
Count
Count returns the number of active child processes
server/parent.go:80
↓ 20 callers
Method
List
List returns recent entries, newest first, optionally filtered by org/actor.
controlplane/admin/audit.go:69
↓ 20 callers
Function
NewOrgReservedPool
(shared *K8sWorkerPool, orgID string, maxWorkers int, image string, stsBroker *STSBroker)
controlplane/org_reserved_pool.go:33
↓ 20 callers
Method
Remove
Remove unregisters a child process by PID
server/parent.go:49
↓ 20 callers
Function
funcCallNode
(name string, args ...*pg_query.Node)
transpiler/transform/functions_compat.go:286
↓ 20 callers
Function
histogramVecLabelSampleCount
histogramVecLabelSampleCount returns the cumulative sample count of a HistogramVec series labelled with the given values.
controlplane/metrics_test_helpers_test.go:80
↓ 20 callers
Function
newFakeStore
()
controlplane/provisioner/controller_test.go:27
↓ 19 callers
Function
NewControllerWithClient
NewControllerWithClient creates a Controller with a pre-built DucklingClient (for testing).
controlplane/provisioner/controller.go:94
↓ 19 callers
Function
counterValue
counterValue reads a Prometheus counter's current value without pulling in the testutil package (and its extra module deps). Used to assert the Open-v
cmd/cache-proxy/cache_test.go:18
↓ 19 callers
Method
fail
(self, name, reason)
scripts/client-compat/clients/sqlalchemy/test_sqlalchemy.py:63
↓ 19 callers
Method
fail
(String name, String reason)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:386
↓ 19 callers
Method
logQueryError
logQueryError logs a query execution failure. DuckLake-specific retryable conditions and user-attributable errors get Warn / Info so the Error level s
server/conn.go:499
↓ 19 callers
Method
ok
(self, name, detail="")
scripts/client-compat/clients/psycopg/test_psycopg.py:64
↓ 19 callers
Method
reconcileHeadroom
reconcileHeadroom drives the placeholder pods toward the dynamic target. Leader-gated (called from the janitor, which runs only on the elected CP). Al
controlplane/headroom.go:125
↓ 18 callers
Method
Commit
()
tests/perf/publisher/publisher.go:72
↓ 18 callers
Function
ExecuteQuery
ExecuteQuery executes a query and returns the result
tests/integration/compare.go:71
↓ 18 callers
Method
Observe
(result QueryResult)
tests/perf/core/metrics.go:59
↓ 18 callers
Method
OrgID
OrgID returns the org id the worker was assigned to at observation time. Empty for unassigned workers.
controlplane/configstore/lifecycle_types.go:63
↓ 18 callers
Method
UpsertControlPlaneInstance
(instance *configstore.ControlPlaneInstance)
controlplane/runtime_tracker.go:14
↓ 18 callers
Method
logQueryFinished
logQueryFinished records a query terminating on the worker. Counter- part to logQueryStarted; emit once per query regardless of outcome so the start/f
server/conn.go:478
↓ 18 callers
Function
ok
(name, detail = "")
scripts/client-compat/clients/node-postgres/test_node_postgres.js:56
↓ 18 callers
Method
transformExpression
transformExpression recursively transforms an expression, replacing regex operators with function calls. Returns the new node if transformed, nil othe
transpiler/transform/operators.go:369
↓ 17 callers
Method
Name
Name returns the transform identifier for logging/debugging
transpiler/transform/transform.go:57
↓ 17 callers
Function
NewControlPlaneFlightSQLHandler
(sessions *flightAuthSessionStore, validator CredentialValidator)
server/flightsqlingress/ingress.go:343
↓ 17 callers
Function
NewState
()
tests/scenario/provision/steps.go:50
↓ 17 callers
Method
RecordFailedAuth
RecordFailedAuth records a failed authentication attempt. Returns true if the IP is now banned.
server/auth/ratelimit.go:158
↓ 17 callers
Method
UnregisterConnection
UnregisterConnection decrements the active connection count for an IP.
server/auth/ratelimit.go:134
↓ 17 callers
Method
acquireSlot
(ctx context.Context)
controlplane/session_mgr.go:190
↓ 17 callers
Function
classifyErrorCode
classifyErrorCode returns the most appropriate PostgreSQL SQLSTATE for a DuckDB error. Transaction conflicts get 40001 (serialization_failure), which
server/conn_errors.go:69
↓ 17 callers
Function
initPgCatalog
initPgCatalog creates PostgreSQL compatibility functions and views in DuckDB DuckDB already has a pg_catalog schema with basic views, so we just add m
server/catalog.go:16
↓ 17 callers
Function
listHeadroomPods
(t *testing.T, cs *fake.Clientset)
controlplane/headroom_test.go:79
↓ 17 callers
Function
makeFakeWorker
makeFakeWorker creates a ManagedWorker with a started process that stays alive. Returns the worker and a cancel function to kill it.
controlplane/worker_mgr_process_test.go:253
↓ 17 callers
Function
transpileSQL
(t *testing.T, tr *Transpiler, input string)
transpiler/classify_wiring_test.go:33
↓ 16 callers
Method
AssumeRole
AssumeRole returns short-lived credentials for the given IAM role ARN, serving from cache when valid (Expiration is always the true STS expiration; th
controlplane/sts_broker.go:194
↓ 16 callers
Function
Classify
Classify performs fast pre-parse classification of a SQL query. It does case-insensitive substring matching to detect PostgreSQL-specific patterns. Co
transpiler/transpiler.go:341
↓ 16 callers
Function
NewMemoryRebalancer
NewMemoryRebalancer creates a rebalancer with the given budgets. If memoryBudget is 0, it defaults to 75% of system RAM. If threadBudget is 0, it defa
controlplane/memory_rebalancer.go:61
↓ 16 callers
Function
NewTokenSet
NewTokenSet builds a TokenSet from the primary secret and rotation fallbacks, dropping empty strings so an unset slot can never validate.
controlplane/admin/dashboard.go:44
↓ 16 callers
Method
Shutdown
Shutdown performs a graceful shutdown with the given context
server/server.go:628
↓ 16 callers
Method
Worker
Worker returns a worker by ID, or false if not found.
controlplane/worker_pool.go:72
↓ 16 callers
Function
WriteNoData
writeNoData sends no data response
server/wire/protocol.go:326
↓ 16 callers
Method
beginOperation
()
duckdbservice/service.go:225
↓ 16 callers
Function
classified
(class string, err error)
tests/scenario/perf/errors.go:26
↓ 16 callers
Method
logQueryStarted
(query string)
server/conn.go:455
↓ 16 callers
Function
newFlightClientSession
(pid int32, username string, executor *flightclient.FlightExecutor)
server/flightsqlingress/ingress.go:1188
↓ 16 callers
Function
podExists
(t *testing.T, cs *fake.Clientset, name string)
controlplane/k8s_pool_test.go:3814
↓ 16 callers
Method
remove
(partition int)
server/querylog_kafka_writer.go:569
↓ 15 callers
Method
Close
()
server/server.go:547
↓ 15 callers
Method
ColumnTypes
()
server/sqlcore/interfaces.go:26
↓ 15 callers
Method
Count
Count returns the number of accepted tokens (for operability logging only — never log the values themselves).
controlplane/admin/dashboard.go:71
↓ 15 callers
Method
Error
()
tests/perf/publisher/publisher_test.go:67
↓ 15 callers
Function
RedactForLog
RedactForLog returns a version of query safe to write to logs, traces, query logs, and pg_stat_activity. CREATE SECRET option lists carry credential m
server/usersecrets/redact.go:31
↓ 15 callers
Method
RuntimeSchema
RuntimeSchema returns the dedicated runtime coordination schema name.
controlplane/configstore/store.go:818
↓ 15 callers
Method
Start
Start begins serving in the background.
server/flightsqlingress/ingress.go:264
↓ 15 callers
Method
StoreProvisionResponse
(orgID string, resp ProvisionResponse)
tests/scenario/provision/steps.go:57
↓ 15 callers
Function
arrowTypeToDuckDB
arrowTypeToDuckDB maps an Arrow DataType back to a DuckDB type name string.
server/flightclient/flight_executor.go:658
↓ 15 callers
Function
fn
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:754
← previous
next →
101–200 of 5,901, ranked by callers