Documentation ¶
Index ¶
- Constants
- type Config
- type ReplacePrimaryKeyTransformer
- func (r *ReplacePrimaryKeyTransformer) Apply(input []abstract.ChangeItem) abstract.TransformerResult
- func (r *ReplacePrimaryKeyTransformer) Description() string
- func (r *ReplacePrimaryKeyTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
- func (r *ReplacePrimaryKeyTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
- func (r *ReplacePrimaryKeyTransformer) Type() abstract.TransformerType
Constants ¶
View Source
const Type = abstract.TransformerType("replace_primary_key")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplacePrimaryKeyTransformer ¶
type ReplacePrimaryKeyTransformer struct { Tables filter.Filter Keys []string // contains filtered or unexported fields }
func NewReplacePrimaryKeyTransformer ¶
func NewReplacePrimaryKeyTransformer(cfg Config) (*ReplacePrimaryKeyTransformer, error)
func (*ReplacePrimaryKeyTransformer) Apply ¶
func (r *ReplacePrimaryKeyTransformer) Apply(input []abstract.ChangeItem) abstract.TransformerResult
func (*ReplacePrimaryKeyTransformer) Description ¶
func (r *ReplacePrimaryKeyTransformer) Description() string
func (*ReplacePrimaryKeyTransformer) ResultSchema ¶
func (r *ReplacePrimaryKeyTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
func (*ReplacePrimaryKeyTransformer) Suitable ¶
func (r *ReplacePrimaryKeyTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
func (*ReplacePrimaryKeyTransformer) Type ¶
func (r *ReplacePrimaryKeyTransformer) Type() abstract.TransformerType
Click to show internal directories.
Click to hide internal directories.