MCPcopy
hub / github.com/go-sql-driver/mysql / Close

Method Close

connection.go:159–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157}
158
159func (mc *mysqlConn) Close() (err error) {
160 // Makes Close idempotent
161 if !mc.closed.Load() {
162 err = mc.writeCommandPacket(comQuit)
163 }
164 mc.close()
165 return
166}
167
168// close closes the network connection and clear results without sending COM_QUIT.
169func (mc *mysqlConn) close() {

Callers 4

handleErrorPacketMethod · 0.95
ConnectMethod · 0.95
cleanupMethod · 0.45
PrepareContextMethod · 0.45

Calls 2

writeCommandPacketMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected