canon

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed postgres/gotest/canondata/*/extracted
	PostgresCanon embed.FS
	//go:embed clickhouse/canondata/*
	ClickhouseCanon embed.FS
	//go:embed mysql/canondata/*/extracted
	MysqlCanon embed.FS
	//go:embed ydb/canondata/*/extracted
	YdbCanon embed.FS
	//go:embed yt/canondata/*/extracted
	YtCanon embed.FS
)
View Source
var SequenceTestCases = []string{
	"insert_update_delete",
	"updatepk",
	"insert_update_insert",
}

SequenceTestCases contains a list of all sequence test cases. Each new case must be added here

Functions

func AllSubsequences

func AllSubsequences(sequence []abstract.ChangeItem) [][]abstract.ChangeItem

AllSubsequences produces all possible subsequences from the given sequence which all have the common beginning and start from the first item in the given sequence. Non-row items do not form sequences which begin from them or end with them. Instead, they are "attached" to the row items that follow them.

Types

type CanonizedCase

type CanonizedCase struct {
	Name string
	Type abstract.ProviderType
	Data []abstract.ChangeItem
}

func All

func All(sources ...abstract.ProviderType) []CanonizedCase

func (CanonizedCase) String

func (c CanonizedCase) String() string

type CanonizedSequenceCase

type CanonizedSequenceCase struct {
	Name   string
	Tables abstract.TableMap
	Items  []abstract.ChangeItem
}

func AllReplicationSequences

func AllReplicationSequences() []CanonizedSequenceCase

Jump to

Keyboard shortcuts

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