PHP ETL
  • Introduction
  • Getting Started
  • Extractors
    • Collection
    • CSV
    • Fixed Width
    • JSON
    • Query
    • Table
    • XML
  • Transformers
    • Convert Case
    • JSON Decode
    • JSON Encode
    • Rename Columns
    • Trim
    • Unique Rows
  • Loaders
    • Insert
    • Insert/Update
  • Helpers
  • Running Processes
Powered by GitBook
On this page
  • Options
  • Columns
  • Consecutive
  1. Transformers

Unique Rows

Remove duplicate rows from the input stream.

$etl->transform('unique_rows', $options);

Options

Columns

Columns used in the row comparison. If empty, all columns will be used.

Type

Default value

array

[]

$options = ['columns' => ['name', 'email']];

Consecutive

Indicates if only consecutive duplicates will be removed.

Type

Default value

bool

false

$options = ['consecutive' => true];
PreviousTrimNextLoaders

Last updated 6 years ago