(triples string)
| 114 | } |
| 115 | |
| 116 | func 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 | |
| 128 | func deleteTriplesInCluster(triples string) { |
| 129 | txn := client.NewTxn() |
no test coverage detected