MCPcopy Create free account
hub / github.com/actiontech/dtle / MarshalJSON

Method MarshalJSON

driver/mysql/sql/sqlutils.go:55–62  ·  view source on GitHub ↗

MarshalJSON will marshal this map as JSON

()

Source from the content-addressed store, hash-verified

53
54// MarshalJSON will marshal this map as JSON
55func (this *RowData) MarshalJSON() ([]byte, error) {
56 cells := make([](*CellData), len(*this), len(*this))
57 for i, val := range *this {
58 d := CellData(val)
59 cells[i] = &d
60 }
61 return json.Marshal(cells)
62}
63
64// ResultData is an ordered row set of RowData
65type ResultData []RowData

Callers

nothing calls this directly

Calls 2

CellDataTypeAlias · 0.85
MarshalMethod · 0.65

Tested by

no test coverage detected