SQL Script
Runs SQL queries and retrieves results for each query
Processing
For every input row, the step executes a SQL script and provides the query results in step results.
Settings
Name | Type | Description |
---|---|---|
Connection |
dict |
The database connection to use. Evaluated for each input row |
SQL |
string |
The SQL queries executed. Can be supplied as one of the following:
Evaluated for each input row |
Jdbc Parameters |
list |
JDBC Parameters Each parameter is bound to Evaluated for each input row |
Get Generated Keys |
boolean |
If enabled, attempt to get generated keys for inserted rows. Evaluated for each input row |
On Errors |
string |
Determines action when query execution fails.
Evaluated for each input row |
Results
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
list |
List holding the results for all executed queries in order. Each entry in the list is a dict with a Update Count ResultsThe query returned a number indicating the number of rows changed by the query. If “Get Generated Keys” is enabled, generated keys for inserted values are present. The shape of the dict is:
Result Set ResultsThe query returned a result set with database records. The shape of the dict is:
Error ResultsThe query has resulted in an error. The shape of the dict is:
|