inconsistency

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedReporter

type CombinedReporter struct {
	Reporters []Reporter
}

func (CombinedReporter) Close

func (c CombinedReporter) Close()

func (CombinedReporter) Report

func (c CombinedReporter) Report(obj ReportableObject)

type ExtraneousRow

type ExtraneousRow struct {
	dbtable.Name

	PrimaryKeyColumns []tree.Name
	PrimaryKeyValues  tree.Datums
}

type FixReporter

type FixReporter struct {
	Conn   dbconn.Conn
	Logger zerolog.Logger
}

func (FixReporter) Close

func (l FixReporter) Close()

func (FixReporter) Report

func (l FixReporter) Report(obj ReportableObject)

type LogReporter

type LogReporter struct {
	zerolog.Logger
}

LogReporter reports to `zerolog`.

func (LogReporter) Close

func (l LogReporter) Close()

func (LogReporter) Report

func (l LogReporter) Report(obj ReportableObject)

type MismatchingColumn added in v0.1.1

type MismatchingColumn struct {
	dbtable.Name

	PrimaryKeyColumns []tree.Name
	PrimaryKeyValues  tree.Datums

	MismatchingColumns []tree.Name
	TruthVals          tree.Datums
	TargetVals         tree.Datums
	Info               []string
}

type MismatchingRow

type MismatchingRow struct {
	dbtable.Name

	PrimaryKeyColumns []tree.Name
	PrimaryKeyValues  tree.Datums

	MismatchingColumns []tree.Name
	TruthVals          tree.Datums
	TargetVals         tree.Datums
}

type MismatchingTableDefinition

type MismatchingTableDefinition struct {
	dbtable.DBTable
	Info string
}

MismatchingTableDefinition represents a missing table definition.

type MissingRow

type MissingRow struct {
	dbtable.Name

	PrimaryKeyColumns []tree.Name
	PrimaryKeyValues  tree.Datums

	Columns []tree.Name
	Values  tree.Datums
}

type ReportableObject

type ReportableObject interface{}

type Reporter

type Reporter interface {
	Report(obj ReportableObject)
	Close()
}

type RowStats added in v0.1.1

type RowStats struct {
	Schema                string
	Table                 string
	NumVerified           int
	NumSuccess            int
	NumConditionalSuccess int
	NumMissing            int
	NumMismatch           int
	NumColumnMismatch     int
	NumExtraneous         int
	NumLiveRetry          int
}

RowStats includes all details about the total rows processed.

func (*RowStats) String added in v0.1.1

func (s *RowStats) String() string

type StatusReport

type StatusReport struct {
	Info string
}

StatusReport gives status on the running verify task. For example, that the task started, is running at a given table, etc.

type SummaryReport added in v0.1.1

type SummaryReport struct {
	Info  string
	Stats RowStats
}

SummaryReport gives running summary reports on the running verify task. For example, how many successes, rows are seen, mismatches, etc.

Jump to

Keyboard shortcuts

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