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

Method cancel

connection.go:573–576  ·  view source on GitHub ↗

cancel is called when the query has canceled.

(err error)

Source from the content-addressed store, hash-verified

571
572// cancel is called when the query has canceled.
573func (mc *mysqlConn) cancel(err error) {
574 mc.canceled.Set(err)
575 mc.cleanup()
576}
577
578// finish is called when the query has succeeded.
579func (mc *mysqlConn) finish() {

Callers 1

startWatcherMethod · 0.95

Calls 2

cleanupMethod · 0.95
SetMethod · 0.80

Tested by

no test coverage detected