(root *db.Root)
| 25 | } |
| 26 | |
| 27 | func NewCompilerForDB(root *db.Root) runtime.Compiler { |
| 28 | // We configure a remote storage engine into the compiler so that |
| 29 | // "from" operators that source http or s3 will work, but stdio and |
| 30 | // file system accesses will be rejected at open time. |
| 31 | return NewCompilerWithEnv(exec.NewEnvironment(storage.NewRemoteEngine(), root)) |
| 32 | } |
| 33 | |
| 34 | func NewCompilerWithEnv(env *exec.Environment) runtime.Compiler { |
| 35 | return &compiler{env} |
no test coverage detected