MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / addTriplesToCluster

Function addTriplesToCluster

query/common_test.go:116–126  ·  view source on GitHub ↗
(triples string)

Source from the content-addressed store, hash-verified

114}
115
116func addTriplesToCluster(triples string) error {
117 txn := client.NewTxn()
118 ctx := context.Background()
119 defer func() { _ = txn.Discard(ctx) }()
120
121 _, err := txn.Mutate(ctx, &api.Mutation{
122 SetNquads: []byte(triples),
123 CommitNow: true,
124 })
125 return err
126}
127
128func deleteTriplesInCluster(triples string) {
129 txn := client.NewTxn()

Callers 15

TestBigMathValueFunction · 0.70
TestDeleteAndReadIndexFunction · 0.70
TestDeleteAndReadCountFunction · 0.70
TestDeleteAndReadReverseFunction · 0.70
TestDropPredicateFunction · 0.70
TestBigFloatCeilFunction · 0.70
TestBigFloatFloorFunction · 0.70
TestBigFloatSqrtFunction · 0.70
TestBigFloatSortFunction · 0.70
TestBigFloatMaxFunction · 0.70
TestBigFloatSumFunction · 0.70

Calls 1

MutateMethod · 0.65

Tested by

no test coverage detected