target

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TargetInterface

type TargetInterface interface {
	// InitializeRelation takes a relation definition and a CSV file as a reader and
	// creates the relation in the target and populates it with data from the CSV
	InitializeRelation(ctx context.Context, relation *db.Relation, r io.Reader) error
	// VerifyRelation takes a relation definition and checks that the relation in the target
	// matches the schema
	VerifyRelation(ctx context.Context, relation *db.Relation) (bool, error)
	// Write accepts a batch of WAL transactions and writes them to the target
	Write(ctx context.Context, batch []*db.WalTransaction) error
	// Close does any needed cleanup and closes any open connections
	Close(ctx context.Context) error
}

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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