MCPcopy Create free account
hub / github.com/MG-RAST/Shock / reloadDB

Function reloadDB

shock-server/reload.go:42–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func reloadDB() (err error) {
43 fmt.Printf("dropping & re-initializing database...")
44 if err = db.Drop(); err != nil {
45 return err
46 }
47 db.Initialize()
48 fmt.Printf("done\n")
49 return
50}
51
52func reloadFromUrl(url string) error {
53 return errors.New("reload from url not implemented yet")

Callers 1

reloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected