Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
149
func
(d *GormDatabase) Close() {
150
sqldb, err := d.DB.DB()
151
if
err != nil {
152
return
153
}
154
sqldb.Close()
155
}
Callers
6
BeforeTest
Method · 0.45
TestMigration
Method · 0.45
TestPing_onClosedDB
Method · 0.45
AfterTest
Method · 0.45
TestCreateSqliteFolder
Function · 0.45
TestWithAlreadyExistingSqliteFolder
Function · 0.45
Calls
no outgoing calls
Tested by
6
BeforeTest
Method · 0.36
TestMigration
Method · 0.36
TestPing_onClosedDB
Method · 0.36
AfterTest
Method · 0.36
TestCreateSqliteFolder
Function · 0.36
TestWithAlreadyExistingSqliteFolder
Function · 0.36