MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 6 callersMethodExecContext
(ctx context.Context, query string, args ...any)
server/sqlcore/interfaces.go:49
↓ 6 callersMethodFetchPeers
(ctx context.Context, path string)
controlplane/admin/live_aggregate.go:25
↓ 6 callersMethodGetByToken
(token string)
server/flightsqlingress/ingress.go:1635
↓ 6 callersMethodGetFlightInfoStatement
Flight SQL method implementations
duckdbservice/flight_handler.go:498
↓ 6 callersMethodGetSession
(sessionToken string)
server/flightsqlingress/ingress_test.go:146
↓ 6 callersFunctionHasAttachedCatalog
(ctx context.Context, executor sqlcore.QueryExecutor, catalog string)
server/sessionmeta/sessionmeta.go:70
↓ 6 callersFunctionInitMinimalServer
InitMinimalServer initializes a Server struct with minimal fields for use in control plane worker sessions.
server/exports.go:298
↓ 6 callersFunctionIsCopyFromStdinDescriptor
IsCopyFromStdinDescriptor reports whether desc is the custom DoPut descriptor used by the control plane to stream a CSV spool file for COPY FROM STDIN
duckdbservice/copy_from_stdin.go:24
↓ 6 callersMethodListExpiredHotIdleWorkers
ListExpiredHotIdleWorkers returns hot-idle workers whose per-worker TTL has elapsed since they last became idle. Idle age is measured from hot_idle_si
controlplane/configstore/store.go:1141
↓ 6 callersFunctionLoadScenario
(path string)
tests/scenario/core/catalog.go:49
↓ 6 callersFunctionNew
(cfg Config)
server/server.go:389
↓ 6 callersFunctionNewExecutor
(cfg ExecutorConfig)
tests/scenario/provision/steps.go:38
↓ 6 callersFunctionNewLockingTransform
NewLockingTransform creates a new LockingTransform.
transpiler/transform/locking.go:12
↓ 6 callersFunctionNewQueryLogDuckLakeEntryWriterResolver
(configResolver QueryLogDuckLakeConfigResolver)
server/querylog_kafka_writer.go:817
↓ 6 callersMethodProcessOne
(ctx context.Context)
server/querylog_kafka_writer.go:210
↓ 6 callersMethodRetireWorker
RetireWorker removes a worker from the pool and shuts it down.
controlplane/worker_pool.go:65
↓ 6 callersFunctionS3ProviderForConfig
S3ProviderForConfig returns the effective S3 provider for the given DuckLake config.
server/server.go:2260
↓ 6 callersFunctionSecretDirectory
SecretDirectory returns the directory DuckDB should use for persistent secrets for this instance, or "" to leave DuckDB's default in place. DuckDB de
server/server.go:898
↓ 6 callersMethodSetProbe
SetProbe overrides the metadata-store probe. Used by tests.
controlplane/provisioner/controller.go:104
↓ 6 callersMethodStop
Stop shuts down the checkpoint scheduler, waits for any in-progress checkpoint to finish, and closes the database connection.
server/checkpoint.go:106
↓ 6 callersMethodTrailer
()
controlplane/session_mgr_drain_test.go:501
↓ 6 callersFunctionValidateTenantSecretRef
ValidateTenantSecretRef constrains shared-worker secret refs to tenant-owned locations so one org cannot point activation at another org's secret.
controlplane/configstore/tenant_refs.go:25
↓ 6 callersMethodWorker
Worker returns a worker by ID.
controlplane/worker_mgr.go:630
↓ 6 callersMethod_respond
(self, code, body="")
scripts/client-compat/results_gatherer.py:178
↓ 6 callersMethodacquire
acquire blocks until this caller owns the gate (FIFO) or ctx is done. On a nil return the caller owns the gate and MUST call release().
controlplane/org_acquire_gate.go:33
↓ 6 callersMethodaddQuery
(handleID string, q *flightQueryHandle)
server/flightsqlingress/ingress.go:1386
↓ 6 callersMethodarmIdleReadDeadline
armIdleReadDeadline re-arms the connection's read deadline to the configured idle timeout ahead of a client read. Loops that read MANY client messages
server/conn.go:1112
↓ 6 callersFunctionassertJSONConcatShape
(t *testing.T, sql string)
transpiler/transform/operators_jsonb_concat_test.go:34
↓ 6 callersFunctionassertLifecyclePair
assertLifecyclePair asserts that the captured slog output contains both a "Query started." line and a "Query finished." line — the invariant PR #519 e
server/conn_querylog_lifecycle_test.go:100
↓ 6 callersFunctionbeginCursorTx
(t *testing.T, db *sql.DB)
tests/integration/cursor_test.go:95
↓ 6 callersFunctionboolPtr
(b bool)
controlplane/k8s_pool.go:314
↓ 6 callersFunctionbuildConfigSecret
buildConfigSecret builds a CREATE SECRET statement with explicit credentials
server/server.go:2105
↓ 6 callersFunctioncaptureSlog
captureSlog redirects slog.Default to a buffer, returns the buffer and a restore function. Each test in this file uses it to assert the presence of "Q
server/conn_querylog_lifecycle_test.go:87
↓ 6 callersFunctioncheckSocketDirWritable
checkSocketDirWritable verifies that the socket directory is writable by creating and removing both a temporary file and a Unix socket. This catches c
controlplane/handover.go:13
↓ 6 callersMethodcheckUserSecretDDL
checkUserSecretDDL rejects persistent-secret DDL when the deployment manages user secrets via the PG protocol (see Config. RejectPersistentSecretDDL).
server/flightsqlingress/ingress.go:332
↓ 6 callersMethodcleanupOrphanedWorkerSecrets
cleanupOrphanedWorkerSecrets deletes worker RPC secrets whose pod no longer exists. Closes the recovery gap where a CP crashes between secret creation
controlplane/k8s_pool_reconcile.go:262
↓ 6 callersFunctionconfigstoreMetricHistogramCount
(t *testing.T, metricName string)
tests/configstore/org_connection_limiter_test.go:1372
↓ 6 callersFunctioncontainsTemplate
(value any)
tests/scenario/runner_test.go:618
↓ 6 callersFunctioncpPod
(name, ip string, phase corev1.PodPhase)
controlplane/live_aggregator_test.go:30
↓ 6 callersFunctioncrash_write
internal/crashhandler/handler.c:28
↓ 6 callersFunctiondecodeNumeric
decodeNumeric decodes PostgreSQL binary numeric format into a string.
server/types.go:986
↓ 6 callersFunctiondispatchSupports
(stepType string)
tests/scenario/runner_test.go:431
↓ 6 callersMethoddoHealthCheck
(body []byte, stream flight.FlightService_DoActionServer)
duckdbservice/flight_handler.go:313
↓ 6 callersFunctionencodeBinary
encodeBinary encodes a value in PostgreSQL binary format Returns the encoded bytes, or nil if the value should be sent as NULL
server/types.go:257
↓ 6 callersFunctionencodeNumeric
encodeNumeric encodes a value in PostgreSQL binary numeric format. PostgreSQL binary numeric layout: int16 ndigits - number of base-10000 digit gr
server/types.go:682
↓ 6 callersFunctionencodeUUID
encodeUUID encodes a UUID value as 16 raw bytes (PostgreSQL binary UUID format). DuckDB Go driver returns UUID as []byte (16 bytes).
server/types.go:529
↓ 6 callersMethodensureWorkerRPCSecret
(ctx context.Context, podName string)
controlplane/worker_rpc_security.go:110
↓ 6 callersMethodenv
(String key, String fallback)
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:85
↓ 6 callersFunctionenvValue
(env []string, key string)
tests/scenario/dbt/runner_test.go:232
↓ 6 callersMethodescapeJson
(String value)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:427
↓ 6 callersMethodexecTimeout
execTimeout runs query with an explicit deadline (use attachStatementTimeout for ATTACH statements).
server/attach_timeout.go:96
↓ 6 callersMethodflushBatch
(batch []QueryLogEntry)
server/querylog.go:303
↓ 6 callersFunctionfmtMetricValue
(v: number | null | undefined, unit?: string)
controlplane/admin/ui/src/lib/format.ts:71
↓ 6 callersFunctiongetClient
()
scripts/client-compat/clients/node-postgres/test_node_postgres.js:74
↓ 6 callersFunctiongetTestDir
()
tests/integration/harness.go:755
↓ 6 callersMethodhasTxn
(txnKey string)
server/flightsqlingress/ingress.go:1304
↓ 6 callersFunctionhotIdleSnap
(id int, org string)
controlplane/per_cp_hot_idle_reaper_test.go:31
↓ 6 callersFunctionidleInTransaction
(state: string | undefined)
controlplane/admin/ui/src/lib/session.ts:17
↓ 6 callersFunctionintEnv
(t *testing.T, key string, fallback int)
tests/scenario/runner_test.go:455
↓ 6 callersMethodisClosed
()
controlplane/session_lifecycle.go:91
↓ 6 callersFunctionisEmptyFlightQuery
isEmptyFlightQuery checks if a query is empty or contains only semicolons, whitespace, and/or comments. DuckDB rejects empty queries with SQLSTATE 420
duckdbservice/flight_handler.go:1005
↓ 6 callersFunctionisQueryLogKafkaWriterStopError
(err error)
server/querylog_kafka_writer.go:453
↓ 6 callersFunctionisTerminalSessionIdleWaitError
(err error)
server/flightclient/flight_executor.go:337
↓ 6 callersFunctionliveTestRouter
(live LiveInfo, fetcher PeerFetcher)
controlplane/admin/live_test.go:14
↓ 6 callersFunctionmkOIDC
mkOIDC builds a fake ALB x-amzn-oidc-data JWT (header.payload.sig) with the given claims. Only the payload segment is read by the decoder.
controlplane/admin/authz_test.go:17
↓ 6 callersFunctionmustAttr
(t *testing.T, s sdktrace.ReadOnlySpan, key string)
cmd/cache-proxy/tracing_test.go:57
↓ 6 callersFunctionnewCloseWaitExecutor
(t *testing.T, srv *closeWaitFlightServer)
server/flightclient/flight_executor_test.go:173
↓ 6 callersFunctionnewCloseWaitFlightServer
()
server/flightclient/flight_executor_test.go:72
↓ 6 callersFunctionnewLeaderOnlyLoop
(run func(context.Context))
controlplane/leader_loop.go:15
↓ 6 callersFunctionnewRecentErrorRing
(capacity int)
server/recent_errors.go:42
↓ 6 callersFunctionnewRunSHFakes
(t *testing.T)
tests/e2e-mw-dev/run_sh_test.go:126
↓ 6 callersFunctionnewSizingTestCP
newSizingTestCP builds a ControlPlane whose K8s config enables client worker sizing with a prod-shaped clamp policy and explicit defaults.
controlplane/worker_profile_test.go:15
↓ 6 callersFunctionobserveQueryOutcome
(org string, outcome queryOutcome)
server/query_metrics.go:86
↓ 6 callersFunctionobserveStrandedPodReconciled
observeStrandedPodReconciled records one outcome of the janitor's stranded-pod sweep. Empty outcomes are dropped — the caller has no useful classifica
controlplane/worker_lifecycle_metrics.go:286
↓ 6 callersMethodok
(self, name, detail="")
scripts/client-compat/clients/dbt/test_dbt.py:40
↓ 6 callersFunctionparseSecretDDLHead
parseSecretDDLHead parses the statement head (through the optional secret name) and returns the classification plus the byte offset just past the head
server/usersecrets/classify.go:115
↓ 6 callersFunctionpgwireDSNForHarness
(dsn, password string)
tests/perf/harness_dsn.go:9
↓ 6 callersFunctionpoolVisible
(p: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:161
↓ 6 callersMethodqueryContext
queryContext returns a cancellable context for query execution. The cancel function is registered with the server so it can be invoked via a cancel re
server/conn.go:310
↓ 6 callersFunctionqueryLogKafkaWriterEventMetricValue
(t *testing.T, outcome, reason string)
server/querylog_kafka_writer_test.go:27
↓ 6 callersMethodreapIdleWorkers
()
controlplane/worker_mgr.go:821
↓ 6 callersFunctionrecoverAbortedTransaction
recoverAbortedTransaction rolls back and retries once when a DuckLake-backed connection is stuck in "Current transaction is aborted" state. This is on
duckdbservice/transient.go:148
↓ 6 callersFunctionregisterAPIWithStore
(r *gin.RouterGroup, store apiStore, info OrgStackInfo, fetcher PeerFetcher)
controlplane/admin/api.go:93
↓ 6 callersFunctionregisterLiveAPI
registerLiveAPI wires the live-state read endpoints + the session-kill and per-user kill-switch actions. fetcher (may be nil) aggregates / fans out pe
controlplane/admin/live.go:166
↓ 6 callersMethodrelease
release hands the gate to the next live waiter (FIFO), or marks it free.
controlplane/org_acquire_gate.go:64
↓ 6 callersFunctionrequireColumnDefault
(t *testing.T, db *sql.DB, tableName, columnName, wantDefault string)
tests/configstore/migrations_postgres_test.go:549
↓ 6 callersFunctionrequireTableAbsent
(t *testing.T, db *sql.DB, tableName string)
tests/configstore/migrations_postgres_test.go:450
↓ 6 callersMethodretireWorkerPod
retireWorkerPod closes the gRPC client and deletes the worker pod. Acquires the retire semaphore to limit concurrent K8s API calls.
controlplane/k8s_pool_lifecycle.go:750
↓ 6 callersFunctionretryOnConflict
retryOnConflict retries fn on DuckLake transaction conflicts with exponential backoff and jitter (50-100% of backoff interval). Only used for autocomm
duckdbservice/transient.go:198
↓ 6 callersMethodreturnPrebound
(ps *preboundSocket)
controlplane/worker_mgr.go:276
↓ 6 callersMethodrewriteDirectQuery
rewriteDirectQuery expands a bare `USE ducklake` to its reliable two-part `catalog.schema` target. This is NOT logical-name masking — the catalog name
server/conn_query_exec.go:106
↓ 6 callersMethodrewriteRangeVars
rewriteRangeVars walks the AST and rewrites unqualified table references that match CTE names to use temp table names instead
transpiler/transform/writablecte.go:725
↓ 6 callersMethodrollbackTx
(tx *sql.Tx)
duckdbservice/service.go:461
↓ 6 callersFunctionrunSHCommand
(t *testing.T, binDir, subcommand string, extraEnv ...string)
tests/e2e-mw-dev/run_sh_test.go:243
↓ 6 callersFunctionrunTransformCases
(t *testing.T, cases []transformCase)
server/pg_compat_transforms_test.go:21
↓ 6 callersFunctionrun_query
(cur, rc, name, sql, params=None)
scripts/client-compat/clients/harlequin/test_harlequin.py:37
↓ 6 callersFunctionsendActionResult
(stream flight.FlightService_DoActionServer, result *flight.Result)
duckdbservice/flight_handler.go:63
↓ 6 callersMethodset_suite
(self, suite: str)
scripts/client-compat/clients/sqlalchemy/test_sqlalchemy.py:54
↓ 6 callersFunctionshouldRetryDuckLakeConflict
(err error, inTransaction bool)
duckdbservice/transient.go:184
↓ 6 callersFunctionsizeField
sizeField normalizes a client-supplied size and, when min/max are set, bounds it into [min,max], returning a human-readable warning if it was capped.
controlplane/worker_profile.go:193
← previousnext →501–600 of 5,901, ranked by callers