fixture

package
v0.1.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package fixture runs bounded, customer-supplied SQL transform fixtures without providers.

Index

Constants

View Source
const MaxBytes = 1 << 20

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Step    string `json:"step"`
	Field   string `json:"field,omitempty"`
	Code    string `json:"code"`
	Message string `json:"message"`
}

type Fixture

type Fixture struct {
	Inputs   map[string]json.RawMessage `json:"inputs"`
	Expected json.RawMessage            `json:"expected,omitempty"`
}

type Result

type Result struct {
	Passed      bool            `json:"passed"`
	Asserted    bool            `json:"asserted"`
	Step        string          `json:"step"`
	Scope       string          `json:"scope"`
	Output      json.RawMessage `json:"output,omitempty"`
	Columns     []string        `json:"columns,omitempty"`
	Diagnostics []Diagnostic    `json:"diagnostics"`
}

func Run

func Run(ctx context.Context, step string, transform transformsql.Transform, fixture Fixture) Result

Run executes the pipeline SQL runtime and its existing contract checks. Output is returned only after contract success; failures never echo fixture values.

Jump to

Keyboard shortcuts

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