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

Function CompileQueryForDB

runtime/compiler.go:40–48  ·  view source on GitHub ↗
(ctx context.Context, sctx *super.Context, c Compiler, ast *parser.AST)

Source from the content-addressed store, hash-verified

38}
39
40func CompileQueryForDB(ctx context.Context, sctx *super.Context, c Compiler, ast *parser.AST) (Query, error) {
41 rctx := NewContext(ctx, sctx)
42 q, err := c.NewQuery(rctx, ast, nil, 0)
43 if err != nil {
44 rctx.Cancel()
45 return nil, err
46 }
47 return q, nil
48}

Callers 2

handleQueryFunction · 0.92
QueryMethod · 0.92

Calls 3

CancelMethod · 0.95
NewContextFunction · 0.70
NewQueryMethod · 0.65

Tested by

no test coverage detected