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

Function EncodeTable

driver/common/common.go:82–88  ·  view source on GitHub ↗
(v *Table)

Source from the content-addressed store, hash-verified

80}
81
82func EncodeTable(v *Table) ([]byte, error) {
83 b := new(bytes.Buffer)
84 if err := gob.NewEncoder(b).Encode(v); err != nil {
85 return nil, err
86 }
87 return b.Bytes(), nil
88}
89func Compress(bs []byte) (outBs []byte, err error) {
90 var buf bytes.Buffer
91 w, _ := compress.NewWriterLevel(&buf, compress.BestSpeed)

Callers 3

mysqlDumpMethod · 0.92
handleQueryEventMethod · 0.92
handleRowsEventMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected