MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 2 callersMethodorgConnectionDatabaseNow
(tx *gorm.DB)
controlplane/configstore/org_connections.go:184
↓ 2 callersMethodorgConnectionRuntimeTables
()
controlplane/configstore/org_connections.go:112
↓ 2 callersFunctionorgInt64Ptr
orgInt64Ptr renders an optional org config integer (nil or 0 == unset) for audit detail.
controlplane/admin/api.go:712
↓ 2 callersFunctionorgStrPtr
orgStrPtr renders an optional org config string (nil == unset) for audit detail.
controlplane/admin/api.go:703
↓ 2 callersFunctionoriginFetchOutcome
(err error)
cmd/cache-proxy/proxy.go:566
↓ 2 callersFunctionoriginRetryReason
(err error)
cmd/cache-proxy/proxy.go:587
↓ 2 callersFunctionotelResource
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 callersFunctionouterStatementOfCTE
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 callersMethodparkIdleHotWorker
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 callersFunctionparseCatalogStep
(step core.Step)
tests/scenario/sql/steps.go:245
↓ 2 callersFunctionparseCpu
(q: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:90
↓ 2 callersFunctionparseDecimalParams
parseDecimalParams extracts precision and scale from a type name like "DECIMAL(18,2)".
duckdbservice/arrowmap/arrowmap.go:254
↓ 2 callersFunctionparseDollarTag
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 callersFunctionparseIdentifierPart
(s string)
server/sqlcore/identifier.go:85
↓ 2 callersFunctionparseK8sCPU
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 callersFunctionparseK8sCPUMillicores
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 callersFunctionparseK8sMemoryMiB
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 callersFunctionparseMem
(q: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:96
↓ 2 callersFunctionparseProfilingOutput
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 callersFunctionparseStructFieldDef
parseStructFieldDef parses a single struct field definition like `"field_name" TYPE`. It handles double-quote escaping ("" → ").
duckdbservice/arrowmap/arrowmap.go:190
↓ 2 callersFunctionparseVersion
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 callersFunctionparseWireMsgs
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 callersMethodpartitionBatch
(partition int, now time.Time)
server/querylog_kafka_writer.go:524
↓ 2 callersFunctionpassthroughSessionDefaultCatalogCommand
passthroughSessionDefaultCatalogCommand returns the connect-time command that points a passthrough session at the catalog it selected (effectiveCatalo
controlplane/session_search_path.go:44
↓ 2 callersFunctionpct
(a: number, b: number)
controlplane/admin/ui/src/components/Topbar.tsx:47
↓ 2 callersMethodpersistSession
(session *flightClientSession, username string)
server/flightsqlingress/ingress.go:1905
↓ 2 callersFunctionpodDeleteActionNames
(cs *fake.Clientset)
controlplane/k8s_pool_test.go:571
↓ 2 callersFunctionpodImages
(pod: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:286
↓ 2 callersFunctionpodRequests
podRequests sums a pod's container CPU (millicores) + memory (bytes) requests.
controlplane/admin/cluster.go:337
↓ 2 callersFunctionpopAbandonedTransactionContinuations
(session *Session, txnKey string)
duckdbservice/flight_handler.go:105
↓ 2 callersFunctionpopQueryHandle
(session *Session, handleID string)
duckdbservice/flight_handler.go:126
↓ 2 callersMethodpostJson
(String path, String body)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:409
↓ 2 callersFunctionpreviewBody
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 callersMethodprofile
profile returns the backend profile for this config, with any explicit PhysicalCatalogName override applied.
transpiler/config.go:56
↓ 2 callersFunctionprojMeta
(m metav1.ObjectMeta)
controlplane/admin/cluster.go:147
↓ 2 callersFunctionpromToSeries
(resp: PromRangeResponse | undefined)
controlplane/admin/ui/src/lib/format.ts:9
↓ 2 callersFunctionprovisionEventProps
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 callersMethodpruneIdleWritersLocked
(now time.Time)
server/querylog_kafka_writer.go:934
↓ 2 callersMethodqualifiedTable
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 callersFunctionqueryHasCreateSecret
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 callersMethodqueryLocked
(ctx context.Context, query string, args ...any)
server/flightsqlingress/ingress.go:1227
↓ 2 callersFunctionqueryLogDuckLakeDBDSN
()
server/querylog.go:208
↓ 2 callersFunctionqueryLogEntryInsertArgs
(e QueryLogEntry)
server/querylog.go:345
↓ 2 callersFunctionqueryLogStopContext
(ctx context.Context, defaultTimeout time.Duration)
server/querylog_kafka.go:256
↓ 2 callersFunctionqueryLogWriterActivationErrorIsNoDuckLakeTarget
(err error)
querylog_writer_mode_kubernetes.go:89
↓ 2 callersFunctionquoteSecretIdent
quoteSecretIdent double-quotes a DuckDB identifier, escaping embedded quotes.
duckdbservice/user_secrets.go:91
↓ 2 callersMethodreclaimableFlightSessionGuard
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 callersMethodrecordDroppedOrgBatchError
(reason, orgID string, batchSize int, err error)
server/querylog_kafka_writer.go:399
↓ 2 callersMethodrecordRecentError
recordRecentError adds a redacted error to the server's ring (nil-safe).
server/recent_errors.go:84
↓ 2 callersFunctionredactAttr
(a slog.Attr)
internal/cliboot/logging.go:153
↓ 2 callersFunctionredactSensitiveText
(value string)
tests/scenario/provision/redact.go:77
↓ 2 callersFunctionregisterBillingAPI
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 callersFunctionregisterModelsAPI
registerModelsAPI registers the read-only generic models explorer used by the admin dashboard's models browser.
controlplane/admin/models_api.go:108
↓ 2 callersFunctionreleaseConnectionLeaseWithRetry
(lease connectionLease, attrs ...any)
controlplane/session_mgr.go:828
↓ 2 callersMethodreleaseQueryHandle
(ticket *flight.Ticket)
server/flightclient/flight_executor.go:410
↓ 2 callersMethodreleaseSessionLease
(session *ManagedSession, attrs ...any)
controlplane/session_mgr.go:821
↓ 2 callersFunctionrenderLoginPage
(c *gin.Context, next, errMsg string)
controlplane/admin/dashboard.go:118
↓ 2 callersMethodreplaceInExpression
replaceInExpression replaces _pg_expandarray calls in an expression
transpiler/transform/expandarray.go:275
↓ 2 callersFunctionreplayUserSecrets
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 callersFunctionreport
(suite, testName, status, detail)
scripts/client-compat/clients/node-postgres/test_node_postgres.js:48
↓ 2 callersMethodreport
(String suite, String testName, String status, String detail)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:393
↓ 2 callersFunctionrequestAdminToken
(c *gin.Context)
controlplane/admin/dashboard.go:133
↓ 2 callersFunctionrequestSpanAttrs
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 callersFunctionrequireColumnType
(t *testing.T, db *sql.DB, tableName, columnName, wantType string)
tests/configstore/migrations_postgres_test.go:527
↓ 2 callersFunctionrequireRuntimeIndexDefinition
(t *testing.T, store *configstore.ConfigStore, tableName, indexName string, wantSubstrings ...string)
tests/configstore/runtime_store_postgres_test.go:122
↓ 2 callersFunctionrequiredString
(step core.Step, key string)
tests/scenario/dbt/steps.go:345
↓ 2 callersMethodreserveSharedWorkerDecision
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 callersFunctionresolveEffectiveCatalog
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 callersFunctionresolveSNIPrefixFromSnapshot
(snap *Snapshot, prefix string)
controlplane/configstore/store.go:330
↓ 2 callersFunctionresolveSTSSessionDuration
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 callersFunctionresolveWorkerProfileWithConfig
(k K8sConfig, opts map[string]string, org orgWorkerProfileDefaults)
controlplane/worker_profile.go:82
↓ 2 callersFunctionresourceStrings
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 callersFunctionrestoreLongIdentifiersAll
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 callersMethodretireClaimedWorker
(claimed *configstore.WorkerRecord, reason string, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:255
↓ 2 callersMethodretireLocalDrainingLease
(lease workerLeaseSnapshot, reason string, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:1253
↓ 2 callersMethodreuseExistingActivation
(payload ActivationPayload)
duckdbservice/activation.go:184
↓ 2 callersMethodrewriteRangeVar
(rv *pg_query.RangeVar)
transpiler/transform/logicalcatalog.go:67
↓ 2 callersFunctionroundCores
(milli int64)
controlplane/admin/cluster.go:410
↓ 2 callersFunctionroundGiB
1 decimal
controlplane/admin/cluster.go:411
↓ 2 callersFunctionrowAAD
(orgID, username, secretName string)
server/usersecrets/crypto.go:59
↓ 2 callersFunctionrunComputeUsageGC
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 callersFunctionrunDockerCompose
(command string, args ...string)
tests/integration/harness.go:658
↓ 2 callersFunctionrunQueryLogWriter
(context.Context, server.Config, configresolve.Resolved)
querylog_writer_mode_stub.go:13
↓ 2 callersMethodrunRepeatedScalarQuery
(String sql, String testName, int iterations)
scripts/client-compat/clients/jdbc/src/main/java/com/posthog/compat/JdbcCompatTest.java:331
↓ 2 callersFunctionrunRotationScenario
(t *testing.T, sc rotationScenario)
tests/integration/credential_rotation_pin_test.go:53
↓ 2 callersFunctionrun_git
(repo: Path, args: list[str])
scripts/test_impact_plan.py:530
↓ 2 callersFunctionsaveFilters
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:732
↓ 2 callersFunctionscanForReturning
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 callersFunctionsearchPathValue
(node *pg_query.Node)
transpiler/transform/setshow.go:407
↓ 2 callersFunctionseedDatasetViaDriver
(ctx context.Context, driver core.ProtocolDriver, records []datasets.Record)
tests/perf/harness_test.go:224
↓ 2 callersFunctionsendProfilingMetadata
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 callersMethodserveStream
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 callersMethodsessionFromContextWithTokenMetadata
(ctx context.Context, emitTokenMetadata bool)
server/flightsqlingress/ingress.go:365
↓ 2 callersFunctionsetBar
(bar: Element, used: number, alloc: number, fmtPair: (u: number, a: number) => string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:635
↓ 2 callersFunctionsetJanitorIsLeader
setJanitorIsLeader records whether this replica currently holds the janitor leader lease (1) or not (0).
controlplane/worker_lifecycle_metrics_k8s.go:30
↓ 2 callersMethodsetProvisionUserFailHook
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 callersMethodsetSQLTransactionDrain
(release func())
duckdbservice/service.go:197
↓ 2 callersFunctionsetSessionTokenMetadata
(ctx context.Context, sessionToken string)
server/flightsqlingress/ingress.go:505
↓ 2 callersFunctionsetTestConfigStoreSnapshot
(store *configstore.ConfigStore, snapshot *configstore.Snapshot)
controlplane/org_router_test.go:371
↓ 2 callersMethodsetWorkerDoNotDisrupt
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
← previousnext →1,701–1,800 of 5,901, ranked by callers