Documentation ¶
Index ¶
- Constants
- type Config
- type RenameTable
- type RenameTableTransformer
- func (r *RenameTableTransformer) Apply(input []abstract.ChangeItem) abstract.TransformerResult
- func (r *RenameTableTransformer) Description() string
- func (r *RenameTableTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
- func (r *RenameTableTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
- func (r *RenameTableTransformer) Type() abstract.TransformerType
- type Table
Constants ¶
View Source
const RenameTablesTransformerType = abstract.TransformerType("rename_tables")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RenameTables []RenameTable `json:"renameTables"`
}
type RenameTable ¶
type RenameTableTransformer ¶
func NewRenameTableTransformer ¶
func NewRenameTableTransformer(config Config) *RenameTableTransformer
func (*RenameTableTransformer) Apply ¶
func (r *RenameTableTransformer) Apply(input []abstract.ChangeItem) abstract.TransformerResult
func (*RenameTableTransformer) Description ¶
func (r *RenameTableTransformer) Description() string
func (*RenameTableTransformer) ResultSchema ¶
func (r *RenameTableTransformer) ResultSchema(original *abstract.TableSchema) (*abstract.TableSchema, error)
func (*RenameTableTransformer) Suitable ¶
func (r *RenameTableTransformer) Suitable(table abstract.TableID, schema *abstract.TableSchema) bool
func (*RenameTableTransformer) Type ¶
func (r *RenameTableTransformer) Type() abstract.TransformerType
Click to show internal directories.
Click to hide internal directories.