Simplify names in cmd source

This commit is contained in:
kortschak 2014-06-28 12:38:51 +09:30
parent 47c9752e5e
commit c4a19a4e35
6 changed files with 17 additions and 17 deletions

View file

@ -20,7 +20,7 @@ import (
"github.com/google/cayley/graph/mongo"
)
func CayleyInit(cfg *config.CayleyConfig, triplePath string) bool {
func Init(cfg *config.CayleyConfig, triplePath string) bool {
created := false
dbpath := cfg.DatabasePath
switch cfg.DatabaseType {
@ -32,8 +32,8 @@ func CayleyInit(cfg *config.CayleyConfig, triplePath string) bool {
return true
}
if created && triplePath != "" {
ts := OpenTSFromConfig(cfg)
CayleyLoad(ts, cfg, triplePath, true)
ts := OpenTSFrom(cfg)
Load(ts, cfg, triplePath, true)
ts.Close()
}
return created