refactor: remove unused Extractor and Loader interfaces from types.go; streamline code structure

This commit is contained in:
2026-05-09 00:32:32 -05:00
parent 1bc7b67643
commit 68d983ea57

View File

@@ -9,18 +9,6 @@ import (
"git.ksdemosapps.com/kylesoda/go-migrate/internal/app/models"
)
type Extractor interface {
ProcessPartition(
ctx context.Context,
tableInfo config.SourceTableInfo,
columns []models.ColumnType,
batchSize int,
partition models.Partition,
indexPrimaryKey int,
chBatchesOut chan<- models.Batch,
) (int, error)
}
type TransformerFunc func(any) (any, error)
type ColumnTransformPlan struct {
@@ -40,15 +28,6 @@ type Transformer interface {
)
}
type Loader interface {
ProcessBatch(
ctx context.Context,
tableInfo config.TargetTableInfo,
colNames []string,
batch models.Batch,
) (int64, error)
}
type TableAnalyzer interface {
QueryColumnTypes(
ctx context.Context,