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
↓ 2 callers
Method
orgConnectionDatabaseNow
(tx *gorm.DB)
controlplane/configstore/org_connections.go:184
↓ 2 callers
Method
orgConnectionRuntimeTables
()
controlplane/configstore/org_connections.go:112
↓ 2 callers
Function
orgInt64Ptr
orgInt64Ptr renders an optional org config integer (nil or 0 == unset) for audit detail.
controlplane/admin/api.go:712
↓ 2 callers
Function
orgStrPtr
orgStrPtr renders an optional org config string (nil == unset) for audit detail.
controlplane/admin/api.go:703
↓ 2 callers
Function
originFetchOutcome
(err error)
cmd/cache-proxy/proxy.go:566
↓ 2 callers
Function
originRetryReason
(err error)
cmd/cache-proxy/proxy.go:587
↓ 2 callers
Function
otelResource
otelResource returns the shared OTEL resource used by both the log and trace providers. It sets service.name to "duckgres" (or "duckgres-<DUCKGRES_IDE
internal/cliboot/otel_resource.go:13
↓ 2 callers
Function
outerStatementOfCTE
outerStatementOfCTE returns the portion of an uppercased query after all CTE definitions, or "" if the query doesn't start with WITH. For "WITH a AS (
server/conn.go:1993
↓ 2 callers
Method
parkIdleHotWorker
parkIdleHotWorker parks a Hot, zero-session worker into hot_idle WITHOUT decrementing the session count (unlike TransitionToHotIdleIfNoSessions, which
controlplane/k8s_pool_lifecycle.go:208
↓ 2 callers
Function
parseCatalogStep
(step core.Step)
tests/scenario/sql/steps.go:245
↓ 2 callers
Function
parseCpu
(q: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:90
↓ 2 callers
Function
parseDecimalParams
parseDecimalParams extracts precision and scale from a type name like "DECIMAL(18,2)".
duckdbservice/arrowmap/arrowmap.go:254
↓ 2 callers
Function
parseDollarTag
parseDollarTag extracts a dollar-quote tag starting at position i. Returns the full tag (e.g., "$$" or "$tag$") and true, or ("", false).
server/conn.go:1751
↓ 2 callers
Function
parseIdentifierPart
(s string)
server/sqlcore/identifier.go:85
↓ 2 callers
Function
parseK8sCPU
parseK8sCPU parses a Kubernetes CPU string (e.g., "46", "46000m", "500m") into a whole thread count. Millicores below 1000 round down to 0.
controlplane/control.go:1488
↓ 2 callers
Function
parseK8sCPUMillicores
parseK8sCPUMillicores parses a Kubernetes CPU string (e.g. "8", "8000m", "500m") into millicores (1 core = 1000 millicores). Used by compute-usage met
controlplane/control.go:1511
↓ 2 callers
Function
parseK8sMemoryMiB
parseK8sMemoryMiB parses a Kubernetes memory string into whole mebibytes (MiB = 1024*1024 bytes). Used by compute-usage metering, which counts interna
controlplane/control.go:1533
↓ 2 callers
Function
parseMem
(q: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:96
↓ 2 callers
Function
parseProfilingOutput
parseProfilingOutput is the internal worker — kept private so the rest of observe can switch on the lowercase type without exposing it.
server/observe/tracing.go:72
↓ 2 callers
Function
parseStructFieldDef
parseStructFieldDef parses a single struct field definition like `"field_name" TYPE`. It handles double-quote escaping ("" → ").
duckdbservice/arrowmap/arrowmap.go:190
↓ 2 callers
Function
parseVersion
parseVersion parses a DuckLake version string like "0.3" into (major, minor) integers for reliable numeric comparison. Returns (0, 0, err) if the stri
server/ducklake/migration.go:222
↓ 2 callers
Function
parseWireMsgs
parseWireMsgs decodes the sequence of length-prefixed backend messages a clientConn wrote to its buffer (type byte + 4-byte length incl. length).
server/query_source_test.go:62
↓ 2 callers
Method
partitionBatch
(partition int, now time.Time)
server/querylog_kafka_writer.go:524
↓ 2 callers
Function
passthroughSessionDefaultCatalogCommand
passthroughSessionDefaultCatalogCommand returns the connect-time command that points a passthrough session at the catalog it selected (effectiveCatalo
controlplane/session_search_path.go:44
↓ 2 callers
Function
pct
(a: number, b: number)
controlplane/admin/ui/src/components/Topbar.tsx:47
↓ 2 callers
Method
persistSession
(session *flightClientSession, username string)
server/flightsqlingress/ingress.go:1905
↓ 2 callers
Function
podDeleteActionNames
(cs *fake.Clientset)
controlplane/k8s_pool_test.go:571
↓ 2 callers
Function
podImages
(pod: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:286
↓ 2 callers
Function
podRequests
podRequests sums a pod's container CPU (millicores) + memory (bytes) requests.
controlplane/admin/cluster.go:337
↓ 2 callers
Function
popAbandonedTransactionContinuations
(session *Session, txnKey string)
duckdbservice/flight_handler.go:105
↓ 2 callers
Function
popQueryHandle
(session *Session, handleID string)
duckdbservice/flight_handler.go:126
↓ 2 callers
Method
postJson
(String path, String body)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:409
↓ 2 callers
Function
previewBody
previewBody returns up to 256 bytes of the body for log lines so we don't spam multi-KiB XML envelopes into structured logs while still keeping the us
cmd/cache-proxy/proxy.go:653
↓ 2 callers
Method
profile
profile returns the backend profile for this config, with any explicit PhysicalCatalogName override applied.
transpiler/config.go:56
↓ 2 callers
Function
projMeta
(m metav1.ObjectMeta)
controlplane/admin/cluster.go:147
↓ 2 callers
Function
promToSeries
(resp: PromRangeResponse | undefined)
controlplane/admin/ui/src/lib/format.ts:9
↓ 2 callers
Function
provisionEventProps
provisionEventProps builds the common property set for warehouse provision lifecycle events from a warehouse record. Mirrors the properties the admin
controlplane/provisioner/controller.go:20
↓ 2 callers
Method
pruneIdleWritersLocked
(now time.Time)
server/querylog_kafka_writer.go:934
↓ 2 callers
Method
qualifiedTable
qualifiedTable returns the table name to read for a descriptor, schema- qualifying runtime tables with the CP runtime schema.
controlplane/admin/models_api.go:116
↓ 2 callers
Function
queryHasCreateSecret
queryHasCreateSecret reports whether query contains a CREATE SECRET at its head or in any top-level statement. It shares the tokenizer with RedactForL
server/usersecrets/redact.go:80
↓ 2 callers
Method
queryLocked
(ctx context.Context, query string, args ...any)
server/flightsqlingress/ingress.go:1227
↓ 2 callers
Function
queryLogDuckLakeDBDSN
()
server/querylog.go:208
↓ 2 callers
Function
queryLogEntryInsertArgs
(e QueryLogEntry)
server/querylog.go:345
↓ 2 callers
Function
queryLogStopContext
(ctx context.Context, defaultTimeout time.Duration)
server/querylog_kafka.go:256
↓ 2 callers
Function
queryLogWriterActivationErrorIsNoDuckLakeTarget
(err error)
querylog_writer_mode_kubernetes.go:89
↓ 2 callers
Function
quoteSecretIdent
quoteSecretIdent double-quotes a DuckDB identifier, escaping embedded quotes.
duckdbservice/user_secrets.go:91
↓ 2 callers
Method
reclaimableFlightSessionGuard
reclaimableFlightSessionGuard returns a correlated NOT-EXISTS clause (and its args) that spares a worker row (aliased `w`) which still backs a reclaim
controlplane/configstore/store.go:1167
↓ 2 callers
Method
recordDroppedOrgBatchError
(reason, orgID string, batchSize int, err error)
server/querylog_kafka_writer.go:399
↓ 2 callers
Method
recordRecentError
recordRecentError adds a redacted error to the server's ring (nil-safe).
server/recent_errors.go:84
↓ 2 callers
Function
redactAttr
(a slog.Attr)
internal/cliboot/logging.go:153
↓ 2 callers
Function
redactSensitiveText
(value string)
tests/scenario/provision/redact.go:77
↓ 2 callers
Function
registerBillingAPI
registerBillingAPI mounts the billing pull API on an authenticated route group. The caller passes the admin-gating middleware (the billing service aut
controlplane/compute_billing_api.go:32
↓ 2 callers
Function
registerModelsAPI
registerModelsAPI registers the read-only generic models explorer used by the admin dashboard's models browser.
controlplane/admin/models_api.go:108
↓ 2 callers
Function
releaseConnectionLeaseWithRetry
(lease connectionLease, attrs ...any)
controlplane/session_mgr.go:828
↓ 2 callers
Method
releaseQueryHandle
(ticket *flight.Ticket)
server/flightclient/flight_executor.go:410
↓ 2 callers
Method
releaseSessionLease
(session *ManagedSession, attrs ...any)
controlplane/session_mgr.go:821
↓ 2 callers
Function
renderLoginPage
(c *gin.Context, next, errMsg string)
controlplane/admin/dashboard.go:118
↓ 2 callers
Method
replaceInExpression
replaceInExpression replaces _pg_expandarray calls in an expression
transpiler/transform/expandarray.go:275
↓ 2 callers
Function
replayUserSecrets
replayUserSecrets applies the control-plane-supplied persistent secret statements to a fresh session. Failures are collected as warnings rather than f
duckdbservice/user_secrets.go:100
↓ 2 callers
Function
report
(suite, testName, status, detail)
scripts/client-compat/clients/node-postgres/test_node_postgres.js:48
↓ 2 callers
Method
report
(String suite, String testName, String status, String detail)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:393
↓ 2 callers
Function
requestAdminToken
(c *gin.Context)
controlplane/admin/dashboard.go:133
↓ 2 callers
Function
requestSpanAttrs
requestSpanAttrs returns the attributes common to every proxied request, chosen to be the cross-reference anchors for correlating a cache-proxy trace
cmd/cache-proxy/proxy.go:27
↓ 2 callers
Function
requireColumnType
(t *testing.T, db *sql.DB, tableName, columnName, wantType string)
tests/configstore/migrations_postgres_test.go:527
↓ 2 callers
Function
requireRuntimeIndexDefinition
(t *testing.T, store *configstore.ConfigStore, tableName, indexName string, wantSubstrings ...string)
tests/configstore/runtime_store_postgres_test.go:122
↓ 2 callers
Function
requiredString
(step core.Step, key string)
tests/scenario/dbt/steps.go:345
↓ 2 callers
Method
reserveSharedWorkerDecision
reserveSharedWorkerDecision is the short, DB-only half of ReserveSharedWorker: claim a hot-idle worker for the org (fast path: DuckLake is already att
controlplane/k8s_pool_acquire.go:360
↓ 2 callers
Function
resolveEffectiveCatalog
resolveEffectiveCatalog picks the real catalog a session should default to. requested is the validated startup selection ("" → use the attached defaul
controlplane/session_search_path.go:57
↓ 2 callers
Function
resolveSNIPrefixFromSnapshot
(snap *Snapshot, prefix string)
controlplane/configstore/store.go:330
↓ 2 callers
Function
resolveSTSSessionDuration
resolveSTSSessionDuration parses the env override, falling back to the default on empty/garbage and clamping to AWS's AssumeRole minimum.
controlplane/sts_broker.go:110
↓ 2 callers
Function
resolveWorkerProfileWithConfig
(k K8sConfig, opts map[string]string, org orgWorkerProfileDefaults)
controlplane/worker_profile.go:82
↓ 2 callers
Function
resourceStrings
resourceStrings projects a ResourceList down to the cpu/memory quantity strings the view parses (K8s canonical form: "500m", "8", "32861692Ki", …).
controlplane/admin/cluster.go:171
↓ 2 callers
Function
restoreLongIdentifiersAll
restoreLongIdentifiersAll applies restoreLongIdentifiers to each statement in the slice, returning a new slice (or the input unchanged when repls is e
transpiler/longident.go:247
↓ 2 callers
Method
retireClaimedWorker
(claimed *configstore.WorkerRecord, reason string, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:255
↓ 2 callers
Method
retireLocalDrainingLease
(lease workerLeaseSnapshot, reason string, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:1253
↓ 2 callers
Method
reuseExistingActivation
(payload ActivationPayload)
duckdbservice/activation.go:184
↓ 2 callers
Method
rewriteRangeVar
(rv *pg_query.RangeVar)
transpiler/transform/logicalcatalog.go:67
↓ 2 callers
Function
roundCores
(milli int64)
controlplane/admin/cluster.go:410
↓ 2 callers
Function
roundGiB
1 decimal
controlplane/admin/cluster.go:411
↓ 2 callers
Function
rowAAD
(orgID, username, secretName string)
server/usersecrets/crypto.go:59
↓ 2 callers
Function
runComputeUsageGC
runComputeUsageGC hard-deletes compute-usage buckets past the retention cap on a slow tick until ctx is cancelled. Leader-only: the caller wires it th
controlplane/compute_gc.go:35
↓ 2 callers
Function
runDockerCompose
(command string, args ...string)
tests/integration/harness.go:658
↓ 2 callers
Function
runQueryLogWriter
(context.Context, server.Config, configresolve.Resolved)
querylog_writer_mode_stub.go:13
↓ 2 callers
Method
runRepeatedScalarQuery
(String sql, String testName, int iterations)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:331
↓ 2 callers
Function
runRotationScenario
(t *testing.T, sc rotationScenario)
tests/integration/credential_rotation_pin_test.go:53
↓ 2 callers
Function
run_git
(repo: Path, args: list[str])
scripts/test_impact_plan.py:530
↓ 2 callers
Function
saveFilters
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:732
↓ 2 callers
Function
scanForReturning
scanForReturning is the shared SQL-aware lexer for RETURNING detection. When topLevelOnly is true, RETURNING is only matched at parenthesis depth 0. W
server/conn.go:1635
↓ 2 callers
Function
searchPathValue
(node *pg_query.Node)
transpiler/transform/setshow.go:407
↓ 2 callers
Function
seedDatasetViaDriver
(ctx context.Context, driver core.ProtocolDriver, records []datasets.Record)
tests/perf/harness_test.go:224
↓ 2 callers
Function
sendProfilingMetadata
sendProfilingMetadata reads the profiling output file written by DuckDB and sends it as gRPC trailing metadata so the control plane can attach it to t
duckdbservice/profiling.go:25
↓ 2 callers
Method
serveStream
serveStream copies a cached body from r back to the client, reconstructing 206 Partial Content semantics when the original request had a Range header.
cmd/cache-proxy/proxy.go:666
↓ 2 callers
Method
sessionFromContextWithTokenMetadata
(ctx context.Context, emitTokenMetadata bool)
server/flightsqlingress/ingress.go:365
↓ 2 callers
Function
setBar
(bar: Element, used: number, alloc: number, fmtPair: (u: number, a: number) => string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:635
↓ 2 callers
Function
setJanitorIsLeader
setJanitorIsLeader records whether this replica currently holds the janitor leader lease (1) or not (0).
controlplane/worker_lifecycle_metrics_k8s.go:30
↓ 2 callers
Method
setProvisionUserFailHook
provisionUserFailHook, when non-nil, triggers a simulated failure during the user-creation step of Provision. The fake uses it to exercise rollback se
controlplane/provisioning/api_test.go:94
↓ 2 callers
Method
setSQLTransactionDrain
(release func())
duckdbservice/service.go:197
↓ 2 callers
Function
setSessionTokenMetadata
(ctx context.Context, sessionToken string)
server/flightsqlingress/ingress.go:505
↓ 2 callers
Function
setTestConfigStoreSnapshot
(store *configstore.ConfigStore, snapshot *configstore.Snapshot)
controlplane/org_router_test.go:371
↓ 2 callers
Method
setWorkerDoNotDisrupt
setWorkerDoNotDisrupt toggles the Karpenter do-not-disrupt annotation on a worker pod. Workers are BUSY-protected only: the annotation is present from
controlplane/k8s_pool_disruption.go:33
← previous
next →
1,701–1,800 of 5,901, ranked by callers