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) Close(context.Context)
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.
Click to show internal directories.
Click to hide internal directories.