Skip to main content

Upsert

Upsert writes rows through a Connection resource, inserting or updating depending on the statement.

As with Query, select the Schema and Tables first, write the statement on the Query tab, and supply its values through the Input mapping.

The activity has four tabs: Configuration, Query, Input, and Output.

Configuration

FieldRequiredDescription
NameOptionalName of the component.
DescriptionOptionalDescription of the component.
ConnectionOptionalThe database connection resource to run through.
SchemaOptionalSchema to write within.
TablesOptionalTables to write to.
Batch SizeOptionalNumber of rows in each batch.

Query

FieldRequiredDescription
SQL QueryOptionalThe SQL statement to run.

The statement must be written in the dialect of the engine set as Type on the Connection resource. Whether a row is inserted or updated is determined by the statement, not by a setting on this activity.

Input

FieldRequiredDescription
InputsOptionalValues supplied to the statement.

Output

FieldRequiredDescription
OutputOptionalThe result of the statement.