processor

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 24 Imported by: 1 module, 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

This section is empty.

Types

type ColumnSchema

type ColumnSchema struct {
	Type  *types.FieldType
	Index int
	Name  string
}

type PreparedColumnOp added in v2.3.0

type PreparedColumnOp struct {
	Type             string              // "template" or "json"
	CompiledTemplate *templates.Template // for type "template"
	JsonFields       []jsonFieldOp       // for type "json"
}

type PreparedTableConfig

type PreparedTableConfig struct {
	Skip                          bool
	ColumnOps                     map[string][]PreparedColumnOp
	ColumnTemplates               map[string][]*templates.Template
	ColumnVariableTemplates       map[string]*templates.Template
	ColumnVariableDepsPerTemplate map[*templates.Template][]*templates.Template
	GlobalVariables               map[string]string
	TableVariables                map[string]string
	RowVariableTemplates          []*templates.Template
}

type Processor

type Processor struct {
	Config config.Config
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(config config.Config) (*Processor, error)

func NewProcessorWithConfig

func NewProcessorWithConfig(configData config.Config) (*Processor, error)

func (*Processor) Process

func (p *Processor) Process(input io.Reader, output io.Writer, pCtx context.Context) (err error)

func (*Processor) ProcessedTables added in v2.4.0

func (p *Processor) ProcessedTables() []string

ProcessedTables returns a sorted list of all table names encountered in CREATE TABLE statements during the most recent Process() call. Must be called after Process() returns.

type TableSchema

type TableSchema struct {
	Columns columnMap
	Name    string
}

Jump to

Keyboard shortcuts

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