MySQL Multi Execute
Overview
This Snap allows you to execute multiple SQL statements for each document. Each set of statements is executed as one transaction (per document). The Snap will substitute values from an incoming document into the SQL statement if it finds a JSONPath substring in the statement. If a substitution value is missing in the incoming document then the document will be written to an error view.
Multiple documents cannot be executed as part of one transaction, the relationship is one transaction per document.
This Snap only supports write operations.
The account being used must have auto commit set to false, otherwise the Snap will fail with a configuration exception.
- This is a Write-type Snap.
Works in Ultra Tasks
Prerequisites
A valid account with appropriate privileges to execute the SQL statements in the target MySQL database.
Limitations
Works in Ultra Tasks if Batch Size is not selected.
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input | Each input document contains one or more SQL statements to execute. The Snap processes all statements within a transaction. | |
| Output | Each output document contains the execution results for all SQL statements, including row counts affected and any result sets returned. | |
| Learn more about Error handling. | ||
Snap settings
- Expression icon (
): Allows using pipeline parameters to set field values dynamically (if enabled). SnapLogic Expressions are not supported. If disabled, you can provide a static value.
- SnapGPT (
): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
- Suggestion icon (
): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
- Upload
: Uploads files. Learn more.
| Field/Field set | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
Label
String |
Required.The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |||||||||
| Executions | Required.A list of statements that are executed as one transaction.
|
|||||||||
| Number of retries
|
Specifies the maximum number of attempts to be made to receive a response. The request is terminated if the attempts do not result in a response.
Example: 3 Default value: 0 |
|||||||||
| Retry interval (seconds)
|
Specifies the time interval between two successive retry requests. A retry happens only when the previous attempt resulted in an exception.
Example: 10 Default value: 1 |
|||||||||
Snap execution
Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
|