MCPcopy
hub / github.com/dgraph-io/dgraph / Pipeline

Function Pipeline

testutil/exec.go:49–51  ·  view source on GitHub ↗

Pipeline runs several commands such that the output of one command becomes the input of the next. The first argument should be an two-dimensional array containing the commands. TODO: allow capturing output, sending to terminal, etc

(cmds [][]string)

Source from the content-addressed store, hash-verified

47// The first argument should be an two-dimensional array containing the commands.
48// TODO: allow capturing output, sending to terminal, etc
49func Pipeline(cmds [][]string) (string, error) {
50 return pipelineInternal(cmds, nil)
51}
52
53// piplineInternal takes a list of commands and a list of options (one for each).
54// If opts is nil, all commands should be run with the default options.

Callers 15

TestLiveLoadUpsertAtOnceFunction · 0.92
TestLiveLoadUpsertFunction · 0.92
TestLiveLoadJsonUidKeepFunction · 0.92
TestLiveLoadRdfUidKeepFunction · 0.92
TestLiveLoadFileNameFunction · 0.92
TestLiveLoadJSONFileFunction · 0.92

Calls 1

pipelineInternalFunction · 0.85

Tested by 15

TestLiveLoadUpsertAtOnceFunction · 0.74
TestLiveLoadUpsertFunction · 0.74
TestLiveLoadJsonUidKeepFunction · 0.74
TestLiveLoadRdfUidKeepFunction · 0.74
TestLiveLoadFileNameFunction · 0.74
TestLiveLoadJSONFileFunction · 0.74