tableverify

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name      tree.Name
	OID       oid.Oid
	NotNull   bool
	Collation sql.NullString
}

func GetColumns

func GetColumns(
	ctx context.Context, conn dbconn.Conn, table dbtable.DBTable, logger zerolog.Logger,
) ([]Column, error)

type Result

type Result struct {
	RowVerifiable bool
	dbtable.VerifiedTable
	MismatchingTableDefinitions []inconsistency.MismatchingTableDefinition
}

func VerifyCommonTables

func VerifyCommonTables(
	ctx context.Context,
	conns dbconn.OrderedConns,
	logger zerolog.Logger,
	allTables [][2]dbtable.DBTable,
) ([]Result, error)

Jump to

Keyboard shortcuts

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