MCPcopy Index your code
hub / github.com/rilldata/rill / Parse

Function Parse

runtime/parser/parser.go:234–249  ·  view source on GitHub ↗

Parse creates a new parser and parses the entire project.

(ctx context.Context, repo drivers.RepoStore, instanceID, environment, defaultOLAPConnector string, strictResolverProps bool)

Source from the content-addressed store, hash-verified

232
233// Parse creates a new parser and parses the entire project.
234func Parse(ctx context.Context, repo drivers.RepoStore, instanceID, environment, defaultOLAPConnector string, strictResolverProps bool) (*Parser, error) {
235 p := &Parser{
236 Repo: repo,
237 InstanceID: instanceID,
238 Environment: environment,
239 DefaultOLAPConnector: defaultOLAPConnector,
240 StrictResolverProps: strictResolverProps,
241 }
242
243 err := p.reload(ctx)
244 if err != nil {
245 return nil, err
246 }
247
248 return p, nil
249}
250
251// Reparse re-parses the indicated file paths, updating the Parser's state.
252// If rill.yaml has previously errored, or if rill.yaml is included in paths, it will reload the entire project.

Callers 15

ParseDotenvFunction · 0.92
emitStartEventMethod · 0.92
PushCmdFunction · 0.92
PullVarsFunction · 0.92
pullEnvMethod · 0.92
updateProjectConfigMethod · 0.92
PushEnvMethod · 0.92
AnalyzeConnectorsMethod · 0.92
TestExploreFieldSelectorFunction · 0.70
TestCompleteFunction · 0.70
TestLocationErrorFunction · 0.70
TestReparseFunction · 0.70

Calls 1

reloadMethod · 0.95

Tested by 15

TestExploreFieldSelectorFunction · 0.56
TestCompleteFunction · 0.56
TestLocationErrorFunction · 0.56
TestReparseFunction · 0.56
TestReparseNameCollisionFunction · 0.56
TestReparseRillYAMLFunction · 0.56
TestRefInferrenceFunction · 0.56
TestConnectorRefFunction · 0.56
TestConnectorDeletionFunction · 0.56
BenchmarkReparseFunction · 0.56
TestProjectModelDefaultsFunction · 0.56