MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / defaultInit

Function defaultInit

client/driver.go:119–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119func defaultInit() (err error) {
120 configFile := utils.HomeDirExpand(DefaultConfigFile)
121 if configFile == DefaultConfigFile {
122 //System not support ~ dir, need Init manually.
123 log.Debugf("Could not find CovenantSQL default config location: %v", configFile)
124 return ErrNotInitialized
125 }
126
127 log.Debugf("Using CovenantSQL default config location: %v", configFile)
128 return Init(configFile, []byte(""))
129}
130
131// Init defines init process for client.
132func Init(configFile string, masterKey []byte) (err error) {

Callers 2

OpenMethod · 0.85
TestDefaultInitFunction · 0.85

Calls 3

HomeDirExpandFunction · 0.92
DebugfFunction · 0.92
InitFunction · 0.85

Tested by 1

TestDefaultInitFunction · 0.68