feat: update extractor error handling to use models.UnknownRowValues for improved type consistency

This commit is contained in:
2026-04-10 19:29:07 -05:00
parent ca621352c9
commit d228a048b8
4 changed files with 4 additions and 254 deletions

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"sync"
"git.ksdemosapps.com/kylesoda/go-migrate/internal/app/models"
"github.com/google/uuid"
)
@@ -78,7 +79,7 @@ func extractorErrorHandler(
}
}
func ExtractorErrorFromLastRowMssql(lastRow UnknownRowValues, indexPrimaryKey int, batch *Batch, previousError error) ExtractorError {
func ExtractorErrorFromLastRowMssql(lastRow models.UnknownRowValues, indexPrimaryKey int, batch *Batch, previousError error) ExtractorError {
lastIdRawValue := lastRow[indexPrimaryKey]
lastId, ok := ToInt64(lastIdRawValue)