MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 3 callersMethodcallCount
()
controlplane/admin/live_aggregate_test.go:122
↓ 3 callersMethodcalls
()
server/server_test.go:62
↓ 3 callersFunctioncapacityMissPolicyForReason
(reason configstore.WorkerClaimMissReason)
controlplane/capacity_policy.go:24
↓ 3 callersFunctioncapacityRetrySeconds
(retryAfter time.Duration)
controlplane/capacity_policy.go:73
↓ 3 callersMethodcleanDeadWorkersLocked
()
controlplane/k8s_pool_lifecycle.go:909
↓ 3 callersFunctioncleanupWorkerCatalogs
cleanupWorkerCatalogs detaches the lake catalogs that are actually attached on db before shutdown. Probing duckdb_databases() avoids spurious "failed
duckdbservice/service.go:1542
↓ 3 callersMethodcloseAllPrebound
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 callersFunctionclusterListError
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 callersFunctionconnDurationSample
(t *testing.T, org string)
server/observe/metrics_test.go:9
↓ 3 callersFunctioncontainsReturning
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 callersFunctioncontainsString
(values []string, want string)
tests/integration/composefile/compose_test.go:93
↓ 3 callersFunctioncontrolPlaneIDLabelValue
(cpInstanceID string)
controlplane/k8s_pool_spawn.go:378
↓ 3 callersFunctioncountParametersRegex
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 callersMethodcreateJsonExtractFuncCall
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 callersFunctioncreateS3SecretWith
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 callersMethodcurrentSessionConfig
()
duckdbservice/activation.go:340
↓ 3 callersFunctiondecodeBool
(data []byte)
server/types.go:913
↓ 3 callersFunctiondecodeDate
(data []byte)
server/types.go:957
↓ 3 callersFunctiondecodeInt2
(data []byte)
server/types.go:920
↓ 3 callersFunctiondecodeInt4
(data []byte)
server/types.go:927
↓ 3 callersFunctiondecodeInt8
(data []byte)
server/types.go:934
↓ 3 callersFunctiondedupeBy
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 callersMethoddeleteTXTRecord
(ctx context.Context, name, value string)
server/tlscert/acme_dns.go:411
↓ 3 callersFunctiondeparseInnerQuery
--- Server-side cursor emulation --- deparseInnerQuery deparses a pg_query Node back to SQL text.
server/conn_cursor.go:18
↓ 3 callersMethoddoActivateTenant
(body []byte, stream flight.FlightService_DoActionServer)
duckdbservice/flight_handler.go:265
↓ 3 callersMethoddoJSON
(ctx context.Context, method, path string, body any, out any, expectedStatus int)
tests/scenario/provision/client.go:136
↓ 3 callersFunctiondockerComposeCommand
(composeFile string, command string, args ...string)
tests/integration/harness.go:654
↓ 3 callersMethoddropLocalWorkerIfSameLeaseLocked
(lease workerLeaseSnapshot)
controlplane/k8s_pool_lifecycle.go:1319
↓ 3 callersFunctioneffectiveSessionDefaultCommand
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 callersFunctionencodeBytea
(v interface{})
server/types.go:516
↓ 3 callersFunctionencodeInt2
(v interface{})
server/types.go:321
↓ 3 callersFunctionencodeInterval
encodeInterval encodes an INTERVAL value in PostgreSQL binary format: int64 microseconds + int32 days + int32 months = 16 bytes.
server/types.go:612
↓ 3 callersFunctionencodeTime
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 callersMethodensureDrainChannelLocked
()
duckdbservice/service.go:1421
↓ 3 callersFunctionerrMsg
(e: unknown)
controlplane/admin/ui/src/pages/ConfigStore.tsx:227
↓ 3 callersFunctionescapeSQLStringLiteral
escapeSQLStringLiteral escapes a string for safe inclusion inside single quotes in a SQL statement.
server/ducklake/migration.go:442
↓ 3 callersFunctionescapeStringLiteral
escapeStringLiteral escapes single quotes for safe embedding in SQL string literals.
transpiler/show_create.go:220
↓ 3 callersMethodexec
(ctx context.Context, query string, args ...any)
server/flightsqlingress/ingress.go:1219
↓ 3 callersMethodexecCompatibilityFallback
(query string, execErr error, exec execFallbackRunner)
server/exec_fallback.go:9
↓ 3 callersMethodexecuteSingleStatement
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 callersFunctionextractDuckDBConnection
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 callersMethodfetchMessage
(ctx context.Context)
server/querylog_kafka_writer.go:221
↓ 3 callersFunctionfinalizeRunArtifacts
( ctx context.Context, publishCfg publisher.Config, runtimeContract datasets.RuntimeContract, outputDir st
tests/perf/harness_artifacts.go:26
↓ 3 callersMethodfindMessage
(message string)
controlplane/k8s_pool_test.go:51
↓ 3 callersFunctionfindProjectRoot
(t *testing.T)
tests/configstore/helpers_test.go:104
↓ 3 callersFunctionflightAuthSessionKey
(ctx context.Context, username string)
server/flightsqlingress/ingress.go:2062
↓ 3 callersFunctionflightCtxWithSNI
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 callersMethodflushBatchWithContext
(ctx context.Context, batch []QueryLogEntry)
server/querylog_kafka.go:226
↓ 3 callersMethodflushPartitionWithRetry
(ctx context.Context, batches *queryLogKafkaPartitionBatches, partition int)
server/querylog_kafka_writer.go:316
↓ 3 callersFunctionfmtDur
(ms: number)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:276
↓ 3 callersFunctionframeTypes
(frames []wireFrame)
server/conn_skip_until_sync_test.go:146
↓ 3 callersFunctionfs
(state: string, count: number)
controlplane/admin/ui/src/pages/Overview.test.tsx:30
↓ 3 callersFunctiongenerateSessionIdentityToken
()
server/flightsqlingress/ingress.go:2075
↓ 3 callersFunctiongenerate_report
Generate the summary report. Returns (report_text, any_failures).
scripts/client-compat/results_gatherer.py:87
↓ 3 callersMethodgetCursorSchema
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 callersMethodgetOpenTxn
(transactionID []byte)
server/flightsqlingress/ingress.go:1287
↓ 3 callersMethodgetOrCreateRecord
getOrCreateRecord gets or creates a record for an IP (must hold lock).
server/auth/ratelimit.go:233
↓ 3 callersMethodgetQuery
(handleID string)
server/flightsqlingress/ingress.go:1393
↓ 3 callersFunctiongetQuerySchema
(ctx context.Context, session *flightClientSession, query string)
server/flightsqlingress/ingress.go:2083
↓ 3 callersFunctionget_conn
(**kwargs)
scripts/client-compat/clients/pgadmin/test_pgadmin.py:39
↓ 3 callersFunctionget_conn
()
scripts/client-compat/clients/harlequin/test_harlequin.py:26
↓ 3 callersMethodgrantWaitersLocked
()
controlplane/session_mgr.go:292
↓ 3 callersMethodhandleConnection
(conn net.Conn)
controlplane/control.go:807
↓ 3 callersMethodhandleCopy
handleCopy handles COPY TO STDOUT and COPY FROM STDIN commands
server/conn_copy.go:193
↓ 3 callersMethodhandleCopyInCSVWithBlob
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 callersMethodhandleCopyOut
handleCopyOut handles COPY ... TO STDOUT
server/conn_copy.go:232
↓ 3 callersMethodhasPending
()
server/querylog_kafka_writer.go:556
↓ 3 callersFunctionhasTrailingStatement
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 callersFunctioninitSearchPath
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 callersFunctioninitUtilityMacros
initUtilityMacros creates duckgres-specific utility macros (uptime, version info). These are not PostgreSQL compatibility macros — they're useful for
server/catalog.go:1513
↓ 3 callersFunctioninternalCompatRelationNamesSQL
()
server/sessionmeta/sessionmeta.go:220
↓ 3 callersFunctioninvalidateUserLive
(qc: ReturnType<typeof useQueryClient>)
controlplane/admin/ui/src/hooks/useApi.ts:239
↓ 3 callersFunctionisAlterTableNotTableError
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 callersFunctionisDMLReturning
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 callersMethodisDisabled
(org, user string)
controlplane/admin/live_aggregate_test.go:89
↓ 3 callersFunctionisDuckLakeTransactionConflict
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 callersFunctionisEmptyQuery
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 callersFunctionisIdentStart
isIdentStart reports whether b can begin an SQL identifier. Bytes >= 0x80 (multibyte/Unicode identifier characters) are permitted.
transpiler/longident.go:332
↓ 3 callersMethodisIdleWorkerLocked
(w *ManagedWorker)
controlplane/k8s_pool_acquire.go:847
↓ 3 callersFunctionisMissingDuckLakePoolSettingError
(err error)
server/server.go:1445
↓ 3 callersFunctionisQueryCancelled
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 callersFunctionisTransactionAborted
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 callersFunctionisTransientDuckLakeError
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 callersFunctionisTransientDuckLakeError
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 callersFunctionisWithDML
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 callersFunctionisWorkerSessionCapError
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 callersFunctionis_runner_file
(path: str)
scripts/test_impact_plan.py:109
↓ 3 callersFunctionjsonTypeEquals
jsonTypeEquals builds `json_type(<operand clone>) = '<typ>'`.
transpiler/transform/operators.go:825
↓ 3 callersMethodleastLoadedWorkerLocked
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 callersFunctionloadConfigStoreForeignKeys
(t *testing.T, db *sql.DB)
tests/configstore/migrations_postgres_test.go:724
↓ 3 callersFunctionloadConfigStorePrimaryKeys
(t *testing.T, db *sql.DB)
tests/configstore/migrations_postgres_test.go:621
↓ 3 callersFunctionloadExtensionsWith
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 callersMethodlockOrgConnectionRequest
(tx *gorm.DB, queueTable, requestID string)
controlplane/configstore/org_connections.go:208
↓ 3 callersFunctionlogEvent
(action: string, text: string, kind: string | null, cls?: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:313
↓ 3 callersMethodloop
()
server/checkpoint.go:119
↓ 3 callersFunctionmanagedWarehouseUpsertColumns
()
controlplane/admin/api.go:405
↓ 3 callersMethodmarkError
(err error)
server/query_metrics.go:61
↓ 3 callersMethodmarkWorkerLostForHealthLease
(lease workerLeaseSnapshot, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:1030
↓ 3 callersMethodmergedContext
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 callersFunctionmetadataRouter
(lister DucklingMetadataLister)
controlplane/admin/ducklings_metadata_test.go:50
← previousnext →1,101–1,200 of 5,901, ranked by callers