(ctx context.Context, sctx *super.Context, c Compiler, ast *parser.AST)
| 38 | } |
| 39 | |
| 40 | func 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 | } |
no test coverage detected