MCPcopy Index your code
hub / github.com/apache/answer / dbCheck

Function dbCheck

internal/install/install_from_env.go:98–108  ·  view source on GitHub ↗
(env *Env)

Source from the content-addressed store, hash-verified

96}
97
98func dbCheck(env *Env) (err error) {
99 req := &CheckDatabaseReq{
100 DbType: env.DbType,
101 DbUsername: env.DbUsername,
102 DbPassword: env.DbPassword,
103 DbHost: env.DbHost,
104 DbName: env.DbName,
105 DbFile: env.DbFile,
106 }
107 return requestAPI(req, "POST", "/installation/db/check", CheckDatabase)
108}
109
110func initConfigAndDb(env *Env) (err error) {
111 req := &CheckDatabaseReq{

Callers 1

initByEnvFunction · 0.70

Calls 1

requestAPIFunction · 0.85

Tested by

no test coverage detected