sqlsync

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLDataSynchronizer

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

SQLDataSynchronizer is a struct that implements the Synchronizer interface for bundle files stored in SQL database. It is expected that the caller will handle concurrency and parallelism. The Synchronizer is not thread-safe. It dumps files stored in SQL database into a directory used by the builder package to construct a bundle.

func NewSQLSourceDataSynchronizer

func NewSQLSourceDataSynchronizer(path string, db *database.Database, sourceID int64, sourceName string, opts ...SQLSyncOption) *SQLDataSynchronizer

func (*SQLDataSynchronizer) Close

func (*SQLDataSynchronizer) Execute

func (s *SQLDataSynchronizer) Execute(ctx context.Context) (map[string]any, error)

type SQLSyncOption added in v0.5.0

type SQLSyncOption func(*SQLDataSynchronizer)

func WithMetadataFields added in v0.5.0

func WithMetadataFields(fields []string) SQLSyncOption

WithMetadataFields configures which metadata fields should be computed. If not specified or empty, no expensive metadata (like hashsum) will be computed.

Jump to

Keyboard shortcuts

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