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
|
|
@ -24,6 +24,7 @@ package graph
|
|||
import (
|
||||
"errors"
|
||||
"time"
|
||||
"flag"
|
||||
|
||||
"github.com/google/cayley/quad"
|
||||
)
|
||||
|
|
@ -58,6 +59,11 @@ var (
|
|||
ErrQuadNotExist = errors.New("quad does not exist")
|
||||
)
|
||||
|
||||
var (
|
||||
IgnoreDup = flag.Bool("ignoredup", false, "Don't stop loading on duplicated key on add")
|
||||
IgnoreMissing = flag.Bool("ignoremissing", false, "Don't stop loading on missing key on delete")
|
||||
)
|
||||
|
||||
type QuadWriter interface {
|
||||
// Add a quad to the store.
|
||||
AddQuad(quad.Quad) error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue