Documentation
¶
Index ¶
- func RowsToPrimaryKeyMap(schema *datasource.Schema, rows []*datasource.Row) (map[string]*datasource.Row, error)
- type Diff
- type DiffColumns
- type DiffRows
- type Differ
- func (d *Differ) DiffColumns(left, right *datasource.Schema) (*DiffColumns, error)
- func (d *Differ) DiffRows(schema *datasource.Schema, leftRows, rightRows []*datasource.Row) (*DiffRows, error)
- func (d *Differ) IsSameRow(left, right *datasource.Row) (bool, error)
- func (d *Differ) ValueEqual(lv, rv *datasource.GenericColumnValue) (bool, error)
- type ValueComparator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RowsToPrimaryKeyMap ¶
func RowsToPrimaryKeyMap(schema *datasource.Schema, rows []*datasource.Row) (map[string]*datasource.Row, error)
Types ¶
type Diff ¶
type Diff struct {
Schema *datasource.Schema `json:"schema"`
DiffColumns *DiffColumns `json:"diff_columns"`
DiffRows *DiffRows `json:"diff_rows"`
}
func (*Diff) ExportJSON ¶
func (*Diff) ExportPrettyJSON ¶
type DiffColumns ¶
type DiffColumns struct {
Left []*datasource.Column `json:"left"`
Right []*datasource.Column `json:"right"`
}
type DiffRows ¶
type DiffRows struct {
Left []*datasource.Row `json:"left"`
Right []*datasource.Row `json:"right"`
}
type Differ ¶
type Differ struct {
// contains filtered or unexported fields
}
func (*Differ) DiffColumns ¶
func (d *Differ) DiffColumns(left, right *datasource.Schema) (*DiffColumns, error)
func (*Differ) DiffRows ¶
func (d *Differ) DiffRows(schema *datasource.Schema, leftRows, rightRows []*datasource.Row) (*DiffRows, error)
func (*Differ) ValueEqual ¶
func (d *Differ) ValueEqual(lv, rv *datasource.GenericColumnValue) (bool, error)
type ValueComparator ¶
type ValueComparator interface {
Equal(col *datasource.Column, v1, v2 *datasource.GenericColumnValue) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.