converter

package
v0.0.0-...-406b1e7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseIsEmpty

func DatabaseIsEmpty(ctx context.Context, config Config) (bool, error)

DatabaseIsEmpty returns true if database is empty

func Run

func Run(ctx context.Context, config Config) error

Run runs the converter

Types

type Config

type Config struct {
	SourceKafka      kafka.Client
	DestKafka        kafka.Client
	NewTopic         string // output topic name
	Force            bool   // perform a null conversion even if the database version is current
	DryRun           bool   // do not publish new manifest
	SafetyInterval   time.Duration
	HotStartStorage  string
	DBVersionHistory []string
	UpgradeSteps     map[string]xform.Transformation
	Survive          func(object wire.ActiveObject, now time.Time) bool
}

Config describes the converter configuration

Directories

Path Synopsis
Package convertdb is a Limestone-like database specifically designed for history conversion tasks.
Package convertdb is a Limestone-like database specifically designed for history conversion tasks.

Jump to

Keyboard shortcuts

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