condition

package
v0.0.0-...-1b09624 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataModeAll  = "ALL"
	DataModePart = "PART"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRegularCond

type BaseRegularCond interface {
	IsTableNeedFilter(table string) bool
	GetTableFilterCols(table string) map[string]struct{}
	IsUpsert(table string) bool
}

func BuildMysqlDataBaseRegularCond

func BuildMysqlDataBaseRegularCond(ctx *context.BaseContext, conf config.MysqlTaskConfig) BaseRegularCond

type MysqlBaseRegularCondImpl

type MysqlBaseRegularCondImpl struct {
	DataMode        string
	IncludeTables   map[string]struct{}
	ExcludeTables   map[string]struct{}
	RegularTableMap map[string]RegularTableMap
}

func (*MysqlBaseRegularCondImpl) GetTableFilterCols

func (cond *MysqlBaseRegularCondImpl) GetTableFilterCols(table string) map[string]struct{}

func (*MysqlBaseRegularCondImpl) IsTableNeedFilter

func (cond *MysqlBaseRegularCondImpl) IsTableNeedFilter(table string) bool

func (*MysqlBaseRegularCondImpl) IsUpsert

func (cond *MysqlBaseRegularCondImpl) IsUpsert(table string) bool

type MysqlRunTimeFilterCondImpl

type MysqlRunTimeFilterCondImpl struct {
	BaseRegularCond

	TableFormat *dao.TableFormat
	// contains filtered or unexported fields
}

func NewMysqlRunTimeFilterCond

func NewMysqlRunTimeFilterCond(ctx *context.BizContext, repo BaseRegularCond, tableDesc *dao.TableFormat) *MysqlRunTimeFilterCondImpl

func (*MysqlRunTimeFilterCondImpl) GetTableFilterCols

func (cond *MysqlRunTimeFilterCondImpl) GetTableFilterCols(table string) map[string]struct{}

注意主键不删除

type RegularTableMap

type RegularTableMap struct {
	FilterCols map[string]struct{}
	IsUpsert   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL