Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sync ¶
func Sync(ctx context.Context, deferConstraints bool, tasks []Task, source *datasource.ReaderDataSource, dest *datasource.ReadWriteDatasource) error
Types ¶
type SafeBuffer ¶
type SafeBuffer struct {
// contains filtered or unexported fields
}
func NewSafeBuffer ¶
func NewSafeBuffer(buffer io.ReadWriter) *SafeBuffer
func (*SafeBuffer) SetDone ¶
func (b *SafeBuffer) SetDone()
type TableSync ¶
type TableSync struct {
// contains filtered or unexported fields
}
func NewTableSync ¶
func NewTableSync(source *datasource.ReaderDataSource, dest *datasource.ReadWriteDatasource) *TableSync
type Task ¶
type Task struct { db.Table DestColumns []db.Column SourceColumns []db.Column DestPK []db.PrimaryKey SourceSequences []db.Sequence DestSequences []db.Sequence Filter string Preserve bool Truncate bool DeferConstraints bool }
func (*Task) GetDestPKs ¶
func (*Task) GetSharedColumnNames ¶
type TaskResolver ¶
type TaskResolver struct {
// contains filtered or unexported fields
}
func NewTaskResolver ¶
func NewTaskResolver(source *datasource.ReaderDataSource, destination *datasource.ReadWriteDatasource, groups map[string]map[string]string, truncate bool, preserve bool, deferConstraints bool, excluded []db.Table) *TaskResolver
Source Files ¶
Click to show internal directories.
Click to hide internal directories.