Moved configuration to Quadwriter and added to config file
This commit is contained in:
parent
68cd44b986
commit
6134bc8bdd
7 changed files with 48 additions and 33 deletions
|
|
@ -23,7 +23,6 @@ package graph
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"flag"
|
||||
|
||||
"github.com/barakmich/glog"
|
||||
"github.com/google/cayley/quad"
|
||||
|
|
@ -45,7 +44,7 @@ type Value interface{}
|
|||
type QuadStore interface {
|
||||
// The only way in is through building a transaction, which
|
||||
// is done by a replication strategy.
|
||||
ApplyDeltas([]Delta) error
|
||||
ApplyDeltas([]Delta, bool, bool) error
|
||||
|
||||
// Given an opaque token, returns the quad for that token from the store.
|
||||
Quad(Value) quad.Quad
|
||||
|
|
@ -194,8 +193,3 @@ func QuadStores() []string {
|
|||
}
|
||||
return t
|
||||
}
|
||||
|
||||
var (
|
||||
NoErrorDup = flag.Bool("noerrdup", false, "Don't stop loading on duplicated key on add")
|
||||
NoErrorDel = flag.Bool("noerrdel", false, "Don't stop loading on missing key on delete")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue