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