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

Function NewCompilerForDB

compiler/compiler.go:27–32  ·  view source on GitHub ↗
(root *db.Root)

Source from the content-addressed store, hash-verified

25}
26
27func 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
34func NewCompilerWithEnv(env *exec.Environment) runtime.Compiler {
35 return &compiler{env}

Callers 2

NewCoreFunction · 0.92
FromRootFunction · 0.92

Calls 3

NewEnvironmentFunction · 0.92
NewRemoteEngineFunction · 0.92
NewCompilerWithEnvFunction · 0.85

Tested by

no test coverage detected