feat: implement MSSQL row transformation and loading functions

This commit is contained in:
2026-04-07 11:47:27 -05:00
parent 2f8263d332
commit 6da321c4bb
3 changed files with 53 additions and 41 deletions

19
cmd/go_migrate/loader.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"fmt"
log "github.com/sirupsen/logrus"
)
func fakeLoader(job MigrationJob, columns []ColumnType, in <-chan []UnknownRowValues) {
for rows := range in {
log.Debugf("Chunk received, loading data into...")
for i, rowValues := range rows {
if i%100 == 0 {
logSampleRow(job, columns, rowValues, fmt.Sprintf("row %d", i))
}
}
}
}