MCPcopy
hub / github.com/gotify/server / Close

Method Close

database/database.go:149–155  ·  view source on GitHub ↗

Close closes the gorm database connection.

()

Source from the content-addressed store, hash-verified

147
148// Close closes the gorm database connection.
149func (d *GormDatabase) Close() {
150 sqldb, err := d.DB.DB()
151 if err != nil {
152 return
153 }
154 sqldb.Close()
155}

Callers 6

BeforeTestMethod · 0.45
TestMigrationMethod · 0.45
TestPing_onClosedDBMethod · 0.45
AfterTestMethod · 0.45
TestCreateSqliteFolderFunction · 0.45

Calls

no outgoing calls

Tested by 6

BeforeTestMethod · 0.36
TestMigrationMethod · 0.36
TestPing_onClosedDBMethod · 0.36
AfterTestMethod · 0.36
TestCreateSqliteFolderFunction · 0.36