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
CatalogFromSearchPath
CatalogFromSearchPath returns the catalog from the first search_path entry, or "" when the first entry is an unqualified schema.
server/sqlcore/identifier.go:49
↓ 1 callers
Function
CheckAndBackupMigration
CheckAndBackupMigration runs the migration check for the given DuckLake config and returns whether migration is needed. If migration is needed, it bac
server/ducklake/migration.go:128
↓ 1 callers
Function
CheckMigrationVersion
CheckMigrationVersion checks only whether a DuckLake metadata store needs migration, without performing the backup. This is fast (<1s) and safe to cal
server/ducklake/migration.go:142
↓ 1 callers
Method
ClearMigrating
ClearMigrating marks an org's DuckLake migration as complete.
controlplane/org_router.go:221
↓ 1 callers
Method
Close
()
internal/analytics/analytics.go:92
↓ 1 callers
Method
Close
()
server/querylog_kafka_writer.go:967
↓ 1 callers
Method
Close
()
server/flightclient/flight_executor.go:327
↓ 1 callers
Method
ClosePreparedStatement
(ctx context.Context, req flightsql.ActionClosePreparedStatementRequest)
server/flightsqlingress/ingress.go:783
↓ 1 callers
Method
CloseSessionIfReconnectTargetUnchanged
(stale DurableSessionRecord, closedAt time.Time)
server/flightsqlingress/ingress.go:117
↓ 1 callers
Function
CompareQueries
CompareQueries executes a query on both databases and compares results
tests/integration/compare.go:175
↓ 1 callers
Method
ComputeBillingCursor
()
controlplane/compute_billing_api.go:15
↓ 1 callers
Function
ConfigForBackend
(name backendpkg.Name)
transpiler/config.go:60
↓ 1 callers
Method
ConfigureBatching
(batchSize int, flushInterval time.Duration)
server/querylog_kafka_writer.go:145
↓ 1 callers
Method
ConnContext
(ctx context.Context)
server/sqlcore/interfaces.go:52
↓ 1 callers
Method
ConnDetailByWorkerID
ConnDetailByWorkerID returns a redacted snapshot of the live connection bound to the given control-plane worker id, or ok=false if none is registered
server/exports.go:150
↓ 1 callers
Method
Connect
(ctx context.Context)
duckdbservice/duckdb_pair.go:77
↓ 1 callers
Function
ConnectionBilling
ConnectionBilling returns the data needed to meter one connection's compute-usage at teardown: the org, the session's query source (the `duckgres.quer
server/exports.go:216
↓ 1 callers
Method
ControlPlaneInstances
ControlPlaneInstances returns the live CP replicas.
controlplane/admin/live.go:131
↓ 1 callers
Method
CountHotIdleWorkers
(orgID, image, profileCPU, profileMemory string)
controlplane/janitor.go:23
↓ 1 callers
Method
CountHotIdleWorkers
(orgID, image, profileCPU, profileMemory string)
controlplane/per_cp_hot_idle_reaper.go:14
↓ 1 callers
Function
CountParameters
CountParameters parses SQL and counts $N placeholders without applying any transforms. This is used for prepared statements in native DuckDB mode wher
transpiler/transpiler.go:803
↓ 1 callers
Function
CreateK8sPool
CreateK8sPool creates a Kubernetes worker pool if the kubernetes build tag is enabled.
controlplane/worker_pool.go:151
↓ 1 callers
Method
CreateOrg
(org *configstore.Org)
controlplane/admin/api.go:128
↓ 1 callers
Method
CreateOrgUser
(orgID, username, passwordHash string)
controlplane/provisioning/api.go:81
↓ 1 callers
Method
CreatePreparedStatement
(ctx context.Context, req flightsql.ActionCreatePreparedStatementRequest)
server/flightsqlingress/ingress.go:731
↓ 1 callers
Method
CreateUser
(user *configstore.OrgUser)
controlplane/admin/api.go:134
↓ 1 callers
Function
DefaultServerConfig
()
configresolve/resolve.go:135
↓ 1 callers
Method
DeleteOperator
DeleteOperator removes an operator by email (case-insensitive), reporting whether a row was deleted. Deleting a missing operator is not an error.
controlplane/configstore/operators.go:86
↓ 1 callers
Method
DeleteOrg
(name string)
controlplane/admin/api.go:131
↓ 1 callers
Method
DeleteUser
(orgID, username string)
controlplane/admin/api.go:137
↓ 1 callers
Method
DeleteWorkerArtifacts
DeleteWorkerArtifacts schedules deletion of the pod and RPC secret for the named worker. Called only after the durable runtime row has transitioned to
controlplane/worker_lifecycle.go:27
↓ 1 callers
Method
DoGetDBSchemas
(ctx context.Context, cmd flightsql.GetDBSchemas)
server/flightsqlingress/ingress.go:891
↓ 1 callers
Method
DoGetPreparedStatement
(ctx context.Context, cmd flightsql.PreparedStatementQuery)
server/flightsqlingress/ingress.go:822
↓ 1 callers
Method
DoGetTables
(ctx context.Context, cmd flightsql.GetTables)
server/flightsqlingress/ingress.go:968
↓ 1 callers
Method
DoPutCommandStatementUpdate
(ctx context.Context, cmd flightsql.StatementUpdate)
server/flightsqlingress/ingress.go:636
↓ 1 callers
Method
DurableSessionMetadata
(pid int32, username string)
server/flightsqlingress/ingress.go:121
↓ 1 callers
Method
DurableSessionStore
()
server/flightsqlingress/ingress.go:129
↓ 1 callers
Method
Enabled
()
tests/perf/publisher/publisher.go:88
↓ 1 callers
Method
Enqueue
(posthog.Message)
internal/analytics/analytics.go:55
↓ 1 callers
Method
Error
()
cmd/cache-proxy/proxy_test.go:22
↓ 1 callers
Method
Error
()
tests/scenario/dbt/errors.go:14
↓ 1 callers
Method
Exec
(query string, args ...any)
server/attach_timeout.go:198
↓ 1 callers
Method
ExecContext
(ctx context.Context, query string, args ...any)
server/flightclient/flight_executor.go:251
↓ 1 callers
Method
FlushComputeUsage
([]configstore.ComputeUsageDelta)
controlplane/compute_meter.go:149
↓ 1 callers
Function
FuncAliasNames
FuncAliasNames returns all function names that need alias normalization.
transpiler/transform/funcalias.go:32
↓ 1 callers
Function
FunctionNames
FunctionNames returns all PostgreSQL function names that have DuckDB mappings.
transpiler/transform/functions.go:141
↓ 1 callers
Method
GCComputeUsage
(olderThan time.Time)
controlplane/compute_gc.go:27
↓ 1 callers
Method
Gatherer
()
tests/perf/core/metrics.go:96
↓ 1 callers
Method
GetDataStoreBucketName
GetDataStoreBucketName reads spec.dataStore.bucketName from the named Duckling CR. Empty (missing block / missing key) means the CR predates CP-owned
controlplane/provisioner/k8s_client.go:379
↓ 1 callers
Method
GetFlightInfoPreparedStatement
(ctx context.Context, cmd flightsql.PreparedStatementQuery, desc *flight.FlightDescriptor)
server/flightsqlingress/ingress.go:794
↓ 1 callers
Method
GetFlightInfoTables
(ctx context.Context, cmd flightsql.GetTables, desc *flight.FlightDescriptor)
server/flightsqlingress/ingress.go:945
↓ 1 callers
Method
GetManagedWarehouse
(orgID string)
controlplane/admin/api.go:322
↓ 1 callers
Method
GetOrg
(orgID string)
controlplane/provisioning/api.go:73
↓ 1 callers
Method
GetOrg
(name string)
controlplane/admin/api.go:175
↓ 1 callers
Method
GetSchema
(ctx context.Context, in *flight.FlightDescriptor, opts ...grpc.CallOption)
controlplane/session_mgr_drain_test.go:448
↓ 1 callers
Method
GetTableTypes
()
duckdbservice/flight_handler_test.go:111
↓ 1 callers
Method
GetUser
(orgID, username string)
controlplane/admin/api.go:135
↓ 1 callers
Method
GetWorkerRecord
(workerID int)
controlplane/k8s_pool_test.go:264
↓ 1 callers
Method
GetWorkerRecord
GetWorkerRecord returns a runtime worker row by worker id. Returns (nil, nil) when no row matches — "not found" is a normal state for callers like cle
controlplane/configstore/store.go:1049
↓ 1 callers
Method
Handle
(_ context.Context, r slog.Record)
controlplane/k8s_pool_test.go:69
↓ 1 callers
Method
Healthy
()
server/flightsqlingress/ingress.go:276
↓ 1 callers
Method
Image
Image returns the container image recorded for this worker.
controlplane/configstore/lifecycle_types.go:53
↓ 1 callers
Method
Impersonate
(c *gin.Context, org, username, sql string, allowWrite bool)
controlplane/admin/impersonate.go:26
↓ 1 callers
Method
InvalidateQueryLogEntryWriter
(string, QueryLogEntryWriter)
server/querylog_kafka_writer.go:90
↓ 1 callers
Method
IsDatabaseNameAvailable
(name string)
controlplane/provisioning/api.go:84
↓ 1 callers
Method
IsMigratingForOrg
(orgID string)
controlplane/control.go:256
↓ 1 callers
Function
IsPostgresRunning
IsPostgresRunning checks if the PostgreSQL container is running
tests/integration/harness.go:701
↓ 1 callers
Function
IsTransientStartupError
(err error)
tests/scenario/sql/steps.go:359
↓ 1 callers
Method
KillSession
KillSession tears down the session (and its exclusive worker) for pid. Returns an error if no such session exists. NOTE: pid is per-CP, not cluster-un
controlplane/admin/live.go:135
↓ 1 callers
Method
KillSessionByWorkerID
KillSessionByWorkerID tears down the session bound to the cluster-unique worker id on THIS replica (0 or 1). The handler fans it out so a cancel hits
controlplane/admin/live.go:140
↓ 1 callers
Method
LastProfilingOutput
LastProfilingOutput returns the JSON profiling output from the last executed query, or "" if profiling is not enabled or not available (e.g. Flight SQ
server/sqlcore/interfaces.go:59
↓ 1 callers
Method
ListCRNames
(ctx context.Context)
controlplane/admin/ducklings_drift.go:22
↓ 1 callers
Method
ListExpiredHotIdleSnapshots
(now time.Time, defaultTTL time.Duration)
controlplane/janitor.go:22
↓ 1 callers
Method
ListExpiredHotIdleSnapshotsForCP
(ownerCPInstanceID string, now time.Time, defaultTTL time.Duration)
controlplane/per_cp_hot_idle_reaper.go:13
↓ 1 callers
Method
ListOperators
ListOperators returns all operators ordered by email.
controlplane/configstore/operators.go:47
↓ 1 callers
Method
ListOrgs
()
controlplane/admin/api.go:127
↓ 1 callers
Method
ListOrphanedWorkerSnapshots
(before time.Time)
controlplane/janitor.go:20
↓ 1 callers
Method
ListOrphanedWorkerSnapshots
ListOrphanedWorkerSnapshots returns workers whose owning CP instance is no longer live (expired/missing past the cutoff). Reused here so the per-CP re
controlplane/per_cp_hot_idle_reaper.go:19
↓ 1 callers
Method
ListStuckWorkerSnapshots
(spawningBefore, activatingBefore time.Time)
controlplane/janitor.go:21
↓ 1 callers
Method
ListUsers
()
controlplane/admin/api.go:133
↓ 1 callers
Method
ListWarehouses
ListWarehousesByStates returns all warehouses with a state matching one of the given values. This is a direct DB query, not snapshot-based, for use by
controlplane/configstore/store.go:645
↓ 1 callers
Method
ListWarehousesByStates
(states []configstore.ManagedWarehouseProvisioningState)
controlplane/provisioner/controller.go:54
↓ 1 callers
Method
ListWorkerRecordsByStatesBefore
ListWorkerRecordsByStatesBefore returns worker rows in any of the given states whose updated_at is at or before the given cutoff. The age filter is wh
controlplane/configstore/store.go:1029
↓ 1 callers
Function
LoadCatalog
(path string)
tests/perf/core/catalog.go:11
↓ 1 callers
Method
LoadStatements
LoadStatements returns the user's decrypted secret statements for replay at session creation. Rows that fail to decrypt (e.g. written under a rotated
controlplane/user_secrets.go:82
↓ 1 callers
Method
Log
Log sends an entry to the query log. Non-blocking; drops if channel is full.
server/querylog.go:213
↓ 1 callers
Method
MarkWorkerTerminalIfCurrent
(record *configstore.WorkerRecord, targetState configstore.WorkerState, reason string)
controlplane/worker_lifecycle.go:35
↓ 1 callers
Method
Metadata
()
transpiler/backend/profile.go:81
↓ 1 callers
Method
MetricsGatherer
()
tests/perf/core/runner.go:107
↓ 1 callers
Function
MigrationCheckError
MigrationCheckError returns the cached error from the most recent migration check for connStr, or nil if the check has not run or succeeded. Use this
server/ducklake/migration.go:106
↓ 1 callers
Function
MigrationCheckedVersion
MigrationCheckedVersion returns the version found in the metadata store. Returns "" if the check has not run or the metadata store had no version.
server/ducklake/migration.go:116
↓ 1 callers
Method
Network
()
server/auth/ratelimit_test.go:15
↓ 1 callers
Function
NewAuditStore
NewAuditStore returns an AuditStore over the config-store DB and ensures the table exists (AutoMigrate, matching the runtime-table bootstrap pattern —
controlplane/admin/audit.go:50
↓ 1 callers
Function
NewCPUserSecretManager
NewCPUserSecretManager builds the manager. encodedKey is the value of DUCKGRES_USER_SECRET_KEY; empty disables persistence (not an error), a malformed
controlplane/user_secrets.go:33
↓ 1 callers
Function
NewController
NewController creates a provisioning controller. Returns an error if the Kubernetes client cannot be initialized (e.g., not running in-cluster).
controlplane/provisioner/controller.go:80
↓ 1 callers
Function
NewCtidTransform
()
transpiler/transform/ctid.go:14
↓ 1 callers
Function
NewDatabaseDriver
()
tests/scenario/sql/driver.go:32
↓ 1 callers
Function
NewDuckDBService
NewDuckDBService creates a new DuckDB service with the given config.
duckdbservice/service.go:468
↓ 1 callers
Function
NewDucklingClientWithDynamic
NewDucklingClientWithDynamic creates a DucklingClient with a provided dynamic.Interface (for testing).
controlplane/provisioner/k8s_client.go:78
↓ 1 callers
Function
NewExpandArrayTransform
()
transpiler/transform/expandarray.go:24
← previous
next →
1,901–2,000 of 5,901, ranked by callers