rename_field

重命名字段。所有其他字段保持不变。

重命名字段。所有其他字段保持不变。

选项 1(备选):重命名多个字段

性能

名字 类型 描述 必填
领域 object[] 领域
是的

其他属性:不允许
示例

source:
  server_name: redislabs
  schema: dbo
  table: emp
transform:
  - uses: rename_field
    with:
      fields:
        - from_field: name.lname
          to_field: name.last_name
        - from_field: name.fname
          to_field: name.first_name

Option 2 (alternative): Rename one field

Properties

Name Type Description Required
from_field string From field
yes
to_field string To field
yes

Additional Properties: not allowed

Example

source:
  server_name: redislabs
  schema: dbo
  table: emp
transform:
  - uses: rename_field
    with:
      from_field: name.lname
      to_field: name.last_name

Option 1: fields[]: array

Fields

Items

Item Properties

Name Type Description Required
from_field string From field
yes
to_field string To field
yes

Item Additional Properties: not allowed

Example

- {}
RATE THIS PAGE
Back to top ↑