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
↓ 599 callers
Method
Error
()
controlplane/admin/authz.go:239
↓ 553 callers
Method
Run
(context.Context, CommandRequest)
tests/scenario/dbt/steps.go:22
↓ 512 callers
Method
Add
Add registers a new child process
server/parent.go:41
↓ 459 callers
Method
Exec
(query string, args ...any)
server/server.go:1442
↓ 459 callers
Method
Now
()
controlplane/sts_broker_test.go:21
↓ 456 callers
Method
Close
()
server/sqlcore/interfaces.go:29
↓ 387 callers
Method
String
()
server/auth/ratelimit_test.go:16
↓ 341 callers
Method
Scan
(dest ...any)
server/sqlcore/interfaces.go:28
↓ 280 callers
Method
Close
(summary RunSummary, serverMetrics string)
tests/perf/core/runner.go:20
↓ 218 callers
Function
mustExec
mustExec executes a statement and fails the test on error
tests/integration/setup_test.go:393
↓ 175 callers
Method
Release
(context.Context)
controlplane/connection_limiter.go:18
↓ 162 callers
Method
Write
(b []byte)
server/conn_passthrough_test.go:51
↓ 141 callers
Method
sendError
(severity, code, message string)
server/conn_results.go:535
↓ 128 callers
Method
Transpile
Transpile converts a PostgreSQL SQL statement to DuckDB-compatible SQL. It classifies the query first to skip unnecessary work: - Tier 0: No PG-specif
transpiler/transpiler.go:169
↓ 116 callers
Method
Err
()
server/sqlcore/interfaces.go:30
↓ 106 callers
Function
New
New creates a Transpiler with the given configuration. It registers all transforms appropriate for the config.
transpiler/transpiler.go:74
↓ 106 callers
Method
logger
logQueryStarted records a query handing off to a worker. Pairs with logQueryFinished at every termination point so logs and traces can be cross-refere
server/conn.go:438
↓ 100 callers
Method
Query
(query string, args ...any)
server/sqlcore/interfaces.go:50
↓ 95 callers
Function
newTestK8sPool
(t *testing.T, maxWorkers int)
controlplane/k8s_pool_test.go:595
↓ 94 callers
Method
flushWriter
()
server/conn_results.go:527
↓ 92 callers
Method
Error
()
tests/scenario/provision/errors.go:58
↓ 92 callers
Method
Next
()
server/sqlcore/interfaces.go:27
↓ 87 callers
Method
Create
Create creates a Duckling CR named exactly `name`. The name comes from the warehouse row's duckling_name (authoritative; the control plane never deriv
controlplane/provisioner/k8s_client.go:130
↓ 84 callers
Method
writeReadyForQuery
(txStatus byte)
server/conn_results.go:519
↓ 82 callers
Function
newIsolatedConfigStore
(t *testing.T)
tests/configstore/helpers_test.go:21
↓ 80 callers
Method
Open
Open returns a reader for the cached data and counts a cache hit. Caller must close the reader.
cmd/cache-proxy/cache.go:286
↓ 79 callers
Function
DefaultConfig
DefaultConfig returns a Config with sensible defaults for simple queries.
transpiler/config.go:33
↓ 75 callers
Method
Open
Open decrypts a stored secret statement from the (org, user, name) row.
server/usersecrets/crypto.go:76
↓ 74 callers
Method
String
()
tests/controlplane/controlplane_test.go:90
↓ 72 callers
Method
SharedState
SharedState returns the additive shared worker lifecycle metadata for this worker. The zero value normalizes to an idle, unassigned worker.
controlplane/worker_mgr.go:69
↓ 72 callers
Method
get
(partition int)
server/querylog_kafka_writer.go:565
↓ 71 callers
Method
report
(String suite, String testName, String status, String detail)
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:37
↓ 69 callers
Function
runQueryTests
runQueryTests runs multiple query tests
tests/integration/setup_test.go:365
↓ 69 callers
Method
setTxError
setTxError marks the transaction as failed if we're in a transaction. This should be called when a query fails within a transaction.
server/conn.go:2157
↓ 63 callers
Method
logQuery
logQuery builds a QueryLogEntry from the connection context and sends it to the logger.
server/querylog.go:603
↓ 63 callers
Function
newFakeAPIStore
()
controlplane/admin/api_test.go:27
↓ 63 callers
Function
newTestAPIRouter
(store apiStore)
controlplane/admin/api_test.go:215
↓ 63 callers
Method
report
(suite, name, status, detail string)
scripts/client-compat/clients/pgx/main.go:36
↓ 62 callers
Method
Do
(key string, fn func() (fetchResult, error))
cmd/cache-proxy/proxy.go:87
↓ 62 callers
Function
ResolveEffective
ResolveEffective layers CLI inputs on top of env vars on top of YAML on top of built-in defaults to produce the runtime config every duckgres binary b
configresolve/resolve.go:177
↓ 62 callers
Method
Run
(context.Context)
controlplane/janitor_leader_k8s.go:24
↓ 59 callers
Function
extractArrowValue
extractArrowValue extracts a Go value from an Arrow array at the given row index.
server/flightclient/flight_executor.go:726
↓ 59 callers
Method
runtimeTable
(base string)
controlplane/configstore/store.go:822
↓ 54 callers
Method
writeCommandComplete
(tag string)
server/conn_results.go:508
↓ 53 callers
Method
UpsertWorkerRecord
(record *configstore.WorkerRecord)
controlplane/worker_pool.go:130
↓ 52 callers
Method
Get
Get fetches the named Duckling CR and parses its status.
controlplane/provisioner/k8s_client.go:304
↓ 49 callers
Method
NormalizedLifecycle
NormalizedLifecycle treats the zero value as an idle, unassigned worker so existing worker structs can adopt this model without extra initialization.
controlplane/worker_state.go:87
↓ 49 callers
Method
Rollback
()
tests/perf/publisher/publisher.go:73
↓ 48 callers
Method
TableName
()
controlplane/configstore/models.go:41
↓ 47 callers
Method
Error
()
cmd/cache-proxy/proxy.go:630
↓ 47 callers
Method
Flush
Flush drains the in-process counter into the durable buffer once. Best-effort: on error it logs and returns; the unflushed counts stay in the counter
controlplane/compute_meter.go:185
↓ 47 callers
Function
envFromMap
(values map[string]string)
main_test.go:11
↓ 46 callers
Method
Header
()
controlplane/session_mgr_drain_test.go:500
↓ 46 callers
Method
OwnerEpoch
()
controlplane/worker_mgr.go:83
↓ 45 callers
Function
AppendValue
AppendValue appends a value to an Arrow array builder with type coercion. It first asks any registered Appender hooks (see RegisterAppender), then fal
duckdbservice/arrowmap/arrowmap.go:398
↓ 45 callers
Method
Equal
Equal reports whether two profiles match (nil == zero == default).
controlplane/worker_state.go:51
↓ 45 callers
Function
openDuckgresConn
openDuckgresConn opens a fresh connection to the test Duckgres server. Each connection gets its own in-memory DuckDB instance.
tests/integration/cancel_test.go:15
↓ 44 callers
Method
SetSharedState
SetSharedState updates the additive shared worker lifecycle metadata without changing existing session scheduling behavior.
controlplane/worker_mgr.go:75
↓ 43 callers
Function
cn
(...inputs: ClassValue[])
controlplane/admin/ui/src/lib/utils.ts:4
↓ 42 callers
Method
ExecContext
(ctx context.Context, query string, args ...any)
server/server.go:2291
↓ 42 callers
Method
report
(&self, suite: &str, name: &str, status: &str, detail: &str)
scripts/client-compat/clients/tokio-postgres/src/main.rs:46
↓ 40 callers
Function
deparseAfter
(t *testing.T, tr Transform, sql string)
transpiler/transform/literals_test.go:10
↓ 40 callers
Function
isTransactionConflict
isTransactionConflict checks if an error is a DuckLake transaction conflict.
tests/integration/ducklake_concurrency_test.go:2069
↓ 39 callers
Method
DB
DB returns the underlying *sql.DB (for credential refresh and other direct access).
server/executor.go:34
↓ 38 callers
Function
NewSessionManager
NewSessionManager creates a new session manager.
controlplane/session_mgr.go:124
↓ 38 callers
Method
logw
logw returns a logger pre-scoped with the worker's identity attrs (see workerLogAttrs), resolved by id. For workers no longer tracked locally it still
controlplane/k8s_pool_helpers.go:210
↓ 37 callers
Function
newTestProxy
newTestProxy wires a CacheProxy with no peers and a tempdir-backed store.
cmd/cache-proxy/proxy_test.go:89
↓ 36 callers
Method
Delete
Delete removes the named Duckling CR.
controlplane/provisioner/k8s_client.go:313
↓ 36 callers
Method
close
()
controlplane/session_lifecycle.go:68
↓ 36 callers
Function
serverCounterVecValue
(t *testing.T, cv *prometheus.CounterVec, labels ...string)
server/query_metrics_test.go:15
↓ 36 callers
Function
upsertActiveCP
(t *testing.T, store *cpconfigstore.ConfigStore, id string)
tests/configstore/org_connection_limiter_test.go:18
↓ 36 callers
Function
wantFlags
Regression tests for Classify wiring gaps: queries whose only PG-ism used a spelling the classifier's substring tokens missed (CAST vs ::, newline/tab
transpiler/classify_wiring_test.go:13
↓ 35 callers
Method
RowsAffected
()
server/sqlcore/interfaces.go:35
↓ 34 callers
Method
GetWorkerRecord
(workerID int)
controlplane/worker_pool.go:134
↓ 34 callers
Method
Image
Image returns the worker image the lease was minted against. Surfaced so lifecycle-transition metrics can label the operation by image without an extr
controlplane/configstore/lifecycle_types.go:125
↓ 34 callers
Function
newFakeStore
()
controlplane/provisioning/api_test.go:25
↓ 34 callers
Function
observeLifecycleTransition
--- Observation helpers --- observeLifecycleTransition records one transition attempt on duckgres_worker_lifecycle_transitions_total. Inputs are norma
controlplane/worker_lifecycle_metrics.go:249
↓ 33 callers
Method
EnqueueOrgConnectionRequest
(entry *configstore.OrgConnectionQueueEntry)
controlplane/connection_limiter.go:33
↓ 33 callers
Function
NewWorkerLifecycle
NewWorkerLifecycle wires the service. cleanup may be nil if the caller only needs durable CAS transitions and no physical cleanup (e.g. tests that ass
controlplane/worker_lifecycle.go:76
↓ 33 callers
Method
SetOwnerCPInstanceID
(cpInstanceID string)
controlplane/worker_mgr.go:142
↓ 33 callers
Function
newTestRouter
(store Store)
controlplane/provisioning/api_test.go:177
↓ 32 callers
Method
Error
()
transpiler/transform/errors.go:11
↓ 32 callers
Function
NewFlightWorkerPool
NewFlightWorkerPool creates a new worker pool.
controlplane/worker_mgr.go:197
↓ 32 callers
Method
TryAcquireOrgConnectionLease
(requestID string, limits configstore.OrgResourceLimits, now time.Time)
controlplane/connection_limiter.go:34
↓ 32 callers
Function
recoverConnection
recoverConnection issues a ROLLBACK to reset a connection stuck in an aborted DuckLake metadata transaction state (cascading from a conflict).
tests/integration/ducklake_concurrency_test.go:2092
↓ 31 callers
Function
isAbortedTransaction
isAbortedTransaction checks if the error is a cascading failure from a prior DuckLake transaction conflict where the metadata PostgreSQL connection is
tests/integration/ducklake_concurrency_test.go:2083
↓ 30 callers
Method
Context
()
controlplane/session_mgr_drain_test.go:503
↓ 30 callers
Function
counterVecLabelValue
counterVecLabelValue returns the value of a CounterVec series labelled with the given values. Returns 0 if the series has never been touched (matching
controlplane/metrics_test_helpers_test.go:65
↓ 30 callers
Method
sessionFromContext
(ctx context.Context)
server/flightsqlingress/ingress.go:361
↓ 29 callers
Method
ExecContext
(ctx context.Context, query string, args ...any)
duckdbservice/user_secrets.go:17
↓ 29 callers
Method
QueryContext
(ctx context.Context, query string, args ...any)
server/sqlcore/interfaces.go:48
↓ 29 callers
Method
WorkerID
WorkerID returns the worker id this lease is for.
controlplane/configstore/lifecycle_types.go:111
↓ 29 callers
Function
classified
(class string, err error)
tests/scenario/provision/errors.go:44
↓ 29 callers
Function
newTestServer
newTestServer returns an httptest origin plus a proxy that rewrites inbound forward-proxy-style requests to target that origin. DuckDB sends absolute-
cmd/cache-proxy/proxy_test.go:101
↓ 28 callers
Method
Error
()
controlplane/admin/api.go:821
↓ 28 callers
Method
Get
Get returns the cached data for the given key, or nil if not found.
cmd/cache-proxy/cache.go:174
↓ 28 callers
Function
WriteMessage
writeMessage writes a message to the client
server/wire/protocol.go:187
↓ 28 callers
Method
connect
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:95
↓ 28 callers
Function
doForwardProxyRequest
doForwardProxyRequest sends a request through the proxy in forward-proxy form (absolute URI in the request line). httptest's serve path preserves the
cmd/cache-proxy/proxy_test.go:112
↓ 28 callers
Function
fmtInt
(n: number | null | undefined)
controlplane/admin/ui/src/lib/format.ts:32
next →
1–100 of 5,901, ranked by callers