jinja

package
v0.11.310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Filters *exec.FilterSet

Functions

func PythonEnvVariables added in v0.5.7

func PythonEnvVariables(startDate, endDate *time.Time, pipelineName, runID string, fullRefresh bool) map[string]string

Types

type Context

type Context map[string]any

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(context Context) *Renderer

func NewRendererWithStartEndDates

func NewRendererWithStartEndDates(startDate, endDate *time.Time, pipelineName, runID string, vars Context) *Renderer

func NewRendererWithYesterday added in v0.5.3

func NewRendererWithYesterday(pipelineName, runID string) *Renderer

func (*Renderer) CloneForAsset added in v0.11.209

func (r *Renderer) CloneForAsset(ctx context.Context, pipe *pipeline.Pipeline, asset *pipeline.Asset) (RendererInterface, error)

func (*Renderer) Render

func (r *Renderer) Render(query string) (string, error)

type RendererInterface added in v0.11.209

type RendererInterface interface {
	Render(query string) (string, error)
	CloneForAsset(ctx context.Context, pipeline *pipeline.Pipeline, asset *pipeline.Asset) (RendererInterface, error)
}

this ugly interface is needed to avoid circular dependencies and the ability to create different renderer instances per asset.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL