Skip to content

Commit

Permalink
engine: remove @action and @dataset env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jchappelow committed Dec 5, 2023
1 parent 8e2055b commit 6d9180b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions internal/engine/execution/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ func (s *ScopeContext) Values() map[string]any {

// set environment variables
values["@caller"] = s.execution.Data.CallerIdentifier
values["@dataset"] = s.execution.Data.Dataset
values["@procedure"] = s.execution.Data.Procedure

return values
}
Expand Down
4 changes: 0 additions & 4 deletions internal/engine/types/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ package types
type ExecutionData struct {
// Dataset is the DBID of the dataset that was called.
// Even if a procedure in another dataset is called, this will always be the original dataset.
// This is injected as a variable for usage in the query, under
// the variable name "@dataset".
Dataset string

// Procedure is the original procedure that was called.
// Even if a nested procedure is called, this will always be the original procedure.
// This is injected as a variable for usage in the query, under
// the variable name "@procedure".
Procedure string

// Mutative indicates whether the execution can mutate state.
Expand Down

0 comments on commit 6d9180b

Please sign in to comment.