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

Method writeCommandStrStr

IceFireDB-SQLProxy/pkg/mysql/client/req.go:57–68  ·  view source on GitHub ↗
(command byte, arg1 string, arg2 string)

Source from the content-addressed store, hash-verified

55}
56
57func (c *Conn) writeCommandStrStr(command byte, arg1 string, arg2 string) error {
58 c.ResetSequence()
59
60 data := make([]byte, 4, 6+len(arg1)+len(arg2))
61
62 data = append(data, command)
63 data = append(data, arg1...)
64 data = append(data, 0)
65 data = append(data, arg2...)
66
67 return c.WritePacket(data)
68}

Callers 1

FieldListMethod · 0.95

Calls 2

ResetSequenceMethod · 0.95
WritePacketMethod · 0.95

Tested by

no test coverage detected