MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Encode

Method Encode

IceFireDB-SQLite/pkg/mysql/mysql/mariadb_gtid.go:171–181  ·  view source on GitHub ↗

Encode encodes mariadb gtid set

()

Source from the content-addressed store, hash-verified

169
170// Encode encodes mariadb gtid set
171func (s *MariadbGTIDSet) Encode() []byte {
172 var buf bytes.Buffer
173 sep := ""
174 for _, gtid := range s.Sets {
175 buf.WriteString(sep)
176 buf.WriteString(gtid.String())
177 sep = ","
178 }
179
180 return buf.Bytes()
181}
182
183// Clone clones a mariadb gtid set
184func (s *MariadbGTIDSet) Clone() GTIDSet {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
BytesMethod · 0.45

Tested by

no test coverage detected