store

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterObserver added in v1.9.3

type ClusterObserver struct {
	Logger      *stmtlogger.Logger
	AppLogger   *zap.Logger
	ClusterName stmtlogger.Type
}

func (ClusterObserver) ObserveBatch added in v1.9.3

func (c ClusterObserver) ObserveBatch(ctx context.Context, batch gocql.ObservedBatch)

func (ClusterObserver) ObserveConnect added in v1.9.3

func (c ClusterObserver) ObserveConnect(connect gocql.ObservedConnect)

func (ClusterObserver) ObserveQuery added in v1.9.3

func (c ClusterObserver) ObserveQuery(ctx context.Context, query gocql.ObservedQuery)

type Config

type Config struct {
	OracleClusterConfig     *ScyllaClusterConfig
	OracleStatementFile     string
	TestStatementFile       string
	TestClusterConfig       ScyllaClusterConfig
	MaxRetriesMutate        int
	MaxRetriesMutateSleep   time.Duration
	Compression             stmtlogger.Compression
	UseServerSideTimestamps bool
}

type ErrorRowDifference added in v1.10.0

type ErrorRowDifference struct {
	OracleRow       Row
	TestRow         Row
	Diff            string
	MissingInTest   []string
	MissingInOracle []string
	TestRows        int
	OracleRows      int
}

func (ErrorRowDifference) Error added in v1.10.0

func (e ErrorRowDifference) Error() string

type Row added in v1.9.0

type Row map[string]any

type Rows added in v1.10.0

type Rows []Row

func (Rows) Len added in v1.10.0

func (r Rows) Len() int

func (Rows) Less added in v1.10.0

func (r Rows) Less(i, j int) bool

func (Rows) Swap added in v1.10.0

func (r Rows) Swap(i, j int)

type ScyllaClusterConfig added in v1.11.0

type ScyllaClusterConfig struct {
	Name                    stmtlogger.Type
	HostSelectionPolicy     string
	Consistency             string
	Username                string
	Password                string
	Hosts                   []string
	RequestTimeout          time.Duration
	ConnectTimeout          time.Duration
	UseServerSideTimestamps bool
}

type Store

func New

func New(
	schemaChangesValues typedef.Values,
	workers *workpool.Pool,
	schema *typedef.Schema,
	cfg Config,
	logger *zap.Logger,
	e *joberror.ErrorList,
) (Store, error)

Jump to

Keyboard shortcuts

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