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
↓ 1 callers
Method
deleteUser
(c *gin.Context)
controlplane/admin/api.go:1145
↓ 1 callers
Method
deparseExpression
deparseExpression deparses an expression node by wrapping it in a SELECT statement and then extracting just the expression part.
transpiler/transform/writablecte.go:679
↓ 1 callers
Method
deparseFinalStatement
deparseFinalStatement deparses the final statement without the WITH clause, rewriting CTE references to temp table names
transpiler/transform/writablecte.go:885
↓ 1 callers
Method
deprovisionWarehouse
(c *gin.Context)
controlplane/provisioning/api.go:374
↓ 1 callers
Function
describePortalFrame
(portalName string)
server/conn_skip_until_sync_test.go:103
↓ 1 callers
Method
doDestroySession
(body []byte, stream flight.FlightService_DoActionServer)
duckdbservice/flight_handler.go:293
↓ 1 callers
Method
doOne
(ctx context.Context, method, ip, path string)
controlplane/live_aggregator.go:161
↓ 1 callers
Method
doRebalance
doRebalance performs the actual rebalance: computes limits, sends SET commands. The mutex is held only for snapshotting sessions (not during network I
controlplane/memory_rebalancer.go:145
↓ 1 callers
Function
dollarQuoteTag
dollarQuoteTag reports whether sql[start] == '$' begins a dollar-quote opening delimiter ($$ or $tag$) and, if so, returns the tag (possibly empty). A
transpiler/longident.go:309
↓ 1 callers
Method
done
(&self)
scripts/client-compat/clients/tokio-postgres/src/main.rs:74
↓ 1 callers
Method
done
()
scripts/client-compat/clients/pgx/main.go:68
↓ 1 callers
Method
done
()
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:405
↓ 1 callers
Method
done
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:65
↓ 1 callers
Method
drainAfterUpgrade
drainAfterUpgrade is called after a successful tableflip upgrade. It stops accepting new connections, waits for in-flight connections to finish, shuts
controlplane/control.go:1944
↓ 1 callers
Method
drainAndShutdown
(timeout time.Duration)
controlplane/control.go:1670
↓ 1 callers
Function
drainToEOF
drainToEOF reads from the stream until io.EOF or another non-nil error. Per the gRPC contract, the trailer is only reachable after Recv returns a non-
server/flightclient/exec_update_trailer.go:85
↓ 1 callers
Function
drainingEligibleState
(state configstore.WorkerState)
controlplane/k8s_pool_test.go:471
↓ 1 callers
Method
driversForCatalog
(catalog perfcore.Catalog, spec stepSpec)
tests/scenario/perf/steps.go:252
↓ 1 callers
Method
dropRemainingIfStopExpired
(batchLen int)
server/querylog_kafka.go:283
↓ 1 callers
Function
dropsUserArgFromPrivilegeCheck
(funcName string, argCount int)
transpiler/transform/pgcatalog.go:679
↓ 1 callers
Function
duckLakeDisableMetadataThreadLocalCacheEnabled
(dlCfg DuckLakeConfig)
server/server.go:1423
↓ 1 callers
Function
ducklingBroken
(state: string | undefined)
controlplane/admin/ui/src/lib/format.ts:163
↓ 1 callers
Method
duePartitions
(now time.Time, flushInterval time.Duration)
server/querylog_kafka_writer.go:587
↓ 1 callers
Function
durationFromWith
(step core.Step, key string)
tests/scenario/sql/steps.go:417
↓ 1 callers
Method
eatIdentifier
eatIdentifier consumes a bare or double-quoted identifier.
server/usersecrets/classify.go:359
↓ 1 callers
Method
effectiveBatchSize
()
server/querylog_kafka_writer.go:466
↓ 1 callers
Method
effectiveSocketDir
effectiveSocketDir returns a writable directory for dynamic worker sockets. It tries the primary socketDir first, falling back to /tmp/duckgres if the
controlplane/worker_mgr.go:324
↓ 1 callers
Function
emailFromOIDC
emailFromOIDC extracts the caller's email from the ALB OIDC data JWT (falling back to the `sub` claim, then to the identity-only header). It returns "
controlplane/admin/authz.go:114
↓ 1 callers
Function
encodeArray
encodeArray encodes a []any slice in PostgreSQL binary ARRAY format. PostgreSQL binary array format: int32 ndim - number of dimensions (1 for
server/types.go:813
↓ 1 callers
Method
endTransaction
(ctx context.Context, txnKey string, action flightsql.EndTransactionRequestType)
server/flightsqlingress/ingress.go:1345
↓ 1 callers
Function
ensureDuckLakeInfra
(t *testing.T)
tests/controlplane/ducklake_bool_merge_test.go:19
↓ 1 callers
Function
ensureDuckLakeMetadataIndexes
ensureDuckLakeMetadataIndexes connects directly to the DuckLake PostgreSQL metadata store and creates indexes that dramatically improve query planning
server/server.go:1878
↓ 1 callers
Function
ensureIntegrationPostgres
(t *testing.T)
tests/configstore/helpers_test.go:71
↓ 1 callers
Function
ensureMemoryMainInSearchPath
(searchPath string)
controlplane/session_search_path.go:68
↓ 1 callers
Function
ensureRuntimeSchema
(db *gorm.DB, runtimeSchema string)
controlplane/configstore/store.go:710
↓ 1 callers
Function
ensureWorkerIDSequence
ensureWorkerIDSequence creates the global worker-id sequence that CreateSpawningWorkerSlot allocates from. It replaces the old SELECT MAX(worker_id)+1
controlplane/configstore/store.go:784
↓ 1 callers
Function
envBlock
(t *testing.T, content, name string)
tests/manifests/manifests_test.go:272
↓ 1 callers
Function
envBoolOrDefault
(key string, fallback bool)
tests/perf/harness_test.go:212
↓ 1 callers
Function
envOrDefault
(key, fallback string)
tests/scenario/runner_test.go:481
↓ 1 callers
Function
envString
(env map[string]any, key string)
tests/integration/composefile/compose_test.go:82
↓ 1 callers
Function
equalStringSlices
(left, right []string)
tests/perf/publisher/publisher.go:349
↓ 1 callers
Function
errMultiTenantRequiresKubernetes
errMultiTenantRequiresKubernetes is returned via a helper (not an inline literal) so the always-error stub does not make callers' `if err != nil` stat
controlplane/multitenant_stub.go:26
↓ 1 callers
Method
errorString
(retryAfter time.Duration)
controlplane/capacity_policy.go:40
↓ 1 callers
Function
errorsAs
(err error, target any)
tests/scenario/provision/client.go:266
↓ 1 callers
Function
errorsIs
(err, target error)
tests/scenario/provision/steps.go:296
↓ 1 callers
Function
escapeSQLStringLiteral
(s string)
server/querylog.go:534
↓ 1 callers
Method
evictLeastRecentlyUsedWritersLocked
()
server/querylog_kafka_writer.go:946
↓ 1 callers
Method
executeAcquire
executeAcquire completes the reservation (pod spawn or hot-idle adoption) and activates the worker for the org. On success the returned worker is Hot
controlplane/org_reserved_pool.go:244
↓ 1 callers
Method
executeDeprovision
(ctx context.Context, step core.Step)
tests/scenario/provision/steps.go:133
↓ 1 callers
Method
executeMultiStatement
executeMultiStatement handles execution of multi-statement query rewrites. This is used for writable CTE transformations where a single PostgreSQL que
server/conn_query_exec.go:773
↓ 1 callers
Method
executeMultiStatementExtended
executeMultiStatementExtended handles execution of multi-statement query rewrites for the extended query protocol (Parse/Bind/Execute). Unlike execute
server/conn_query_exec.go:907
↓ 1 callers
Method
executeProvision
(ctx context.Context, step core.Step)
tests/scenario/provision/steps.go:99
↓ 1 callers
Function
executeShellQuery
executeShellQuery runs a single SQL statement and prints results to stdout.
server/shell.go:136
↓ 1 callers
Method
executeWaitReady
(ctx context.Context, step core.Step)
tests/scenario/provision/steps.go:116
↓ 1 callers
Method
existingOrgConnectionLease
(tx *gorm.DB, leaseTable, requestID string)
controlplane/configstore/org_connections.go:222
↓ 1 callers
Function
expectedErrorMismatch
(expected *ExpectedError, actualClass, actualMessage string)
tests/scenario/core/runner.go:194
↓ 1 callers
Function
explainExecutes
explainExecutes reports whether an EXPLAIN statement actually runs its inner query (EXPLAIN ANALYZE, or EXPLAIN (ANALYZE[, ...])) — and can therefore
controlplane/admin/impersonate.go:147
↓ 1 callers
Function
extractErrorResponseField
extractErrorResponseField scans wire-protocol frames for an ErrorResponse ('E') message and returns the requested field value (e.g., 'C' for SQLSTATE,
server/conn_test.go:1668
↓ 1 callers
Method
failWaitersLocked
(err error)
controlplane/session_mgr.go:307
↓ 1 callers
Function
fetchAWSSDKCredentials
fetchAWSSDKCredentials uses the Go AWS SDK's default credential chain to retrieve temporary credentials. This supports all credential sources that the
server/server.go:2196
↓ 1 callers
Method
fetchDedup
fetchDedup tries peers then origin, deduplicating concurrent fetches. On success the body has been committed to local disk under cacheKey; the caller
cmd/cache-proxy/proxy.go:358
↓ 1 callers
Method
fetchMessageBeforeNextFlush
(ctx context.Context, batches *queryLogKafkaPartitionBatches)
server/querylog_kafka_writer.go:230
↓ 1 callers
Method
fetchOrigin
fetchOrigin forwards the request verbatim (headers, Host, signature) to the real origin and streams a successful body straight to the on-disk cache, r
cmd/cache-proxy/proxy.go:395
↓ 1 callers
Method
fetchOriginOnce
(cacheKey string, r *http.Request)
cmd/cache-proxy/proxy.go:470
↓ 1 callers
Function
findAllUnquotedDots
findAllUnquotedDots returns indices of all dots outside double-quoted identifiers.
transpiler/show_create.go:194
↓ 1 callers
Function
findAvailablePort
Helper functions
tests/integration/harness.go:745
↓ 1 callers
Method
findCTEDependencies
findCTEDependencies extracts names of CTEs referenced in a query
transpiler/transform/writablecte.go:150
↓ 1 callers
Method
findIdleWorkerLocked
()
controlplane/k8s_pool_acquire.go:786
↓ 1 callers
Function
findProjectRoot
(t *testing.T)
controlplane/admin/api_postgres_test.go:65
↓ 1 callers
Function
findProjectRoot
()
tests/controlplane/controlplane_test.go:60
↓ 1 callers
Function
findProjectRoot
()
tests/perf/harness_test.go:423
↓ 1 callers
Function
firstSearchPathEntry
(searchPath string)
server/sqlcore/identifier.go:65
↓ 1 callers
Function
firstUnsuccessfulDependency
(step Step, statusByStep map[string]StepStatus)
tests/scenario/core/runner.go:233
↓ 1 callers
Function
fixupAST
fixupAST applies DuckDB compatibility fixups to the parsed AST before deparsing. These are simple, unconditional cleanups that prevent PostgreSQL-spec
transpiler/transpiler.go:925
↓ 1 callers
Method
flightAddr
()
controlplane/control.go:2165
↓ 1 callers
Method
flushAllPartitionsWithRetry
(ctx context.Context, batches *queryLogKafkaPartitionBatches)
server/querylog_kafka_writer.go:307
↓ 1 callers
Method
flushDuePartitionsWithRetry
(ctx context.Context, batches *queryLogKafkaPartitionBatches)
server/querylog_kafka_writer.go:298
↓ 1 callers
Method
flushLoop
()
server/querylog_kafka.go:181
↓ 1 callers
Method
flushPartition
(ctx context.Context, batches *queryLogKafkaPartitionBatches, partition int)
server/querylog_kafka_writer.go:332
↓ 1 callers
Function
fmtDuration
(seconds: number | null | undefined)
controlplane/admin/ui/src/lib/format.ts:128
↓ 1 callers
Function
fmtLeft
(ms: number)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:274
↓ 1 callers
Function
formatDifferences
formatDifferences formats a list of differences for display
tests/integration/setup_test.go:374
↓ 1 callers
Method
forward
forward proxies to Prometheus and streams the JSON response through verbatim.
controlplane/admin/metrics_proxy.go:128
↓ 1 callers
Function
freeLocalPort
freeLocalPort returns an unused localhost TCP port.
controlplane/admin/devserver/main.go:172
↓ 1 callers
Function
fullRead
(conn net.Conn, buf []byte)
controlplane/control.go:1634
↓ 1 callers
Function
generateBearerToken
()
controlplane/worker_rpc_security.go:56
↓ 1 callers
Method
generateReturningSelect
generateReturningSelect converts a writable CTE into a SELECT that captures what the RETURNING clause would produce. For Airbyte's pattern, the RETUR
transpiler/transform/writablecte.go:381
↓ 1 callers
Function
generateSessionToken
()
duckdbservice/service.go:1706
↓ 1 callers
Method
generateTempTableName
generateTempTableName creates a safe, unique temp table name
transpiler/transform/writablecte.go:933
↓ 1 callers
Function
generateToken
()
controlplane/worker_mgr.go:1408
↓ 1 callers
Function
generateWorkerRPCServerCertificate
()
controlplane/worker_rpc_security.go:64
↓ 1 callers
Method
getDefaultValue
getDefaultValue returns a sensible default value for an ignored parameter
transpiler/transform/setshow.go:441
↓ 1 callers
Method
getFuncAlias
(fc *pg_query.FuncCall)
transpiler/transform/funcalias.go:127
↓ 1 callers
Method
getFuncCall
getFuncCall extracts a FuncCall from a node if it is one
transpiler/transform/version.go:185
↓ 1 callers
Function
getLocalIPs
()
cmd/cache-proxy/peers.go:214
↓ 1 callers
Method
getModel
(c *gin.Context)
controlplane/admin/models_api.go:164
↓ 1 callers
Method
getOperatorName
(aexpr *pg_query.A_Expr)
transpiler/transform/operators.go:605
↓ 1 callers
Method
getOrg
(c *gin.Context)
controlplane/admin/api.go:549
↓ 1 callers
Method
getWithClause
getWithClause extracts WITH clause from any statement type
transpiler/transform/writablecte.go:83
↓ 1 callers
Function
github_status_to_name_status
(status: str)
scripts/test_impact_plan.py:320
← previous
next →
2,301–2,400 of 5,901, ranked by callers