MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 28 callersFunctioninvalidStep
(stepID, format string, args ...any)
tests/scenario/sql/errors.go:42
↓ 28 callersMethodquery
(ctx context.Context, query string, args ...any)
server/flightsqlingress/ingress.go:1208
↓ 27 callersMethodRead
(p []byte)
server/conn_copy.go:841
↓ 27 callersMethodSetOwnerEpoch
(epoch int64)
controlplane/worker_mgr.go:89
↓ 27 callersMethodStart
Start begins the polling goroutine that periodically reloads config.
controlplane/configstore/store.go:146
↓ 27 callersFunctionget
(path: string, rawQuery?: Record<string, string | number | undefined>)
controlplane/admin/ui/src/lib/api.ts:101
↓ 27 callersMethodupdateTxStatus
updateTxStatus updates the transaction status based on the executed command. This is called after a successful command execution.
server/conn.go:2144
↓ 27 callersFunctionwalkNode
walkNode recursively walks a node and its children
transpiler/transform/transform.go:76
↓ 26 callersMethodfail
(self, name, reason)
scripts/client-compat/clients/psycopg/test_psycopg.py:70
↓ 26 callersFunctionrequireGooseMigrationRecorded
(t *testing.T, db *sql.DB, version int64)
tests/configstore/migrations_postgres_test.go:377
↓ 24 callersMethodAddr
Addr returns the bound listener address.
server/flightsqlingress/ingress.go:259
↓ 24 callersMethodColumns
()
server/sqlcore/interfaces.go:25
↓ 24 callersMethodPodName
()
controlplane/worker_mgr.go:146
↓ 24 callersMethodStop
Stop stops the background debounce goroutine. Must be called on shutdown.
controlplane/memory_rebalancer.go:100
↓ 24 callersFunctionenc
(s: string)
controlplane/admin/ui/src/lib/api.ts:112
↓ 24 callersMethodisCallerCancellation
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 callersFunctionnewFakeDucklingClient
()
controlplane/provisioner/controller_test.go:99
↓ 24 callersFunctionobserveControlPlaneWorkers
(count int)
controlplane/flight_ingress_metrics.go:57
↓ 24 callersMethodok
(self, name, detail="")
scripts/client-compat/clients/sqlalchemy/test_sqlalchemy.py:57
↓ 24 callersMethodreconcile
(ctx context.Context)
controlplane/provisioner/controller.go:147
↓ 24 callersFunctionskipIfKnown
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 callersMethodGet
Get returns a child process by PID
server/parent.go:61
↓ 23 callersFunctionParseScenario
(raw []byte)
tests/scenario/core/catalog.go:57
↓ 23 callersMethodTransition
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 callersFunctionWriteErrorResponse
(w io.Writer, severity, code, message string)
server/exports.go:38
↓ 23 callersMethodadd
(e RecentError)
server/recent_errors.go:49
↓ 23 callersFunctionfail
(name, reason)
scripts/client-compat/clients/node-postgres/test_node_postgres.js:63
↓ 22 callersFunction$
(s: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:22
↓ 22 callersMethodDB
DB exposes the GORM database for direct CRUD operations (used by admin API).
controlplane/configstore/store.go:813
↓ 22 callersFunctionNewOperatorTransform
()
transpiler/transform/operators.go:14
↓ 22 callersMethodTransform
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 callersMethodok
(String name, String detail)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:379
↓ 21 callersMethodOwnerCPInstanceID
()
controlplane/worker_mgr.go:138
↓ 21 callersMethodRaw
(func(any) error)
server/sqlcore/interfaces.go:41
↓ 21 callersFunctionReadMessage
readMessage reads a single message from the client
server/wire/protocol.go:156
↓ 21 callersMethodRecord
(result QueryResult)
tests/perf/core/runner.go:19
↓ 21 callersMethodSessionCount
SessionCount returns the number of active sessions.
controlplane/session_mgr.go:927
↓ 21 callersMethodStop
Stop drains remaining entries and shuts down the flush goroutine.
server/querylog.go:230
↓ 21 callersMethodString
String renders the human-readable single-line version string used by `--version` / `-v`.
internal/cliboot/buildinfo.go:62
↓ 21 callersMethodWaitForDrain
(ctx context.Context)
duckdbservice/service.go:1371
↓ 21 callersMethodbeginDrainWork
(allowWhenDraining bool)
duckdbservice/service.go:1389
↓ 21 callersFunctionbenchSub
(t *testing.T, name string, latencyMs int, body func(t *testing.T, m *metric))
tests/integration/ducklake_concurrency_test.go:61
↓ 21 callersMethodexecuteQuery
(ctx context.Context, step core.Step, spec querySpec, resultID string)
tests/scenario/sql/steps.go:150
↓ 20 callersMethodBeginDrain
()
duckdbservice/service.go:1348
↓ 20 callersMethodCount
Count returns the number of active child processes
server/parent.go:80
↓ 20 callersMethodList
List returns recent entries, newest first, optionally filtered by org/actor.
controlplane/admin/audit.go:69
↓ 20 callersFunctionNewOrgReservedPool
(shared *K8sWorkerPool, orgID string, maxWorkers int, image string, stsBroker *STSBroker)
controlplane/org_reserved_pool.go:33
↓ 20 callersMethodRemove
Remove unregisters a child process by PID
server/parent.go:49
↓ 20 callersFunctionfuncCallNode
(name string, args ...*pg_query.Node)
transpiler/transform/functions_compat.go:286
↓ 20 callersFunctionhistogramVecLabelSampleCount
histogramVecLabelSampleCount returns the cumulative sample count of a HistogramVec series labelled with the given values.
controlplane/metrics_test_helpers_test.go:80
↓ 20 callersFunctionnewFakeStore
()
controlplane/provisioner/controller_test.go:27
↓ 19 callersFunctionNewControllerWithClient
NewControllerWithClient creates a Controller with a pre-built DucklingClient (for testing).
controlplane/provisioner/controller.go:94
↓ 19 callersFunctioncounterValue
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 callersMethodfail
(self, name, reason)
scripts/client-compat/clients/sqlalchemy/test_sqlalchemy.py:63
↓ 19 callersMethodfail
(String name, String reason)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:386
↓ 19 callersMethodlogQueryError
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 callersMethodok
(self, name, detail="")
scripts/client-compat/clients/psycopg/test_psycopg.py:64
↓ 19 callersMethodreconcileHeadroom
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 callersMethodCommit
()
tests/perf/publisher/publisher.go:72
↓ 18 callersFunctionExecuteQuery
ExecuteQuery executes a query and returns the result
tests/integration/compare.go:71
↓ 18 callersMethodObserve
(result QueryResult)
tests/perf/core/metrics.go:59
↓ 18 callersMethodOrgID
OrgID returns the org id the worker was assigned to at observation time. Empty for unassigned workers.
controlplane/configstore/lifecycle_types.go:63
↓ 18 callersMethodUpsertControlPlaneInstance
(instance *configstore.ControlPlaneInstance)
controlplane/runtime_tracker.go:14
↓ 18 callersMethodlogQueryFinished
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 callersFunctionok
(name, detail = "")
scripts/client-compat/clients/node-postgres/test_node_postgres.js:56
↓ 18 callersMethodtransformExpression
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 callersMethodName
Name returns the transform identifier for logging/debugging
transpiler/transform/transform.go:57
↓ 17 callersFunctionNewControlPlaneFlightSQLHandler
(sessions *flightAuthSessionStore, validator CredentialValidator)
server/flightsqlingress/ingress.go:343
↓ 17 callersFunctionNewState
()
tests/scenario/provision/steps.go:50
↓ 17 callersMethodRecordFailedAuth
RecordFailedAuth records a failed authentication attempt. Returns true if the IP is now banned.
server/auth/ratelimit.go:158
↓ 17 callersMethodUnregisterConnection
UnregisterConnection decrements the active connection count for an IP.
server/auth/ratelimit.go:134
↓ 17 callersMethodacquireSlot
(ctx context.Context)
controlplane/session_mgr.go:190
↓ 17 callersFunctionclassifyErrorCode
classifyErrorCode returns the most appropriate PostgreSQL SQLSTATE for a DuckDB error. Transaction conflicts get 40001 (serialization_failure), which
server/conn_errors.go:69
↓ 17 callersFunctioninitPgCatalog
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 callersFunctionlistHeadroomPods
(t *testing.T, cs *fake.Clientset)
controlplane/headroom_test.go:79
↓ 17 callersFunctionmakeFakeWorker
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 callersFunctiontranspileSQL
(t *testing.T, tr *Transpiler, input string)
transpiler/classify_wiring_test.go:33
↓ 16 callersMethodAssumeRole
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 callersFunctionClassify
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 callersFunctionNewMemoryRebalancer
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 callersFunctionNewTokenSet
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 callersMethodShutdown
Shutdown performs a graceful shutdown with the given context
server/server.go:628
↓ 16 callersMethodWorker
Worker returns a worker by ID, or false if not found.
controlplane/worker_pool.go:72
↓ 16 callersFunctionWriteNoData
writeNoData sends no data response
server/wire/protocol.go:326
↓ 16 callersMethodbeginOperation
()
duckdbservice/service.go:225
↓ 16 callersFunctionclassified
(class string, err error)
tests/scenario/perf/errors.go:26
↓ 16 callersMethodlogQueryStarted
(query string)
server/conn.go:455
↓ 16 callersFunctionnewFlightClientSession
(pid int32, username string, executor *flightclient.FlightExecutor)
server/flightsqlingress/ingress.go:1188
↓ 16 callersFunctionpodExists
(t *testing.T, cs *fake.Clientset, name string)
controlplane/k8s_pool_test.go:3814
↓ 16 callersMethodremove
(partition int)
server/querylog_kafka_writer.go:569
↓ 15 callersMethodClose
()
server/server.go:547
↓ 15 callersMethodColumnTypes
()
server/sqlcore/interfaces.go:26
↓ 15 callersMethodCount
Count returns the number of accepted tokens (for operability logging only — never log the values themselves).
controlplane/admin/dashboard.go:71
↓ 15 callersMethodError
()
tests/perf/publisher/publisher_test.go:67
↓ 15 callersFunctionRedactForLog
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 callersMethodRuntimeSchema
RuntimeSchema returns the dedicated runtime coordination schema name.
controlplane/configstore/store.go:818
↓ 15 callersMethodStart
Start begins serving in the background.
server/flightsqlingress/ingress.go:264
↓ 15 callersMethodStoreProvisionResponse
(orgID string, resp ProvisionResponse)
tests/scenario/provision/steps.go:57
↓ 15 callersFunctionarrowTypeToDuckDB
arrowTypeToDuckDB maps an Arrow DataType back to a DuckDB type name string.
server/flightclient/flight_executor.go:658
↓ 15 callersFunctionfn
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:754
← previousnext →101–200 of 5,901, ranked by callers