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

Method IsValid

connection.go:811–813  ·  view source on GitHub ↗

IsValid implements driver.Validator interface (From Go 1.15)

()

Source from the content-addressed store, hash-verified

809// IsValid implements driver.Validator interface
810// (From Go 1.15)
811func (mc *mysqlConn) IsValid() bool {
812 return !mc.closed.Load() && !mc.buf.busy()
813}
814
815var _ driver.SessionResetter = &mysqlConn{}
816var _ driver.Validator = &mysqlConn{}

Callers 1

Calls 1

busyMethod · 0.80

Tested by 1