validator

package
v0.0.0-rc9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canonizator

func Canonizator(
	t *testing.T,
	changeItemMiddlewares ...func(item []abstract.ChangeItem) []abstract.ChangeItem,
) func() abstract.Sinker

func InitDone

func InitDone(t *testing.T) func() abstract.Sinker

func New

func New(isStrictSource bool, factories ...func() abstract.Sinker) func() abstract.Sinker

func Referencer

func Referencer(
	t *testing.T,
	changeItemMiddlewares ...func(item []abstract.ChangeItem) []abstract.ChangeItem,
) func() abstract.Sinker

func RemoveVariableFieldsRowMiddleware

func RemoveVariableFieldsRowMiddleware(items []abstract.ChangeItem) []abstract.ChangeItem

func Sequencer

func Sequencer(t *testing.T, rowMiddlewares ...func([]abstract.ChangeItem) []abstract.ChangeItem) (middleware func() abstract.Sinker, dumpCallback func())

func TypesystemChecker

func TypesystemChecker(provider abstract.ProviderType, originalTypeParser func(colSchema abstract.ColSchema) string) func() abstract.Sinker

func ValuesTypeChecker

func ValuesTypeChecker() abstract.Sinker

Types

type Aggregator

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

func (*Aggregator) Close

func (c *Aggregator) Close() error

func (*Aggregator) Commit

func (c *Aggregator) Commit() error

func (*Aggregator) Push

func (c *Aggregator) Push(items []abstract.ChangeItem) error

type CanonizatorSink

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

func (*CanonizatorSink) Close

func (c *CanonizatorSink) Close() error

func (*CanonizatorSink) Commit

func (c *CanonizatorSink) Commit() error

func (*CanonizatorSink) Push

func (c *CanonizatorSink) Push(items []abstract.ChangeItem) error

type Container

type Container struct {
	GoType string
	Val    interface{}
}

type Counter

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

func NewCounter

func NewCounter() (*Counter, func() abstract.Sinker)

func (*Counter) Close

func (c *Counter) Close()

func (*Counter) EstimateTableRowsCount

func (c *Counter) EstimateTableRowsCount(table abstract.TableID) (uint64, error)

func (*Counter) ExactTableRowsCount

func (c *Counter) ExactTableRowsCount(table abstract.TableID) (uint64, error)

func (*Counter) GetSum

func (c *Counter) GetSum() uint64

func (*Counter) LoadTable

func (c *Counter) LoadTable(ctx context.Context, table abstract.TableDescription, pusher abstract.Pusher) error

func (*Counter) Ping

func (c *Counter) Ping() error

func (*Counter) TableExists

func (c *Counter) TableExists(table abstract.TableID) (bool, error)

func (*Counter) TableList

func (c *Counter) TableList(filter abstract.IncludeTableList) (abstract.TableMap, error)

func (*Counter) TableSchema

func (c *Counter) TableSchema(ctx context.Context, table abstract.TableID) (*abstract.TableSchema, error)

func (*Counter) Truncate

func (c *Counter) Truncate(tableID abstract.TableID)

type CounterSink

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

func (*CounterSink) Close

func (c *CounterSink) Close() error

func (*CounterSink) Push

func (c *CounterSink) Push(items []abstract.ChangeItem) error

type ReferenceRow

type ReferenceRow struct {
	Data map[string]Container
}

type ReferenceTable

type ReferenceTable struct {
	TableID     abstract.TableID
	Rows        []ReferenceRow
	TableSchema abstract.TableColumns
}

type ReferencerSink

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

func (*ReferencerSink) AsReferenceRow

func (c *ReferencerSink) AsReferenceRow(row abstract.ChangeItem) ReferenceRow

func (*ReferencerSink) Close

func (c *ReferencerSink) Close() error

func (*ReferencerSink) Push

func (c *ReferencerSink) Push(items []abstract.ChangeItem) error

type TypesystemCheckerSink

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

func (TypesystemCheckerSink) Close

func (t TypesystemCheckerSink) Close() error

func (TypesystemCheckerSink) Push

type ValuesTypeCheckerSink

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

func (ValuesTypeCheckerSink) Close

func (t ValuesTypeCheckerSink) Close() error

func (ValuesTypeCheckerSink) Push

Jump to

Keyboard shortcuts

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