22 lines
606 B
Go
22 lines
606 B
Go
package transformers
|
|
|
|
import (
|
|
"git.ksdemosapps.com/kylesoda/go-migrate/internal/app/azure"
|
|
"git.ksdemosapps.com/kylesoda/go-migrate/internal/app/config"
|
|
"git.ksdemosapps.com/kylesoda/go-migrate/internal/app/etl"
|
|
)
|
|
|
|
type MssqlTransformer struct {
|
|
toStorage config.ToStorageConfig
|
|
sourceTable config.SourceTableInfo
|
|
azureClient *azure.Client
|
|
}
|
|
|
|
func NewMssqlTransformer(toStorage config.ToStorageConfig, sourceTable config.SourceTableInfo, azureClient *azure.Client) etl.Transformer {
|
|
return &MssqlTransformer{
|
|
toStorage: toStorage,
|
|
sourceTable: sourceTable,
|
|
azureClient: azureClient,
|
|
}
|
|
}
|