Documentation ¶
Index ¶
- Constants
- func MatchAnyTableNameVariant(filter Filter, tableID abstract.TableID) bool
- func TableFqtnVariants(tID abstract.TableID) []string
- type Columns
- type Filter
- type FilterColumnsConfig
- type FilterColumnsTransformer
- func (f *FilterColumnsTransformer) Apply(input []abstract.ChangeItem) abstract.TransformerResult
- func (f *FilterColumnsTransformer) Description() string
- func (f *FilterColumnsTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
- func (f *FilterColumnsTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
- func (f *FilterColumnsTransformer) Type() abstract.TransformerType
- type SkipEvents
- func (se *SkipEvents) Apply(input []abstract.ChangeItem) abstract.TransformerResult
- func (se *SkipEvents) Description() string
- func (se *SkipEvents) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
- func (se *SkipEvents) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
- func (se *SkipEvents) Type() abstract.TransformerType
- type SkipEventsConfig
- type Tables
Constants ¶
View Source
const FilterColumnsTransformerType = abstract.TransformerType("filter_columns")
View Source
const SkipEventsTransformerType = abstract.TransformerType("skip_events")
Variables ¶
This section is empty.
Functions ¶
func TableFqtnVariants ¶
Types ¶
type Filter ¶
type FilterColumnsConfig ¶
type FilterColumnsTransformer ¶
type FilterColumnsTransformer struct { Columns Filter Tables Filter Logger log.Logger // contains filtered or unexported fields }
func NewCustomFilterColumnsTransformer ¶
func NewCustomFilterColumnsTransformer(tables, columns Filter, lgr log.Logger) *FilterColumnsTransformer
func NewFilterColumnsTransformer ¶
func NewFilterColumnsTransformer(config FilterColumnsConfig, lgr log.Logger) (*FilterColumnsTransformer, error)
func (*FilterColumnsTransformer) Apply ¶
func (f *FilterColumnsTransformer) Apply(input []abstract.ChangeItem) abstract.TransformerResult
func (*FilterColumnsTransformer) Description ¶
func (f *FilterColumnsTransformer) Description() string
func (*FilterColumnsTransformer) ResultSchema ¶
func (f *FilterColumnsTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
func (*FilterColumnsTransformer) Suitable ¶
func (f *FilterColumnsTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
func (*FilterColumnsTransformer) Type ¶
func (f *FilterColumnsTransformer) Type() abstract.TransformerType
type SkipEvents ¶
type SkipEvents struct {
// contains filtered or unexported fields
}
func NewSkipEvents ¶
func NewSkipEvents(transformer SkipEventsConfig, logger log.Logger) (*SkipEvents, error)
func (*SkipEvents) Apply ¶
func (se *SkipEvents) Apply(input []abstract.ChangeItem) abstract.TransformerResult
func (*SkipEvents) Description ¶
func (se *SkipEvents) Description() string
func (*SkipEvents) ResultSchema ¶
func (se *SkipEvents) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
func (*SkipEvents) Suitable ¶
func (se *SkipEvents) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
func (*SkipEvents) Type ¶
func (se *SkipEvents) Type() abstract.TransformerType
type SkipEventsConfig ¶
Click to show internal directories.
Click to hide internal directories.