Simplify names in cmd source
This commit is contained in:
parent
47c9752e5e
commit
c4a19a4e35
6 changed files with 17 additions and 17 deletions
|
|
@ -24,7 +24,7 @@ import (
|
|||
"github.com/google/cayley/graph/mongo"
|
||||
)
|
||||
|
||||
func OpenTSFromConfig(cfg *config.CayleyConfig) graph.TripleStore {
|
||||
func OpenTSFrom(cfg *config.CayleyConfig) graph.TripleStore {
|
||||
glog.Infof("Opening database \"%s\" at %s", cfg.DatabaseType, cfg.DatabasePath)
|
||||
switch cfg.DatabaseType {
|
||||
case "mongo", "mongodb":
|
||||
|
|
@ -33,7 +33,7 @@ func OpenTSFromConfig(cfg *config.CayleyConfig) graph.TripleStore {
|
|||
return leveldb.NewDefaultLevelDBTripleStore(cfg.DatabasePath, cfg.DatabaseOptions)
|
||||
case "mem":
|
||||
ts := memstore.NewMemTripleStore()
|
||||
CayleyLoad(ts, cfg, cfg.DatabasePath, true)
|
||||
Load(ts, cfg, cfg.DatabasePath, true)
|
||||
return ts
|
||||
}
|
||||
panic("Unsupported database backend " + cfg.DatabaseType)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue