42 lines
640 B
Go
42 lines
640 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type UnknownRowValues = []any
|
|
|
|
type Batch struct {
|
|
Id uuid.UUID
|
|
PartitionId uuid.UUID
|
|
Rows []UnknownRowValues
|
|
RetryCounter int
|
|
}
|
|
|
|
type PartitionRange struct {
|
|
Min int64
|
|
Max int64
|
|
IsMinInclusive bool
|
|
IsMaxInclusive bool
|
|
}
|
|
|
|
type Partition struct {
|
|
Id uuid.UUID
|
|
ParentId uuid.UUID
|
|
Range PartitionRange
|
|
HasRange bool
|
|
RetryCounter int
|
|
}
|
|
|
|
type JobResult struct {
|
|
JobName string
|
|
StartTime time.Time
|
|
Duration time.Duration
|
|
RowsRead int64
|
|
RowsLoaded int64
|
|
RowsFailed int64
|
|
Error error
|
|
}
|