MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / closeDB

Function closeDB

pkg/sql2code/parser/postgresql.go:167–173  ·  view source on GitHub ↗
(db *gorm.DB)

Source from the content-addressed store, hash-verified

165}
166
167func closeDB(db *gorm.DB) {
168 sqlDB, err := db.DB()
169 if err != nil {
170 return
171 }
172 _ = sqlDB.Close()
173}

Callers 1

GetPostgresqlTableInfoFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected