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

Method exec

server/conn_skip_until_sync_test.go:38–46  ·  view source on GitHub ↗
(query string)

Source from the content-addressed store, hash-verified

36}
37
38func (e *pipelineRecordingExecutor) exec(query string) (ExecResult, error) {
39 query = strings.TrimSpace(query)
40 if strings.HasPrefix(strings.ToUpper(query), "EXPLAIN") {
41 // validateWithDuckDB probe for SQL pg_query couldn't parse.
42 return nil, errors.New("Parser Error: syntax error at or near \"SELEC\"")
43 }
44 e.execCalls = append(e.execCalls, query)
45 return &fakeExecResult{}, nil
46}
47
48func (e *pipelineRecordingExecutor) QueryContext(context.Context, string, ...any) (RowSet, error) {
49 return nil, errors.New("Parser Error: syntax error at or near \"SELEC\"")

Callers 2

ExecContextMethod · 0.95
ExecMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected