MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestFallbackExtensionCommands

Function TestFallbackExtensionCommands

tests/integration/fallback_test.go:104–115  ·  view source on GitHub ↗

TestFallbackExtensionCommands tests DuckDB extension management commands that aren't valid PostgreSQL syntax.

(t *testing.T)

Source from the content-addressed store, hash-verified

102// TestFallbackExtensionCommands tests DuckDB extension management commands
103// that aren't valid PostgreSQL syntax.
104func TestFallbackExtensionCommands(t *testing.T) {
105 tests := []QueryTest{
106 // Note: INSTALL and LOAD may fail if extension isn't available,
107 // but the point is that the syntax is accepted and passed to DuckDB
108 {
109 Name: "select_installed_extensions",
110 Query: "SELECT extension_name, installed FROM duckdb_extensions() WHERE installed = true LIMIT 5",
111 DuckgresOnly: true,
112 },
113 }
114 runQueryTests(t, tests)
115}
116
117// TestFallbackComplexDuckDBSyntax tests more complex DuckDB-specific syntax
118func TestFallbackComplexDuckDBSyntax(t *testing.T) {

Callers

nothing calls this directly

Calls 1

runQueryTestsFunction · 0.85

Tested by

no test coverage detected