(triples string)
| 125 | } |
| 126 | |
| 127 | func addTriplesToCluster(triples string) error { |
| 128 | txn := client.NewTxn() |
| 129 | ctx := context.Background() |
| 130 | defer func() { _ = txn.Discard(ctx) }() |
| 131 | |
| 132 | _, err := txn.Mutate(ctx, &api.Mutation{ |
| 133 | SetNquads: []byte(triples), |
| 134 | CommitNow: true, |
| 135 | }) |
| 136 | return err |
| 137 | } |
| 138 | |
| 139 | func deleteTriplesInCluster(triples string) { |
| 140 | txn := client.NewTxn() |
no test coverage detected