validate_utils

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LineIsEndOfData

func LineIsEndOfData(line []byte) bool

func ValuesEqual

func ValuesEqual(a *toolkit.RawValue, b *toolkit.RawValue) bool

Types

type Documenter

type Documenter interface {
	Print(w io.Writer) error
	Append(original, transformed *pgcopy.Row) error
}

type JsonDocument

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

func NewJsonDocument

func NewJsonDocument(table *entries.Table, withDiff bool, onlyTransformed bool) *JsonDocument

func (*JsonDocument) Append

func (jc *JsonDocument) Append(original, transformed *pgcopy.Row) error

func (*JsonDocument) Get

func (jc *JsonDocument) Get() *JsonDocumentResult

func (*JsonDocument) GetAffectedColumns

func (jc *JsonDocument) GetAffectedColumns() map[string]struct{}

func (*JsonDocument) GetColumnsToPrint

func (jc *JsonDocument) GetColumnsToPrint() map[string]struct{}

func (*JsonDocument) GetUnexpectedlyChangedColumns

func (jc *JsonDocument) GetUnexpectedlyChangedColumns() map[string]struct{}

func (*JsonDocument) Print

func (jc *JsonDocument) Print(w io.Writer) error

type JsonDocumentResult

type JsonDocumentResult struct {
	Schema            string
	Name              string
	PrimaryKeyColumns []string
	WithDiff          bool
	OnlyTransformed   bool
	RecordsWithDiff   []jsonRecordWithDiff
	RecordsPlain      []jsonRecordPlain
}

type TextDocument

type TextDocument struct {
	*JsonDocument
	// contains filtered or unexported fields
}

func NewTextDocument

func NewTextDocument(table *entries.Table, withDiff bool, onlyTransformed bool, tableFormat string) *TextDocument

func (*TextDocument) Print

func (td *TextDocument) Print(w io.Writer) error

Jump to

Keyboard shortcuts

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