To integrate with any on-premises system that supports Java Database Connectivity (JDBC) as part of a chain, add a step that includes a JDBC connection command.
To enable these commands, an IT admin first creates a JDBC connector.
Execute create
To execute a CREATE statement, use an Execute create command.
Properties
| Input |
Detail |
| SQL text/file |
Enter the SQL text or file to execute. |
Outputs
None
Exit codes
| Code |
Type |
Detail |
| 0 |
Success |
Success |
| 1 |
Error |
General failure |
| 3 |
Error |
Failed to run the command |
Execute query
To execute a SELECT query and receive its results as a comma-separated values (CSV) file, use an Execute query command.
Properties
| Input |
Detail |
| SQL text/file |
Enter the SQL text or file to execute. |
| Delimiter |
Select the delimiter to use in the CSV output. |
| Preview results |
To see a preview of the returned row, check this box. |
| Statements |
Add a list of SQL statements to be executed before your query. This is optional. |
Outputs
| Output |
Output type |
| Record count |
Integer |
| Result set (CSV) |
File |
Exit codes
| Code |
Type |
Detail |
| 0 |
Success |
Success |
| 1 |
Error |
General failure |
| 3 |
Error |
Failed to run the command |
Execute SQL
To execute any SQL command, use an Execute SQL command. If there's a result set, it will be available as a file output.
Properties
| Input |
Detail |
| SQL text/file |
Enter the SQL text or file to execute. |
| Statements |
Add a list of SQL statements to be executed before your query. This is optional. |
Outputs
| Output |
Output type |
| Record count |
Integer |
| Result set (CSV) |
File |
| Records updated |
Integer |
Exit codes
| Code |
Type |
Detail |
| 0 |
Success |
Success |
| 1 |
Error |
General failure |
| 3 |
Error |
Failed to run the command |
Execute update
To execute an UPDATE statement, use an Execute update command.
Properties
| Input |
Detail |
| SQL text/file |
Enter the SQL text or file to execute. |
Outputs
| Output |
Output type |
| Records updated |
Integer |
Exit codes
| Code |
Type |
Detail |
| 0 |
Success |
Success |
| 1 |
Error |
General failure |
| 3 |
Error |
Failed to run the command |
Get table definition
To retrieve the details of a table—including its columns, primary keys, and foreign keys—as JSON, use a Get table definition command.
Properties
| Input |
Detail |
| Table |
Enter the table to retrieve the definition of. |
Outputs
| Output |
Output type |
| Table metadata |
File |
Exit codes
| Code |
Type |
Detail |
| 0 |
Success |
Success |
| 1 |
Error |
Invalid inputs were given |
| 3 |
Error |
Failed to run the command |
Insert records
To execute an INSERT statement, use an Insert records command. The source of the data can be either multi-lined text or a CSV file.
Properties
| Input |
Detail |
| Table |
Enter the table to insert records into. |
| CSV data source |
Enter the CSV file to insert into the table. The columns in the CSV file must be in the same order as Columns. |
| Delimiter |
Select the delimiter used in CSV data source. |
| Is a file |
If CSV data source is a file, check this box. |
| Includes headers |
If the first row of CSV data source is the headers, check this box. |
| Columns |
Enter the list of columns that CSV data source will populate, in the same order as CSV data source. |
| Value template |
Enter the custom values declaration for the INSERT command. Indicate values with a ?. The number of ?s should match the number of fields in the target. To auto-generate, leave blank. |
Outputs
| Output |
Output type |
| Records inserted |
Integer |
Exit codes
| Code |
Type |
Detail |
| 0 |
Success |
Success |
| 1 |
Error |
General failure |
| 3 |
Error |
Failed to run the command |