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
Function
parseSQLStep
(step core.Step)
tests/scenario/sql/steps.go:233
↓ 1 callers
Function
parseShowCreateRef
parseShowCreateRef splits a possibly catalog- and schema-qualified, possibly double-quoted table reference into (catalog, schema, table). Defaults: ca
transpiler/show_create.go:139
↓ 1 callers
Method
parseStep
(step core.Step)
tests/scenario/dbt/steps.go:184
↓ 1 callers
Method
parseStep
(step core.Step)
tests/scenario/perf/steps.go:202
↓ 1 callers
Function
parseStructType
parseStructType parses a DuckDB STRUCT type string into an Arrow StructType.
duckdbservice/arrowmap/arrowmap.go:223
↓ 1 callers
Function
parseValue
parseValue attempts to parse a string value into an appropriate Go type
tests/integration/compare.go:120
↓ 1 callers
Function
parse_name_status
(line: str)
scripts/test_impact_plan.py:113
↓ 1 callers
Method
partitions
()
server/querylog_kafka_writer.go:601
↓ 1 callers
Function
patternHasCaptureGroup
patternHasCaptureGroup reports whether a regex literal contains an unescaped capturing '(' (i.e. '(' not preceded by '\' and not the start of '(?').
transpiler/transform/functions_compat.go:322
↓ 1 callers
Method
pendingOrgConnectionUserQueueHeads
(tx *gorm.DB, queueTable, orgID string, now time.Time)
controlplane/configstore/org_connections.go:284
↓ 1 callers
Function
pgArrayLiteralToArrayExpr
pgArrayLiteralToArrayExpr converts a literal Postgres array text form (e.g. '{1,2,3}', '{a,b}', '{1,NULL,3}', '{"a,b",c}') into a DuckDB ARRAY[...] ex
transpiler/transform/typecast.go:608
↓ 1 callers
Function
pgIdentSuffix
pgIdentSuffix sanitizes an org ID into a valid unquoted Postgres identifier fragment: lowercase, with every non-[a-z0-9_] character (notably hyphens)
controlplane/provisioner/k8s_client.go:94
↓ 1 callers
Function
pgNumberFormatToDuckDB
pgNumberFormatToDuckDB converts PostgreSQL number format specifiers to DuckDB format() syntax. PG format: '999,999.99' → DuckDB: '{:,.2f}'
transpiler/transform/functions.go:635
↓ 1 callers
Function
pgPathArrayToJSONPath
pgPathArrayToJSONPath converts a literal Postgres text[] path (e.g. '{a,b}' or '{a,0,b}') into a DuckDB JSONPath ('$."a"."b"', '$."a"[0]."b"'). Keys a
transpiler/transform/operators.go:902
↓ 1 callers
Function
pgTypeOIDCaseSQL
(dataTypeExpr, fallbackExpr string)
server/sessionmeta/sessionmeta.go:460
↓ 1 callers
Method
pgwireDSN
(spec stepSpec)
tests/scenario/perf/steps.go:302
↓ 1 callers
Function
plural
(n int)
server/shell.go:226
↓ 1 callers
Function
podChip
(pod: any, _k: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:391
↓ 1 callers
Function
poolOfNodeName
(name: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:173
↓ 1 callers
Function
postJSON
(path, data)
scripts/client-compat/clients/node-postgres/test_node_postgres.js:24
↓ 1 callers
Function
postgresSNIRoutingModeEnabled
(mode string)
controlplane/control.go:782
↓ 1 callers
Method
processMessage
(ctx context.Context, msg QueryLogKafkaConsumedMessage)
server/querylog_kafka_writer.go:271
↓ 1 callers
Function
projectRoot
(t *testing.T)
tests/manifests/manifests_test.go:254
↓ 1 callers
Method
pruneIdleWriters
(now time.Time)
server/querylog_kafka_writer.go:928
↓ 1 callers
Method
pruneStaleByKey
pruneStaleByKey removes a bootstrap key only if it still points to a missing session token. This method must hold an exclusive lock because it mutates
server/flightsqlingress/ingress.go:1765
↓ 1 callers
Method
queryConnRows
(ctx context.Context, query string, args ...any)
duckdbservice/service.go:406
↓ 1 callers
Method
queryContextForCursor
queryContextForCursor returns a cancellable context without a disconnect monitor. Cursors are long-lived and span multiple message loop iterations, so
server/conn.go:319
↓ 1 callers
Method
queryCount
()
server/flightsqlingress/ingress.go:1421
↓ 1 callers
Function
queryFrame
(query string)
server/conn_skip_until_sync_test.go:119
↓ 1 callers
Function
queryInts
(t *testing.T, db *sql.DB, query string)
tests/controlplane/ducklake_bool_merge_test.go:61
↓ 1 callers
Function
queryLogCatalogName
(fullTableName string)
server/querylog.go:526
↓ 1 callers
Function
queryLogCreateTableSQL
(fullTableName string)
server/querylog.go:464
↓ 1 callers
Function
queryLogKafkaEntries
(batch []queryLogKafkaBufferedEvent)
server/querylog_kafka_writer.go:620
↓ 1 callers
Function
queryLogKafkaEvents
(batch []queryLogKafkaBufferedEvent)
server/querylog_kafka_writer.go:612
↓ 1 callers
Function
queryLogWriterNamespace
(configured string)
querylog_writer_mode_kubernetes.go:218
↓ 1 callers
Function
queryOutcomeFromErrorCode
(code string)
server/query_metrics.go:79
↓ 1 callers
Method
queryRange
(c *gin.Context)
controlplane/admin/metrics_proxy.go:81
↓ 1 callers
Method
queryRequest
(step core.Step, spec querySpec, resultID string)
tests/scenario/sql/steps.go:193
↓ 1 callers
Method
queryWithRecoveryLocked
(ctx context.Context, query string, args ...any)
server/flightsqlingress/ingress.go:1237
↓ 1 callers
Function
quoteConninfoValue
(value string)
tests/scenario/sql/connection.go:71
↓ 1 callers
Function
quotePostgresIdentifier
(name string)
tests/integration/harness.go:416
↓ 1 callers
Function
readCompose
(t *testing.T)
tests/integration/composefile/compose_test.go:58
↓ 1 callers
Function
readDirNames
(dir string)
cmd/cache-proxy/cache_test.go:213
↓ 1 callers
Method
readS3Credentials
(ctx context.Context, ref configstore.SecretRef)
controlplane/shared_worker_activator.go:602
↓ 1 callers
Function
readSpecDuckLakeEnabled
readSpecDuckLakeEnabled returns spec.ducklake.enabled as *bool — nil when the ducklake block (or its enabled key) is absent, so callers can distinguis
controlplane/provisioner/k8s_client.go:427
↓ 1 callers
Function
readStartupWithGSSFallback
readStartupWithGSSFallback accepts a GSSAPI probe, rejects it with 'N', and keeps reading startup packets on the same connection so clients can contin
controlplane/control.go:1615
↓ 1 callers
Method
reapIdleWorkers
()
controlplane/k8s_pool_lifecycle.go:790
↓ 1 callers
Method
reapLoop
()
server/flightsqlingress/ingress.go:2017
↓ 1 callers
Method
reapLoop
()
duckdbservice/service.go:611
↓ 1 callers
Method
reapOrphanedHotIdle
(now time.Time)
controlplane/per_cp_hot_idle_reaper.go:127
↓ 1 callers
Method
reapStaleHandles
(now time.Time, ttl time.Duration)
server/flightsqlingress/ingress.go:1427
↓ 1 callers
Method
reconcileBucketName
reconcileBucketName backfills spec.dataStore.bucketName (and the config-store row) with the control-plane-owned per-org bucket name for ready s3bucket
controlplane/provisioner/controller.go:402
↓ 1 callers
Method
reconcileDeleting
(ctx context.Context, w *configstore.ManagedWarehouse)
controlplane/provisioner/controller.go:449
↓ 1 callers
Method
reconcilePending
(ctx context.Context, w *configstore.ManagedWarehouse)
controlplane/provisioner/controller.go:171
↓ 1 callers
Method
reconcileProvisioning
(ctx context.Context, w *configstore.ManagedWarehouse)
controlplane/provisioner/controller.go:224
↓ 1 callers
Method
reconcileReady
reconcileReady handles drift correction for Ready warehouses. The post-create-mutable spec field is metadataStore.pgbouncer.enabled; if an operator fl
controlplane/provisioner/controller.go:364
↓ 1 callers
Method
reconnectByToken
(ctx context.Context, token string)
server/flightsqlingress/ingress.go:1945
↓ 1 callers
Method
record
(message string, attrs []slog.Attr)
controlplane/k8s_pool_test.go:41
↓ 1 callers
Function
recordMetric
(m concurrencyMetric)
tests/integration/ducklake_concurrency_test.go:46
↓ 1 callers
Method
recoverACMEAfterFailedReload
()
controlplane/control.go:2136
↓ 1 callers
Method
recoverAfterFailedReload
recoverAfterFailedReload restores all subsystems that were shut down in the SIGUSR1 handler when the new CP fails to complete the upgrade.
controlplane/control.go:2109
↓ 1 callers
Method
recoverMetricsAfterFailedReload
()
controlplane/control.go:2116
↓ 1 callers
Function
redactHTTPBody
(raw []byte)
tests/scenario/provision/redact.go:28
↓ 1 callers
Function
redactSecret
(text, secret string)
tests/scenario/dbt/steps.go:314
↓ 1 callers
Function
redactValue
(v any)
tests/scenario/provision/redact.go:42
↓ 1 callers
Function
registerAuditAPI
registerAuditAPI wires GET /audit, admin-only via a per-route RequireAdmin gate that travels with the route (a rename cannot silently expose it).
controlplane/admin/audit.go:237
↓ 1 callers
Function
registerImpersonateAPI
registerImpersonateAPI wires POST /orgs/:id/impersonate/query. RoleGate already restricts POST to admins; the handler re-checks and audits.
controlplane/admin/impersonate.go:37
↓ 1 callers
Function
registerOperatorsAPI
registerOperatorsAPI wires the Operators management endpoints. Every route is admin-only (RequireAdmin per-route, so the gate travels with the route a
controlplane/admin/operators_api.go:25
↓ 1 callers
Function
registerUserSecretsAPI
registerUserSecretsAPI wires list/delete for a user's stored persistent secrets. The ciphertext is never returned (json:"-" on the model); only names
controlplane/admin/secrets_api.go:24
↓ 1 callers
Function
reinjectOrReplace
reinjectOrReplace inserts `OR REPLACE` after the leading CREATE keyword of a transpiled `CREATE [TEMP] TABLE ...` statement, reversing the strip done
transpiler/create_or_replace.go:43
↓ 1 callers
Method
releaseSQLTransactionDrain
()
duckdbservice/service.go:215
↓ 1 callers
Method
removeSessionFromWorkerLocked
(workerID int, pid int32)
controlplane/session_mgr.go:806
↓ 1 callers
Method
removeWaiterLocked
(waiter *connectionWaiter)
controlplane/session_mgr.go:316
↓ 1 callers
Function
removeWhitespaceBeforeParen
removeWhitespaceBeforeParen deletes whitespace runs immediately preceding a '(' in a single pass, so Classify's paren-suffixed tokens like "EVERY(" ma
transpiler/transpiler.go:714
↓ 1 callers
Method
removeWorkerAfterDrainedLease
(lease workerLeaseSnapshot, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:1222
↓ 1 callers
Method
removeWorkerLocked
(id int)
controlplane/k8s_pool_lifecycle.go:981
↓ 1 callers
Function
renderFlatGroups
(mode: string, flatPods: [any, string][], sortPods: (l: [any, string][]) => void)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:476
↓ 1 callers
Function
render_markdown
(plan: TestImpactPlan)
scripts/test_impact_plan.py:492
↓ 1 callers
Method
replaceCompatFuncNode
This file implements the PostgreSQL builtin-compatibility transforms that cannot be expressed as catalog macros (self-recursion, variadic templates, o
transpiler/transform/functions_compat.go:18
↓ 1 callers
Method
replaceExpandArrayCalls
replaceExpandArrayCalls replaces _pg_expandarray calls with column references
transpiler/transform/expandarray.go:261
↓ 1 callers
Method
replaceLogWithLnDivision
replaceLogWithLnDivision replaces log(base, value) with ln(value) / ln(base).
transpiler/transform/functions.go:412
↓ 1 callers
Function
replaceStandaloneToken
replaceStandaloneToken replaces every occurrence of tok in s with repl, but only where tok is not adjacent to an identifier-continuation byte on eithe
transpiler/longident.go:204
↓ 1 callers
Function
requestMap
(step core.Step)
tests/scenario/provision/steps.go:209
↓ 1 callers
Function
requireGetTablesIncludeSchema
(t *testing.T, client *flightsql.Client, ctx context.Context)
tests/controlplane/flight_ingress_test.go:48
↓ 1 callers
Function
requiredString
(step core.Step, key string)
tests/scenario/sql/steps.go:381
↓ 1 callers
Function
resetConfigStoreTables
(t *testing.T, db *gorm.DB)
controlplane/admin/api_postgres_test.go:85
↓ 1 callers
Function
resetLeaderOwnedClusterMetrics
resetLeaderOwnedClusterMetrics clears the cluster-wide gauges this CP owns only while it holds the janitor leader lease, so stale per-image counts don
controlplane/pool_metrics.go:88
↓ 1 callers
Method
resolveBackend
resolveBackend returns the effective backend. An explicit Backend wins; otherwise it is derived from the legacy DuckLakeMode flag.
transpiler/config.go:44
↓ 1 callers
Method
resolveCPUID
(ctx context.Context)
controlplane/k8s_pool.go:244
↓ 1 callers
Function
resolveDataStore
resolveDataStore validates and normalizes the data-store request into the stored intent. Nil or "s3bucket" provisions a fresh per-org bucket; "externa
controlplane/provisioning/api.go:187
↓ 1 callers
Method
resolveFlightOrgFromSNI
resolveFlightOrgFromSNI maps a TLS ServerName to its org, returning ok=false for unmanaged hostnames or prefixes that resolve to no org.
controlplane/control.go:2038
↓ 1 callers
Function
resolveK8sNamespace
(namespace string)
controlplane/multitenant.go:643
↓ 1 callers
Function
resolveOrgDefaultWorkerProfile
(k K8sConfig, org *configstore.OrgConfig)
controlplane/worker_profile_k8s.go:7
↓ 1 callers
Function
resolveRuntimeSchema
(db *gorm.DB)
controlplane/configstore/store.go:699
↓ 1 callers
Function
resolveScenarioFilePaths
(s core.Scenario, baseDir string)
tests/scenario/runner_test.go:509
↓ 1 callers
Function
resolveTemplateValue
(value any, vars map[string]string)
tests/scenario/runner_test.go:581
↓ 1 callers
Method
resourceLimitsForOrg
(orgID string)
controlplane/org_router.go:169
↓ 1 callers
Method
retireWorkerIfNoSessionsWithReason
(id int, reason string, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:54
↓ 1 callers
Function
retryConfigForStep
(step core.Step, base RetryConfig)
tests/scenario/sql/steps.go:342
↓ 1 callers
Function
returningRefsColumn
returningRefsColumn reports whether a RETURNING item references, by name, any column in cols. RETURNING * is deliberately NOT treated as a hit: it is
transpiler/transform/writablecte.go:430
← previous
next →
2,601–2,700 of 5,901, ranked by callers