MCPcopy Create free account
hub / github.com/apache/answer / initConfigAndDb

Function initConfigAndDb

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

Source from the content-addressed store, hash-verified

108}
109
110func initConfigAndDb(env *Env) (err error) {
111 req := &CheckDatabaseReq{
112 DbType: env.DbType,
113 DbUsername: env.DbUsername,
114 DbPassword: env.DbPassword,
115 DbHost: env.DbHost,
116 DbName: env.DbName,
117 DbFile: env.DbFile,
118 }
119 return requestAPI(req, "POST", "/installation/init", InitEnvironment)
120}
121
122func initBaseInfo(env *Env) (err error) {
123 req := &InitBaseInfoReq{

Callers 1

initByEnvFunction · 0.85

Calls 1

requestAPIFunction · 0.85

Tested by

no test coverage detected