MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / closeDB

Function closeDB

model/main.go:320–327  ·  view source on GitHub ↗
(db *gorm.DB)

Source from the content-addressed store, hash-verified

318}
319
320func closeDB(db *gorm.DB) error {
321 sqlDB, err := db.DB()
322 if err != nil {
323 return err
324 }
325 err = sqlDB.Close()
326 return err
327}
328
329func CloseDB() error {
330 if LOG_DB != DB {

Callers 1

CloseDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected