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

Function BuildAffectedRowsResult

backend/plugin/db/util/driverutil.go:28–45  ·  view source on GitHub ↗
(affectedRows int64, messages []*v1pb.QueryResult_Message)

Source from the content-addressed store, hash-verified

26}
27
28func BuildAffectedRowsResult(affectedRows int64, messages []*v1pb.QueryResult_Message) *v1pb.QueryResult {
29 return &v1pb.QueryResult{
30 ColumnNames: []string{"Affected Rows"},
31 ColumnTypeNames: []string{"INT"},
32 Rows: []*v1pb.QueryRow{
33 {
34 Values: []*v1pb.RowValue{
35 {
36 Kind: &v1pb.RowValue_Int64Value{
37 Int64Value: affectedRows,
38 },
39 },
40 },
41 },
42 },
43 Messages: messages,
44 }
45}
46
47var NullRowValue = &v1pb.RowValue{
48 Kind: &v1pb.RowValue_NullValue{

Callers 13

QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
queryBatchMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected