chmapper

package
v0.0.0-rc13 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const TransformerType = abstract.TransformerType("ch_mapper")

Variables

This section is empty.

Functions

func New

func New(cfg Config) abstract.Transformer

Types

type ColumnRemap

type ColumnRemap struct {
	Name       string
	Path       string
	Key        bool
	Masked     bool
	Excluded   bool
	Type       string
	TargetType string
	Expression string
}

type Config

type Config struct {
	Table TableRemap
	Salt  string
}

type DDLParams

type DDLParams struct {
	PartitionBy, OrderBy, Engine string
	TTL                          string
	Distributed                  bool
}

type TableRemap

type TableRemap struct {
	OriginalTable abstract.TableID
	RenamedTable  abstract.TableID
	Columns       []ColumnRemap
	DDL           *DDLParams
}

Jump to

Keyboard shortcuts

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