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
↓ 6 callers
Method
ExecContext
(ctx context.Context, query string, args ...any)
server/sqlcore/interfaces.go:49
↓ 6 callers
Method
FetchPeers
(ctx context.Context, path string)
controlplane/admin/live_aggregate.go:25
↓ 6 callers
Method
GetByToken
(token string)
server/flightsqlingress/ingress.go:1635
↓ 6 callers
Method
GetFlightInfoStatement
Flight SQL method implementations
duckdbservice/flight_handler.go:498
↓ 6 callers
Method
GetSession
(sessionToken string)
server/flightsqlingress/ingress_test.go:146
↓ 6 callers
Function
HasAttachedCatalog
(ctx context.Context, executor sqlcore.QueryExecutor, catalog string)
server/sessionmeta/sessionmeta.go:70
↓ 6 callers
Function
InitMinimalServer
InitMinimalServer initializes a Server struct with minimal fields for use in control plane worker sessions.
server/exports.go:298
↓ 6 callers
Function
IsCopyFromStdinDescriptor
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 callers
Method
ListExpiredHotIdleWorkers
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 callers
Function
LoadScenario
(path string)
tests/scenario/core/catalog.go:49
↓ 6 callers
Function
New
(cfg Config)
server/server.go:389
↓ 6 callers
Function
NewExecutor
(cfg ExecutorConfig)
tests/scenario/provision/steps.go:38
↓ 6 callers
Function
NewLockingTransform
NewLockingTransform creates a new LockingTransform.
transpiler/transform/locking.go:12
↓ 6 callers
Function
NewQueryLogDuckLakeEntryWriterResolver
(configResolver QueryLogDuckLakeConfigResolver)
server/querylog_kafka_writer.go:817
↓ 6 callers
Method
ProcessOne
(ctx context.Context)
server/querylog_kafka_writer.go:210
↓ 6 callers
Method
RetireWorker
RetireWorker removes a worker from the pool and shuts it down.
controlplane/worker_pool.go:65
↓ 6 callers
Function
S3ProviderForConfig
S3ProviderForConfig returns the effective S3 provider for the given DuckLake config.
server/server.go:2260
↓ 6 callers
Function
SecretDirectory
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 callers
Method
SetProbe
SetProbe overrides the metadata-store probe. Used by tests.
controlplane/provisioner/controller.go:104
↓ 6 callers
Method
Stop
Stop shuts down the checkpoint scheduler, waits for any in-progress checkpoint to finish, and closes the database connection.
server/checkpoint.go:106
↓ 6 callers
Method
Trailer
()
controlplane/session_mgr_drain_test.go:501
↓ 6 callers
Function
ValidateTenantSecretRef
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 callers
Method
Worker
Worker returns a worker by ID.
controlplane/worker_mgr.go:630
↓ 6 callers
Method
_respond
(self, code, body="")
scripts/client-compat/results_gatherer.py:178
↓ 6 callers
Method
acquire
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 callers
Method
addQuery
(handleID string, q *flightQueryHandle)
server/flightsqlingress/ingress.go:1386
↓ 6 callers
Method
armIdleReadDeadline
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 callers
Function
assertJSONConcatShape
(t *testing.T, sql string)
transpiler/transform/operators_jsonb_concat_test.go:34
↓ 6 callers
Function
assertLifecyclePair
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 callers
Function
beginCursorTx
(t *testing.T, db *sql.DB)
tests/integration/cursor_test.go:95
↓ 6 callers
Function
boolPtr
(b bool)
controlplane/k8s_pool.go:314
↓ 6 callers
Function
buildConfigSecret
buildConfigSecret builds a CREATE SECRET statement with explicit credentials
server/server.go:2105
↓ 6 callers
Function
captureSlog
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 callers
Function
checkSocketDirWritable
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 callers
Method
checkUserSecretDDL
checkUserSecretDDL rejects persistent-secret DDL when the deployment manages user secrets via the PG protocol (see Config. RejectPersistentSecretDDL).
server/flightsqlingress/ingress.go:332
↓ 6 callers
Method
cleanupOrphanedWorkerSecrets
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 callers
Function
configstoreMetricHistogramCount
(t *testing.T, metricName string)
tests/configstore/org_connection_limiter_test.go:1372
↓ 6 callers
Function
containsTemplate
(value any)
tests/scenario/runner_test.go:618
↓ 6 callers
Function
cpPod
(name, ip string, phase corev1.PodPhase)
controlplane/live_aggregator_test.go:30
↓ 6 callers
Function
crash_write
internal/crashhandler/handler.c:28
↓ 6 callers
Function
decodeNumeric
decodeNumeric decodes PostgreSQL binary numeric format into a string.
server/types.go:986
↓ 6 callers
Function
dispatchSupports
(stepType string)
tests/scenario/runner_test.go:431
↓ 6 callers
Method
doHealthCheck
(body []byte, stream flight.FlightService_DoActionServer)
duckdbservice/flight_handler.go:313
↓ 6 callers
Function
encodeBinary
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 callers
Function
encodeNumeric
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 callers
Function
encodeUUID
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 callers
Method
ensureWorkerRPCSecret
(ctx context.Context, podName string)
controlplane/worker_rpc_security.go:110
↓ 6 callers
Method
env
(String key, String fallback)
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:85
↓ 6 callers
Function
envValue
(env []string, key string)
tests/scenario/dbt/runner_test.go:232
↓ 6 callers
Method
escapeJson
(String value)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:427
↓ 6 callers
Method
execTimeout
execTimeout runs query with an explicit deadline (use attachStatementTimeout for ATTACH statements).
server/attach_timeout.go:96
↓ 6 callers
Method
flushBatch
(batch []QueryLogEntry)
server/querylog.go:303
↓ 6 callers
Function
fmtMetricValue
(v: number | null | undefined, unit?: string)
controlplane/admin/ui/src/lib/format.ts:71
↓ 6 callers
Function
getClient
()
scripts/client-compat/clients/node-postgres/test_node_postgres.js:74
↓ 6 callers
Function
getTestDir
()
tests/integration/harness.go:755
↓ 6 callers
Method
hasTxn
(txnKey string)
server/flightsqlingress/ingress.go:1304
↓ 6 callers
Function
hotIdleSnap
(id int, org string)
controlplane/per_cp_hot_idle_reaper_test.go:31
↓ 6 callers
Function
idleInTransaction
(state: string | undefined)
controlplane/admin/ui/src/lib/session.ts:17
↓ 6 callers
Function
intEnv
(t *testing.T, key string, fallback int)
tests/scenario/runner_test.go:455
↓ 6 callers
Method
isClosed
()
controlplane/session_lifecycle.go:91
↓ 6 callers
Function
isEmptyFlightQuery
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 callers
Function
isQueryLogKafkaWriterStopError
(err error)
server/querylog_kafka_writer.go:453
↓ 6 callers
Function
isTerminalSessionIdleWaitError
(err error)
server/flightclient/flight_executor.go:337
↓ 6 callers
Function
liveTestRouter
(live LiveInfo, fetcher PeerFetcher)
controlplane/admin/live_test.go:14
↓ 6 callers
Function
mkOIDC
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 callers
Function
mustAttr
(t *testing.T, s sdktrace.ReadOnlySpan, key string)
cmd/cache-proxy/tracing_test.go:57
↓ 6 callers
Function
newCloseWaitExecutor
(t *testing.T, srv *closeWaitFlightServer)
server/flightclient/flight_executor_test.go:173
↓ 6 callers
Function
newCloseWaitFlightServer
()
server/flightclient/flight_executor_test.go:72
↓ 6 callers
Function
newLeaderOnlyLoop
(run func(context.Context))
controlplane/leader_loop.go:15
↓ 6 callers
Function
newRecentErrorRing
(capacity int)
server/recent_errors.go:42
↓ 6 callers
Function
newRunSHFakes
(t *testing.T)
tests/e2e-mw-dev/run_sh_test.go:126
↓ 6 callers
Function
newSizingTestCP
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 callers
Function
observeQueryOutcome
(org string, outcome queryOutcome)
server/query_metrics.go:86
↓ 6 callers
Function
observeStrandedPodReconciled
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 callers
Method
ok
(self, name, detail="")
scripts/client-compat/clients/dbt/test_dbt.py:40
↓ 6 callers
Function
parseSecretDDLHead
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 callers
Function
pgwireDSNForHarness
(dsn, password string)
tests/perf/harness_dsn.go:9
↓ 6 callers
Function
poolVisible
(p: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:161
↓ 6 callers
Method
queryContext
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 callers
Function
queryLogKafkaWriterEventMetricValue
(t *testing.T, outcome, reason string)
server/querylog_kafka_writer_test.go:27
↓ 6 callers
Method
reapIdleWorkers
()
controlplane/worker_mgr.go:821
↓ 6 callers
Function
recoverAbortedTransaction
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 callers
Function
registerAPIWithStore
(r *gin.RouterGroup, store apiStore, info OrgStackInfo, fetcher PeerFetcher)
controlplane/admin/api.go:93
↓ 6 callers
Function
registerLiveAPI
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 callers
Method
release
release hands the gate to the next live waiter (FIFO), or marks it free.
controlplane/org_acquire_gate.go:64
↓ 6 callers
Function
requireColumnDefault
(t *testing.T, db *sql.DB, tableName, columnName, wantDefault string)
tests/configstore/migrations_postgres_test.go:549
↓ 6 callers
Function
requireTableAbsent
(t *testing.T, db *sql.DB, tableName string)
tests/configstore/migrations_postgres_test.go:450
↓ 6 callers
Method
retireWorkerPod
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 callers
Function
retryOnConflict
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 callers
Method
returnPrebound
(ps *preboundSocket)
controlplane/worker_mgr.go:276
↓ 6 callers
Method
rewriteDirectQuery
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 callers
Method
rewriteRangeVars
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 callers
Method
rollbackTx
(tx *sql.Tx)
duckdbservice/service.go:461
↓ 6 callers
Function
runSHCommand
(t *testing.T, binDir, subcommand string, extraEnv ...string)
tests/e2e-mw-dev/run_sh_test.go:243
↓ 6 callers
Function
runTransformCases
(t *testing.T, cases []transformCase)
server/pg_compat_transforms_test.go:21
↓ 6 callers
Function
run_query
(cur, rc, name, sql, params=None)
scripts/client-compat/clients/harlequin/test_harlequin.py:37
↓ 6 callers
Function
sendActionResult
(stream flight.FlightService_DoActionServer, result *flight.Result)
duckdbservice/flight_handler.go:63
↓ 6 callers
Method
set_suite
(self, suite: str)
scripts/client-compat/clients/sqlalchemy/test_sqlalchemy.py:54
↓ 6 callers
Function
shouldRetryDuckLakeConflict
(err error, inTransaction bool)
duckdbservice/transient.go:184
↓ 6 callers
Function
sizeField
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
← previous
next →
501–600 of 5,901, ranked by callers