MCPcopy Create free account
hub / github.com/adlio/schema / BadQueryer

Struct BadQueryer

errors_test.go:27–27  ·  view source on GitHub ↗

BadQueryer implements the Connection interface, but fails on every call to Exec or Query. The error message will include the SQL statement to help verify the "right" failure occurred.

Source from the content-addressed store, hash-verified

25// Exec or Query. The error message will include the SQL statement to help
26// verify the "right" failure occurred.
27type BadQueryer struct{}
28
29func (bq BadQueryer) ExecContext(ctx context.Context, sql string, args ...interface{}) (sql.Result, error) {
30 return nil, fmt.Errorf("FAIL: %s", strings.TrimSpace(sql))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected