Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudwan/gohan
/ initDB
Method
initDB
server/server.go:157–159 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
155
}
156
157
func
(server *Server) initDB() error {
158
return
db.InitDBWithSchemas(server.getDatabaseConfig())
159
}
160
161
func
(server *Server) connectDB() error {
162
if
err := migration.Init(); err != nil {
Callers
2
NewServer
Function · 0.95
setupEditor
Function · 0.80
Calls
1
getDatabaseConfig
Method · 0.95
Tested by
no test coverage detected