rename

package
v0.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 RenameTable struct {
	OriginalName Table `json:"originalName"`
	NewName      Table `json:"newName"`
}

type RenameTableTransformer

type RenameTableTransformer struct {
	AltNames map[abstract.TableID]abstract.TableID
}

func NewRenameTableTransformer

func NewRenameTableTransformer(config Config) *RenameTableTransformer

func (*RenameTableTransformer) Apply

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

type Table

type Table struct {
	Name      string `json:"name"`
	Namespace string `json:"nameSpace"`
}

func (Table) ID

func (t Table) ID() abstract.TableID

Jump to

Keyboard shortcuts

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