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

Method writeCommand

IceFireDB-SQLite/pkg/mysql/client/req.go:7–17  ·  view source on GitHub ↗
(command byte)

Source from the content-addressed store, hash-verified

5)
6
7func (c *Conn) writeCommand(command byte) error {
8 c.ResetSequence()
9
10 return c.WritePacket([]byte{
11 0x01, // 1 bytes long
12 0x00,
13 0x00,
14 0x00, // sequence
15 command,
16 })
17}
18
19func (c *Conn) writeCommandBuf(command byte, arg []byte) error {
20 c.ResetSequence()

Callers 1

PingMethod · 0.95

Calls 2

ResetSequenceMethod · 0.95
WritePacketMethod · 0.95

Tested by

no test coverage detected