recordpipe

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PayloadToRows

func PayloadToRows(payload interface{}, keyField string) []map[string]interface{}

func SourceTableName

func SourceTableName(source string) string

Types

type Options

type Options struct {
	Raw             bool
	Mapping         recordmap.Config
	Canonical       canonical.Config
	CatalogProvider pricingcatalog.Provider
	GeneratedAt     time.Time
}

type Result

type Result struct {
	Rows     []map[string]interface{}
	Payload  interface{}
	KeyField string
	Raw      bool
	Contract *canonical.Envelope
}

func Build

func Build(rawRows []map[string]interface{}, source string, options Options) Result

func BuildContext

func BuildContext(ctx context.Context, rawRows []map[string]interface{}, source string, options Options) Result

func (Result) FilterChanges

func (result Result) FilterChanges(changes recorddiff.ChangeSet) recorddiff.ChangeSet

FilterChanges prevents a duplicate-Code quarantine from being interpreted as a deletion. Quarantine means preserve the last known good downstream value until the source ambiguity is resolved; it is never a tombstone.

func (Result) SyncEnvelope

func (result Result) SyncEnvelope(changes *recorddiff.ChangeSet) *canonical.Envelope

func (Result) XLSXOptions

func (result Result) XLSXOptions(dataset string, rightToLeft bool) recordsink.XLSXOptions

XLSXOptions maps the already-built pipeline result to non-secret workbook provenance. Keeping this adapter on Result ensures the CLI and HTTP route cannot invent a second canonical transformation.

Jump to

Keyboard shortcuts

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