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

Method Ping

IceFireDB-SQLProxy/pkg/mysql/client/conn.go:116–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func (c *Conn) Ping() error {
117 if err := c.writeCommand(COM_PING); err != nil {
118 return errors.Trace(err)
119 }
120
121 if _, err := c.readOK(); err != nil {
122 return errors.Trace(err)
123 }
124
125 return nil
126}
127
128// SetCapability enables the use of a specific capability
129func (c *Conn) SetCapability(cap uint32) {

Callers 2

popConnMethod · 0.95
pingMethod · 0.45

Calls 2

writeCommandMethod · 0.95
readOKMethod · 0.95

Tested by

no test coverage detected