Skip to content

Commit

Permalink
column mapping: update readme (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXiangUSTC authored Sep 10, 2019
1 parent 82398b5 commit 5a229d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/column-mapping/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ we define a rule `Rule` to show how to map column

```go
type Rule struct {
PatternSchema string `yaml:"pattern-schema" json:"parttern-schema" toml:"pattern-schema"`
PatternTable string `yaml:"pattern-table" json:"pattern-table" toml:"pattern-table"`
PatternSchema string `yaml:"schema-pattern" json:"schema-pattern" toml:"schema-pattern"`
PatternTable string `yaml:"table-pattern" json:"table-pattern" toml:"table-pattern"`
SourceColumn string `yaml:"source-column" json:"source-column" toml:"source-column"` // modify, add refer column, ignore
TargetColumn string `yaml:"target-column" json:"target-column" toml:"target-column"` // add column, modify
Expression string `yaml:"expression" json:"expression" toml:"expression"`
Expression Expr `yaml:"expression" json:"expression" toml:"expression"`
Arguments []string `yaml:"arguments" json:"arguments" toml:"arguments"`
CreateTableQuery string `yaml:"create-table-query" json:"create-table-query" toml:"create-table-query"`
}
Expand All @@ -47,4 +47,4 @@ The separator argument defaults to an empty string if omitted.

## notice
* only support above poor expressions now
* column mapping don't change column type and table structure now
* column mapping doesn't change column type and table structure now

0 comments on commit 5a229d0

Please sign in to comment.