MCPcopy Create free account
hub / github.com/brimdata/super / ConvertToDeleteWhere

Method ConvertToDeleteWhere

compiler/parser/api.go:27–37  ·  view source on GitHub ↗
(pool, branch string)

Source from the content-addressed store, hash-verified

25}
26
27func (a *AST) ConvertToDeleteWhere(pool, branch string) error {
28 if len(a.seq) == 0 {
29 return errors.New("internal error: AST seq cannot be empty")
30 }
31 a.seq.Prepend(&ast.Delete{
32 Kind: "Delete",
33 Pool: pool,
34 Branch: branch,
35 })
36 return nil
37}
38
39func (a *AST) PrependFileScan(paths []string) {
40 a.seq.Prepend(&ast.FileScan{

Callers 1

NewDeleteQueryMethod · 0.80

Calls 2

NewMethod · 0.80
PrependMethod · 0.45

Tested by

no test coverage detected