MCPcopy Index your code
hub / github.com/bytebase/bytebase / FormatErrorWithQuery

Function FormatErrorWithQuery

backend/plugin/db/util/driverutil.go:24–26  ·  view source on GitHub ↗

FormatErrorWithQuery will format the error with failed query.

(err error, query string)

Source from the content-addressed store, hash-verified

22
23// FormatErrorWithQuery will format the error with failed query.
24func FormatErrorWithQuery(err error, query string) error {
25 return errors.Wrapf(err, "failed to execute query %q", query)
26}
27
28func BuildAffectedRowsResult(affectedRows int64, messages []*v1pb.QueryResult_Message) *v1pb.QueryResult {
29 return &v1pb.QueryResult{

Callers 15

SyncInstanceMethod · 0.92
getDBLinksFunction · 0.92
getSchemasFunction · 0.92
getTriggersFunction · 0.92
getTablesFunction · 0.92
getTableCommentsFunction · 0.92
getTableColumnCommentsFunction · 0.92
getTableColumnsFunction · 0.92
getOuterSchemaRColumnsFunction · 0.92
getConstraintsFunction · 0.92
getIndexesAndConstraintsFunction · 0.92
getViewsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected