Added command line options to ignore duplicate quad in add or missing quad in delete

This commit is contained in:
l.albertalli 2015-02-06 17:49:16 -08:00
parent 3c64b52e39
commit ce1cce5a01
5 changed files with 50 additions and 8 deletions

View file

@ -23,6 +23,7 @@ package graph
import (
"errors"
"flag"
"github.com/barakmich/glog"
"github.com/google/cayley/quad"
@ -193,3 +194,8 @@ 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")
)