inconsistency

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 11 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

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