MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Close

Method Close

client/conn.go:224–236  ·  view source on GitHub ↗

Close implements the driver.Conn.Close method.

()

Source from the content-addressed store, hash-verified

222
223// Close implements the driver.Conn.Close method.
224func (c *conn) Close() error {
225 // close the meta connection
226 if atomic.CompareAndSwapInt32(&c.closed, 0, 1) {
227 log.WithField("db", c.dbID).Debug("closed connection")
228 }
229 if c.leader != nil {
230 c.leader.close()
231 }
232 if c.follower != nil {
233 c.follower.close()
234 }
235 return nil
236}
237
238// Begin implements the driver.Conn.Begin method.
239func (c *conn) Begin() (driver.Tx, error) {

Callers

nothing calls this directly

Calls 3

WithFieldFunction · 0.92
DebugMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected