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
Function
TestConnDetailByPID
TestConnDetailByPID covers the admin live-query detail snapshot: registry lookup, the (load-bearing) redaction guarantee, and state derivation.
server/conn_detail_test.go:57
Function
TestConnSummariesByWorkerID
TestConnSummariesByWorkerID covers the live-list state snapshot: an active session reports "active" + a query-start; an idle-in-transaction session re
server/conn_detail_test.go:14
Function
TestConnectionConfigDSNDefaultsDatabaseAndEscapesPassword
(t *testing.T)
tests/scenario/sql/connection_test.go:56
Function
TestConnectionConfigDSNRejectsSuffixWithoutLeadingDot
(t *testing.T)
tests/scenario/sql/connection_test.go:75
Function
TestConnectionConfigDSNRequiresSNIFields
(t *testing.T)
tests/scenario/sql/connection_test.go:42
Function
TestConnectionConfigDSNUsesSNIHostAndTCPHostAddr
(t *testing.T)
tests/scenario/sql/connection_test.go:8
Function
TestConnectionParameters
TestConnectionParameters tests different connection string options.
tests/integration/edge_cases_test.go:1008
Function
TestConnectionRegistry
(t *testing.T)
server/conn_test.go:3853
Function
TestConnectionRegistryOverwrite
(t *testing.T)
server/conn_test.go:3908
Function
TestContainsPersistentSecretDDL
(t *testing.T)
server/usersecrets/redact_test.go:158
Function
TestContainsReturning
TestContainsReturning tests the low-level scanner directly. Input must be pre-uppercased (matching how callers invoke it).
server/conn_test.go:1031
Function
TestContainsReturningAnyDepth
(t *testing.T)
server/conn_test.go:1141
Function
TestControlPlaneBasic
--------------------------------------------------------------------------- Tests --------------------------------------------------------------------
tests/controlplane/controlplane_test.go:326
Function
TestControlPlaneIDLabelValue_StaysKubernetesSafe
(t *testing.T)
controlplane/k8s_pool_test.go:3115
Function
TestControlPlaneJanitorHotIdleGoesThroughLifecycleWhenWired
(t *testing.T)
controlplane/janitor_test.go:285
Function
TestControlPlaneJanitorOrphanGoesThroughLifecycleWhenWired
(t *testing.T)
controlplane/janitor_test.go:364
Function
TestControlPlaneJanitorRunExpiresStaleInstances
(t *testing.T)
controlplane/janitor_test.go:120
Function
TestControlPlaneJanitorRunInvokesOnStop
(t *testing.T)
controlplane/janitor_test.go:151
Function
TestControlPlaneJanitorRunInvokesReconcilerAfterVersionReaper
(t *testing.T)
controlplane/janitor_test.go:423
Function
TestControlPlaneJanitorRunInvokesStrandedPodReconciler
(t *testing.T)
controlplane/janitor_test.go:399
Function
TestControlPlaneJanitorRunInvokesVersionReaperBeforeLifecycleObserve
(t *testing.T)
controlplane/janitor_test.go:454
Function
TestControlPlaneJanitorRunObservesWorkerLifecycle
(t *testing.T)
controlplane/janitor_test.go:227
Function
TestControlPlaneJanitorRunOnceContinuesAfterExpireError
(t *testing.T)
controlplane/janitor_test.go:482
Function
TestControlPlaneJanitorRunRetiresOrphanedAndStuckWorkers
(t *testing.T)
controlplane/janitor_test.go:180
Function
TestControlPlaneJanitorSkipsExpiredHotIdleWorkersProtectedByFloor
(t *testing.T)
controlplane/janitor_test.go:315
Function
TestControlPlaneJanitorSkipsHotIdlePodDeleteAfterLifecycleCASMiss
(t *testing.T)
controlplane/janitor_test.go:250
Function
TestControlPlaneManifestsExposeOptionalKafkaQueryLogEnv
(t *testing.T)
tests/manifests/manifests_test.go:135
Function
TestControlPlaneRBACDefinesSharedWorkerServiceAccount
(t *testing.T)
tests/manifests/manifests_test.go:42
Function
TestControlPlaneRBACIncludesLeaseAccess
(t *testing.T)
tests/manifests/manifests_test.go:17
Function
TestControlPlaneRBACIncludesSharedWorkerConfigMapRead
(t *testing.T)
tests/manifests/manifests_test.go:30
Function
TestControlPlaneRuntimeTrackerMarkDraining
(t *testing.T)
controlplane/runtime_tracker_test.go:75
Function
TestControlPlaneRuntimeTrackerStartHeartbeats
(t *testing.T)
controlplane/runtime_tracker_test.go:50
Function
TestControlPlaneWorkerAcquireAndSpawnMetrics
(t *testing.T)
controlplane/flight_ingress_metrics_test.go:10
Function
TestControlPlaneWorkerQueueDepthGauge
(t *testing.T)
controlplane/flight_ingress_metrics_test.go:28
Function
TestConvertAlterTableToAlterView
(t *testing.T)
transpiler/transpiler_test.go:2954
Function
TestConvertDropTableToDropView
(t *testing.T)
transpiler/transpiler_test.go:3033
Function
TestCopyBinaryRegex
(t *testing.T)
server/conn_test.go:2918
Function
TestCopyCommandTypeDetection
(t *testing.T)
server/conn_test.go:2769
Function
TestCopyFromStdin
TestCopyFromStdin tests COPY FROM STDIN functionality
tests/integration/copy_test.go:10
Function
TestCopyFromStdinMultilineJSON
TestCopyFromStdinMultilineJSON tests COPY with multi-line JSON Note: Due to using DuckDB's CSV parser (not PostgreSQL's text format parser), escape se
tests/integration/copy_test.go:270
Function
TestCopyFromStdinRegex
(t *testing.T)
server/conn_test.go:2103
Function
TestCopyFromStdinStreamsBytesAndDescriptor
(t *testing.T)
server/flightclient/copyfromstdin_test.go:59
Function
TestCopyFromStdinWithSpecialChars
TestCopyFromStdinWithSpecialChars tests COPY with special characters
tests/integration/copy_test.go:200
Function
TestCopyOptionRegexes
(t *testing.T)
server/conn_test.go:2185
Function
TestCopyStreamReArmsIdleDeadline
TestCopyStreamReArmsIdleDeadline proves the COPY-FROM-STDIN forwarding reader (copyDataWireReader) re-arms the connection idle read deadline on EVERY
server/conn_idle_test.go:65
Function
TestCopyToStdout
TestCopyToStdout tests COPY TO STDOUT functionality Note: lib/pq's Query() doesn't support COPY TO STDOUT directly because the COPY protocol uses diff
tests/integration/copy_test.go:328
Function
TestCopyToStdoutRegex
(t *testing.T)
server/conn_test.go:1997
Function
TestCountDollarParams
(t *testing.T)
server/conn_test.go:3753
Function
TestCountHotIdleWorkersPostgresFiltersCompatibleWorkers
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:303
Function
TestCountParameters
(t *testing.T)
transpiler/transpiler_test.go:2712
Function
TestCountParametersRegex
(t *testing.T)
transpiler/transpiler_test.go:46
Function
TestCrashRemovesWorkerFromPool
(t *testing.T)
controlplane/worker_mgr_process_test.go:573
Function
TestCreateOrgAcceptsDefaultWorkerMinHotIdle
(t *testing.T)
controlplane/admin/api_test.go:1890
Function
TestCreateOrgAcceptsDefaultWorkerProfile
(t *testing.T)
controlplane/admin/api_test.go:1870
Function
TestCreateOrgAcceptsLongValidHostnameAlias
(t *testing.T)
controlplane/admin/api_test.go:1482
Function
TestCreateOrgEmptyHostnameAliasIsTreatedAsNone
(t *testing.T)
controlplane/admin/api_test.go:1399
Function
TestCreateOrgPersistsHostnameAlias
(t *testing.T)
controlplane/admin/api_test.go:1377
Function
TestCreateOrgRejectsHostnameAliasOver63Chars
(t *testing.T)
controlplane/admin/api_test.go:1499
Function
TestCreateOrgRejectsInvalidDefaultWorkerTTL
(t *testing.T)
controlplane/admin/api_test.go:1908
Function
TestCreateOrgRejectsInvalidHostnameAlias
(t *testing.T)
controlplane/admin/api_test.go:1446
Function
TestCreateOrgRejectsNestedWarehousePayload
(t *testing.T)
controlplane/admin/api_test.go:1065
Function
TestCreateSessionAcceptsMismatchedEpochInSharedWarmMode
(t *testing.T)
duckdbservice/flight_handler_test.go:710
Function
TestCreateSessionDefaultsToAttachedDuckLakeCatalog
(t *testing.T)
duckdbservice/service_test.go:214
Function
TestCreateSessionObservesWorkerCapacityExhaustion
(t *testing.T)
controlplane/session_mgr_test.go:61
Function
TestCreateSessionRejectsSecondSessionWhenMaxIsOne
With MaxSessions=1 (how the control plane spawns remote worker pods), a worker serves exactly one client query session — a second concurrent CreateSes
duckdbservice/service_test.go:84
Function
TestCreateSessionRejectsWhileDraining
(t *testing.T)
duckdbservice/flight_handler_test.go:449
Function
TestCreateSessionRequiresActivationForSharedWarmMode
(t *testing.T)
duckdbservice/flight_handler_test.go:628
Function
TestCreateSessionSendFailureDestroysSession
(t *testing.T)
duckdbservice/flight_handler_test.go:594
Function
TestCreateSessionWithRegisteredCancel_CancelQueryCancelsWait
(t *testing.T)
controlplane/control_cancel_test.go:16
Function
TestCreateSpawningWorkerSlotConcurrentCrossOrgUniqueIDs
Regression: concurrent CreateSpawningWorkerSlot calls for DIFFERENT orgs must never allocate the same worker_id. The old SELECT MAX(worker_id)+1 alloc
tests/configstore/runtime_store_postgres_test.go:981
Function
TestCreateSpawningWorkerSlotIgnoresIncompatibleHotIdleForOrgCapPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:1056
Function
TestCreateSpawningWorkerSlotPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:933
Function
TestCreateSpawningWorkerSlotRespectsOrgCap
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:1031
Function
TestCreateUserAcceptsMaxVCPUs
(t *testing.T)
controlplane/admin/api_test.go:309
Function
TestCreateUserIgnoresRemovedDefaultCatalogField
(t *testing.T)
controlplane/admin/api_test.go:280
Function
TestCreateUserRejectsNegativeMaxVCPUs
(t *testing.T)
controlplane/admin/api_test.go:336
Function
TestCredentialRefreshSchedulerRunStopsOnContextCancel
TestCredentialRefreshSchedulerRunStopsOnContextCancel confirms ctx cancellation actually unblocks Run — required so SetupMultiTenant doesn't leak the
controlplane/credential_refresh_scheduler_test.go:173
Function
TestCredentialRefreshSchedulerTickContinuesAfterRefreshError
TestCredentialRefreshSchedulerTickContinuesAfterRefreshError makes sure a refresh failure for one worker does not abort the rest of the batch — each w
controlplane/credential_refresh_scheduler_test.go:118
Function
TestCredentialRefreshSchedulerTickHandlesListError
TestCredentialRefreshSchedulerTickHandlesListError ensures a transient DB error doesn't crash the scheduler — the next tick will retry.
controlplane/credential_refresh_scheduler_test.go:156
Function
TestCredentialRefreshSchedulerTickRefreshesDueWorkers
TestCredentialRefreshSchedulerTickRefreshesDueWorkers proves the scheduler looks each due worker up in the local pool and fires the refresh hook for e
controlplane/credential_refresh_scheduler_test.go:41
Function
TestCredentialRefreshSchedulerTickSkipsMissingFromPool
TestCredentialRefreshSchedulerTickSkipsMissingFromPool ensures workers we no longer hold in the in-memory pool are silently skipped — we'll catch them
controlplane/credential_refresh_scheduler_test.go:91
Function
TestCursorCloseAllCursors
(t *testing.T)
server/conn_test.go:3581
Function
TestCursorCloseNonexistent
(t *testing.T)
server/conn_test.go:3622
Function
TestCursorCloseSingle
(t *testing.T)
server/conn_test.go:3601
Function
TestCursorExtendedQuery
TestCursorExtendedQuery exercises the extended-query-protocol cursor path (cursorOpDeclare/cursorOpFetch/cursorOpClose) with pgx.
tests/integration/cursor_test.go:255
Function
TestCursorPostgresParity
TestCursorPostgresParity runs the shared cursor flows against the comparison PostgreSQL 16 instance, keeping the expectations in the flows differentia
tests/integration/cursor_test.go:219
Function
TestCursorSimpleQuery
TestCursorSimpleQuery exercises the simple-query-protocol cursor path against Duckgres.
tests/integration/cursor_test.go:191
Function
TestCustomMacrosCoverCatalogMacros
TestCustomMacrosCoverCatalogMacros cross-checks CustomMacros against the macros actually registered in server/catalog.go so the next macro added there
transpiler/transform/wiring_walk_test.go:93
Function
TestDBeaverQueries
TestDBeaverQueries tests queries commonly issued by DBeaver
tests/integration/clients/clients_test.go:296
Function
TestDDLAlterTable
TestDDLAlterTable tests ALTER TABLE variations
tests/integration/ddl_test.go:105
Function
TestDDLComment
TestDDLComment tests COMMENT ON
tests/integration/ddl_test.go:334
Function
TestDDLConstraints
TestDDLConstraints tests constraint-related DDL
tests/integration/ddl_test.go:357
Function
TestDDLCreateTable
TestDDLCreateTable tests CREATE TABLE variations
tests/integration/ddl_test.go:8
Function
TestDDLDropTable
TestDDLDropTable tests DROP TABLE variations
tests/integration/ddl_test.go:156
Function
TestDDLIndexes
TestDDLIndexes tests CREATE/DROP INDEX (may be no-ops)
tests/integration/ddl_test.go:229
Function
TestDDLSchemas
TestDDLSchemas tests CREATE/DROP SCHEMA
tests/integration/ddl_test.go:267
Function
TestDDLTruncate
TestDDLTruncate tests TRUNCATE
tests/integration/ddl_test.go:299
Function
TestDDLViews
TestDDLViews tests CREATE/DROP VIEW
tests/integration/ddl_test.go:188
Function
TestDDL_AlterAddColumnSilentNullStripped
(t *testing.T)
transpiler/transform/ddl_test.go:167
Function
TestDDL_AlterColumnTypeUsingRejected
(t *testing.T)
transpiler/transform/ddl_test.go:190
← previous
next →
4,001–4,100 of 5,901, ranked by callers