MCPcopy Create free account
hub / github.com/chain/Core / Close

Method Close

database/sql/sql.go:166–168  ·  view source on GitHub ↗

Close closes the database, releasing any open resources. It is rare to Close a DB, as the DB handle is meant to be long-lived and shared between many goroutines.

()

Source from the content-addressed store, hash-verified

164// It is rare to Close a DB, as the DB handle is meant to be
165// long-lived and shared between many goroutines.
166func (db *DB) Close() error {
167 return db.db.Close()
168}
169
170// SetMaxIdleConns sets the maximum number of connections in the idle
171// connection pool.

Callers 15

TestGoldenFunction · 0.45
mainFunction · 0.45
rewriteConfigFunction · 0.45
CloseMethod · 0.45
joinMethod · 0.45
sendmsgFunction · 0.45
writeFileFunction · 0.45
TestRecoveryFunction · 0.45
TestAuthzFunction · 0.45
tryRPCFunction · 0.45
closeConnOKFunction · 0.45
TestForwardToLeaderFunction · 0.45

Calls

no outgoing calls

Tested by 9

TestGoldenFunction · 0.36
TestRecoveryFunction · 0.36
TestAuthzFunction · 0.36
tryRPCFunction · 0.36
TestForwardToLeaderFunction · 0.36
dumpBlocksFunction · 0.36
TestRPCCallJSONFunction · 0.36
TestRPCCallErrorFunction · 0.36
touchFunction · 0.36