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

Method writeEOF

IceFireDB-SQLite/pkg/mysql/server/resp.go:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (c *Conn) writeEOF() error {
70 data := make([]byte, 4, 9)
71
72 data = append(data, EOF_HEADER)
73 if c.capability&CLIENT_PROTOCOL_41 > 0 {
74 data = append(data, byte(c.warnings), byte(c.warnings>>8))
75 data = append(data, byte(c.status), byte(c.status>>8))
76 }
77
78 return c.WritePacket(data)
79}
80
81// see: https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_connection_phase_packets_protocol_auth_switch_request.html
82func (c *Conn) writeAuthSwitchRequest(newAuthPluginName string) error {

Callers 4

writeResultsetMethod · 0.95
writeFieldListMethod · 0.95
WriteValueMethod · 0.95
writePrepareMethod · 0.95

Calls 1

WritePacketMethod · 0.95

Tested by

no test coverage detected