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
↓ 3 callers
Method
callCount
()
controlplane/admin/live_aggregate_test.go:122
↓ 3 callers
Method
calls
()
server/server_test.go:62
↓ 3 callers
Function
capacityMissPolicyForReason
(reason configstore.WorkerClaimMissReason)
controlplane/capacity_policy.go:24
↓ 3 callers
Function
capacityRetrySeconds
(retryAfter time.Duration)
controlplane/capacity_policy.go:73
↓ 3 callers
Method
cleanDeadWorkersLocked
()
controlplane/k8s_pool_lifecycle.go:909
↓ 3 callers
Function
cleanupWorkerCatalogs
cleanupWorkerCatalogs detaches the lake catalogs that are actually attached on db before shutdown. Probing duckdb_databases() avoids spurious "failed
duckdbservice/service.go:1542
↓ 3 callers
Method
closeAllPrebound
closeAllPrebound permanently closes all remaining pre-bound sockets. Called during ShutdownAll. Does NOT remove socket files — during upgrade, the new
controlplane/worker_mgr.go:311
↓ 3 callers
Function
clusterListError
clusterListError renders a topology-list error. An RBAC Forbidden degrades to an empty {items:[]} (200) — the view shows nothing rather than erroring
controlplane/admin/cluster.go:194
↓ 3 callers
Function
connDurationSample
(t *testing.T, org string)
server/observe/metrics_test.go:9
↓ 3 callers
Function
containsReturning
containsReturning checks if an uppercased SQL string contains a top-level RETURNING keyword at parenthesis depth 0. It skips content inside parenthese
server/conn.go:1620
↓ 3 callers
Function
containsString
(values []string, want string)
tests/integration/composefile/compose_test.go:93
↓ 3 callers
Function
controlPlaneIDLabelValue
(cpInstanceID string)
controlplane/k8s_pool_spawn.go:378
↓ 3 callers
Function
countParametersRegex
countParametersRegex counts $N parameter placeholders using a stateful scan. This is a fallback for when pg_query can't parse the SQL (e.g., DuckDB-sp
transpiler/transpiler.go:830
↓ 3 callers
Method
createJsonExtractFuncCall
createJsonExtractFuncCall creates a json_extract or json_extract_string function call node. This converts -> and ->> operators to explicit function ca
transpiler/transform/operators.go:622
↓ 3 callers
Function
createS3SecretWith
createS3SecretWith is createS3Secret over an attachSQLRunner so the catalog-attachment paths can run the secret check + CREATE SECRET under per-step d
server/server.go:1982
↓ 3 callers
Method
currentSessionConfig
()
duckdbservice/activation.go:340
↓ 3 callers
Function
decodeBool
(data []byte)
server/types.go:913
↓ 3 callers
Function
decodeDate
(data []byte)
server/types.go:957
↓ 3 callers
Function
decodeInt2
(data []byte)
server/types.go:920
↓ 3 callers
Function
decodeInt4
(data []byte)
server/types.go:927
↓ 3 callers
Function
decodeInt8
(data []byte)
server/types.go:934
↓ 3 callers
Function
dedupeBy
dedupeBy keeps the first item per key, preserving order. The live lists are disjoint by ownership (a session/worker lives on exactly one CP), so this
controlplane/admin/live_aggregate.go:50
↓ 3 callers
Method
deleteTXTRecord
(ctx context.Context, name, value string)
server/tlscert/acme_dns.go:411
↓ 3 callers
Function
deparseInnerQuery
--- Server-side cursor emulation --- deparseInnerQuery deparses a pg_query Node back to SQL text.
server/conn_cursor.go:18
↓ 3 callers
Method
doActivateTenant
(body []byte, stream flight.FlightService_DoActionServer)
duckdbservice/flight_handler.go:265
↓ 3 callers
Method
doJSON
(ctx context.Context, method, path string, body any, out any, expectedStatus int)
tests/scenario/provision/client.go:136
↓ 3 callers
Function
dockerComposeCommand
(composeFile string, command string, args ...string)
tests/integration/harness.go:654
↓ 3 callers
Method
dropLocalWorkerIfSameLeaseLocked
(lease workerLeaseSnapshot)
controlplane/k8s_pool_lifecycle.go:1319
↓ 3 callers
Function
effectiveSessionDefaultCommand
effectiveSessionDefaultCommand returns the connect-time command for a non-passthrough session, given the resolved real catalog the session defaults to
controlplane/session_search_path.go:29
↓ 3 callers
Function
encodeBytea
(v interface{})
server/types.go:516
↓ 3 callers
Function
encodeInt2
(v interface{})
server/types.go:321
↓ 3 callers
Function
encodeInterval
encodeInterval encodes an INTERVAL value in PostgreSQL binary format: int64 microseconds + int32 days + int32 months = 16 bytes.
server/types.go:612
↓ 3 callers
Function
encodeTime
encodeTime encodes a TIME value as int64 microseconds since midnight (PostgreSQL binary format). DuckDB Go driver returns TIME as time.Time with date
server/types.go:566
↓ 3 callers
Method
ensureDrainChannelLocked
()
duckdbservice/service.go:1421
↓ 3 callers
Function
errMsg
(e: unknown)
controlplane/admin/ui/src/pages/ConfigStore.tsx:227
↓ 3 callers
Function
escapeSQLStringLiteral
escapeSQLStringLiteral escapes a string for safe inclusion inside single quotes in a SQL statement.
server/ducklake/migration.go:442
↓ 3 callers
Function
escapeStringLiteral
escapeStringLiteral escapes single quotes for safe embedding in SQL string literals.
transpiler/show_create.go:220
↓ 3 callers
Method
exec
(ctx context.Context, query string, args ...any)
server/flightsqlingress/ingress.go:1219
↓ 3 callers
Method
execCompatibilityFallback
(query string, execErr error, exec execFallbackRunner)
server/exec_fallback.go:9
↓ 3 callers
Method
executeSingleStatement
executeSingleStatement transpiles and executes a single SQL statement, sending results to the client. Does NOT send ReadyForQuery (the caller is respo
server/conn_query_exec.go:372
↓ 3 callers
Function
extractDuckDBConnection
extractDuckDBConnection extracts the raw bindings.Connection handle from a *sql.Conn by reaching into the underlying duckdb driver's Conn struct via r
duckdbservice/progress.go:57
↓ 3 callers
Method
fetchMessage
(ctx context.Context)
server/querylog_kafka_writer.go:221
↓ 3 callers
Function
finalizeRunArtifacts
( ctx context.Context, publishCfg publisher.Config, runtimeContract datasets.RuntimeContract, outputDir st
tests/perf/harness_artifacts.go:26
↓ 3 callers
Method
findMessage
(message string)
controlplane/k8s_pool_test.go:51
↓ 3 callers
Function
findProjectRoot
(t *testing.T)
tests/configstore/helpers_test.go:104
↓ 3 callers
Function
flightAuthSessionKey
(ctx context.Context, username string)
server/flightsqlingress/ingress.go:2062
↓ 3 callers
Function
flightCtxWithSNI
flightCtxWithSNI builds a gRPC context carrying a TLS ServerName, exactly as the real Flight ingress sees it, so we exercise the real SNIFromContext →
controlplane/sni_kubernetes_test.go:372
↓ 3 callers
Method
flushBatchWithContext
(ctx context.Context, batch []QueryLogEntry)
server/querylog_kafka.go:226
↓ 3 callers
Method
flushPartitionWithRetry
(ctx context.Context, batches *queryLogKafkaPartitionBatches, partition int)
server/querylog_kafka_writer.go:316
↓ 3 callers
Function
fmtDur
(ms: number)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:276
↓ 3 callers
Function
frameTypes
(frames []wireFrame)
server/conn_skip_until_sync_test.go:146
↓ 3 callers
Function
fs
(state: string, count: number)
controlplane/admin/ui/src/pages/Overview.test.tsx:30
↓ 3 callers
Function
generateSessionIdentityToken
()
server/flightsqlingress/ingress.go:2075
↓ 3 callers
Function
generate_report
Generate the summary report. Returns (report_text, any_failures).
scripts/client-compat/results_gatherer.py:87
↓ 3 callers
Method
getCursorSchema
getCursorSchema opens the cursor if needed to retrieve column metadata, then returns the schema information. Used by handleDescribe for FETCH statemen
server/conn_cursor.go:123
↓ 3 callers
Method
getOpenTxn
(transactionID []byte)
server/flightsqlingress/ingress.go:1287
↓ 3 callers
Method
getOrCreateRecord
getOrCreateRecord gets or creates a record for an IP (must hold lock).
server/auth/ratelimit.go:233
↓ 3 callers
Method
getQuery
(handleID string)
server/flightsqlingress/ingress.go:1393
↓ 3 callers
Function
getQuerySchema
(ctx context.Context, session *flightClientSession, query string)
server/flightsqlingress/ingress.go:2083
↓ 3 callers
Function
get_conn
(**kwargs)
scripts/client-compat/clients/pgadmin/test_pgadmin.py:39
↓ 3 callers
Function
get_conn
()
scripts/client-compat/clients/harlequin/test_harlequin.py:26
↓ 3 callers
Method
grantWaitersLocked
()
controlplane/session_mgr.go:292
↓ 3 callers
Method
handleConnection
(conn net.Conn)
controlplane/control.go:807
↓ 3 callers
Method
handleCopy
handleCopy handles COPY TO STDOUT and COPY FROM STDIN commands
server/conn_copy.go:193
↓ 3 callers
Method
handleCopyInCSVWithBlob
handleCopyInCSVWithBlob handles COPY FROM STDIN for tables that contain BLOB columns. DuckDB's native CSV COPY cannot handle raw binary data in BLOB c
server/conn_copy.go:887
↓ 3 callers
Method
handleCopyOut
handleCopyOut handles COPY ... TO STDOUT
server/conn_copy.go:232
↓ 3 callers
Method
hasPending
()
server/querylog_kafka_writer.go:556
↓ 3 callers
Function
hasTrailingStatement
hasTrailingStatement reports whether query contains a top-level semicolon (outside string literals, quoted identifiers, and comments) followed by anyt
server/usersecrets/classify.go:213
↓ 3 callers
Function
initSearchPath
initSearchPath sets the DuckDB search_path for a session connection. It tries to include the user's schema first; if that schema doesn't exist, it fal
duckdbservice/service.go:1673
↓ 3 callers
Function
initUtilityMacros
initUtilityMacros creates duckgres-specific utility macros (uptime, version info). These are not PostgreSQL compatibility macros — they're useful for
server/catalog.go:1513
↓ 3 callers
Function
internalCompatRelationNamesSQL
()
server/sessionmeta/sessionmeta.go:220
↓ 3 callers
Function
invalidateUserLive
(qc: ReturnType<typeof useQueryClient>)
controlplane/admin/ui/src/hooks/useApi.ts:239
↓ 3 callers
Function
isAlterTableNotTableError
isAlterTableNotTableError checks if the error indicates that an ALTER TABLE was attempted on a view. DuckDB returns this error when trying to use ALTE
server/conn_errors.go:310
↓ 3 callers
Function
isDMLReturning
isDMLReturning reports whether query is a DML statement (INSERT/UPDATE/DELETE) with a RETURNING clause, or a writable CTE (WITH ... DML ... RETURNING)
server/conn.go:1795
↓ 3 callers
Method
isDisabled
(org, user string)
controlplane/admin/live_aggregate_test.go:89
↓ 3 callers
Function
isDuckLakeTransactionConflict
isDuckLakeTransactionConflict returns true if the error is a DuckLake transaction conflict. These occur when concurrent DuckLake transactions try to c
duckdbservice/transient.go:177
↓ 3 callers
Function
isEmptyQuery
isEmptyQuery and stripLeadingComments moved to server/sqlcore so the Flight client can call them without importing server. Local thin wrappers preserv
server/conn.go:1532
↓ 3 callers
Function
isIdentStart
isIdentStart reports whether b can begin an SQL identifier. Bytes >= 0x80 (multibyte/Unicode identifier characters) are permitted.
transpiler/longident.go:332
↓ 3 callers
Method
isIdleWorkerLocked
(w *ManagedWorker)
controlplane/k8s_pool_acquire.go:847
↓ 3 callers
Function
isMissingDuckLakePoolSettingError
(err error)
server/server.go:1445
↓ 3 callers
Function
isQueryCancelled
isQueryCancelled checks whether an error string indicates that *some* context cancellation was involved. It does NOT distinguish caller-driven cancell
server/conn_errors.go:17
↓ 3 callers
Function
isTransactionAborted
isTransactionAborted returns true if the error indicates DuckDB's connection is stuck in an aborted transaction state (requires ROLLBACK to recover).
server/server.go:2284
↓ 3 callers
Function
isTransientDuckLakeError
isTransientDuckLakeError returns true if the error message indicates a transient failure that is likely to succeed on retry. This covers DNS resolutio
server/transient.go:14
↓ 3 callers
Function
isTransientDuckLakeError
isTransientDuckLakeError returns true if the error message indicates a transient failure that is likely to succeed on retry. This covers DNS resolutio
duckdbservice/transient.go:78
↓ 3 callers
Function
isWithDML
isWithDML reports whether a query is a WITH (CTE) whose outer statement is DML (INSERT/UPDATE/DELETE). Such queries don't return results (unless they
server/conn.go:1813
↓ 3 callers
Function
isWorkerSessionCapError
isWorkerSessionCapError reports whether err is a worker's rejection of a new session because it already holds its configured maximum (MaxSessions). Th
controlplane/session_mgr.go:461
↓ 3 callers
Function
is_runner_file
(path: str)
scripts/test_impact_plan.py:109
↓ 3 callers
Function
jsonTypeEquals
jsonTypeEquals builds `json_type(<operand clone>) = '<typ>'`.
transpiler/transform/operators.go:825
↓ 3 callers
Method
leastLoadedWorkerLocked
leastLoadedWorkerLocked returns the live worker with the fewest active sessions, or nil if all workers are dead. Caller must hold p.mu.
controlplane/worker_mgr.go:881
↓ 3 callers
Function
loadConfigStoreForeignKeys
(t *testing.T, db *sql.DB)
tests/configstore/migrations_postgres_test.go:724
↓ 3 callers
Function
loadConfigStorePrimaryKeys
(t *testing.T, db *sql.DB)
tests/configstore/migrations_postgres_test.go:621
↓ 3 callers
Function
loadExtensionsWith
loadExtensionsWith is LoadExtensions over a duckLakeSQLExecer so the catalog-attachment paths can run INSTALL/LOAD under per-step deadlines via attach
server/server.go:1374
↓ 3 callers
Method
lockOrgConnectionRequest
(tx *gorm.DB, queueTable, requestID string)
controlplane/configstore/org_connections.go:208
↓ 3 callers
Function
logEvent
(action: string, text: string, kind: string | null, cls?: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:313
↓ 3 callers
Method
loop
()
server/checkpoint.go:119
↓ 3 callers
Function
managedWarehouseUpsertColumns
()
controlplane/admin/api.go:405
↓ 3 callers
Method
markError
(err error)
server/query_metrics.go:61
↓ 3 callers
Method
markWorkerLostForHealthLease
(lease workerLeaseSnapshot, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:1030
↓ 3 callers
Method
mergedContext
mergedContext returns a context that is cancelled when either the caller's context or the executor's base context is done. This ensures gRPC calls are
server/flightclient/flight_executor.go:313
↓ 3 callers
Function
metadataRouter
(lister DucklingMetadataLister)
controlplane/admin/ducklings_metadata_test.go:50
← previous
next →
1,101–1,200 of 5,901, ranked by callers