MCPcopy Create free account
hub / github.com/actiontech/dtle / CloseDB

Function CloseDB

driver/mysql/sql/sqlutils.go:397–403  ·  view source on GitHub ↗
(db *gosql.DB)

Source from the content-addressed store, hash-verified

395}
396
397func CloseDB(db *gosql.DB) error {
398 if db == nil {
399 return nil
400 }
401
402 return db.Close()
403}
404
405func CloseConns(dbs ...*Conn) error {
406 for _, db := range dbs {

Callers 2

ShutdownMethod · 0.92
ShutdownMethod · 0.92

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected