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

Function TestSessionShowCommands

tests/integration/session_test.go:160–204  ·  view source on GitHub ↗

TestSessionShowCommands tests SHOW command handling

(t *testing.T)

Source from the content-addressed store, hash-verified

158
159// TestSessionShowCommands tests SHOW command handling
160func TestSessionShowCommands(t *testing.T) {
161 tests := []QueryTest{
162 {
163 Name: "show_search_path",
164 Query: "SHOW search_path",
165 DuckgresOnly: true,
166 },
167 {
168 Name: "show_client_encoding",
169 Query: "SHOW client_encoding",
170 DuckgresOnly: true,
171 },
172 {
173 Name: "show_timezone",
174 Query: "SHOW timezone",
175 DuckgresOnly: true,
176 },
177 {
178 Name: "show_datestyle",
179 Query: "SHOW datestyle",
180 DuckgresOnly: true,
181 },
182 {
183 Name: "show_server_version",
184 Query: "SHOW server_version",
185 DuckgresOnly: true,
186 },
187 {
188 Name: "show_server_encoding",
189 Query: "SHOW server_encoding",
190 DuckgresOnly: true,
191 },
192 {
193 Name: "show_standard_conforming_strings",
194 Query: "SHOW standard_conforming_strings",
195 DuckgresOnly: true,
196 },
197 {
198 Name: "show_transaction_isolation",
199 Query: "SHOW transaction_isolation",
200 DuckgresOnly: true,
201 },
202 }
203 runQueryTests(t, tests)
204}
205
206// TestSessionTransactionCommands tests transaction control commands
207func TestSessionTransactionCommands(t *testing.T) {

Callers

nothing calls this directly

Calls 1

runQueryTestsFunction · 0.85

Tested by

no test coverage detected