MySQL
Query, insert and update data from MySQL.
Categories:
Type: mysql/v1
Connections
Version: 1
custom
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| username | Username | STRING | true | |
| password | Password | STRING | true |
Actions
Query
Name: query
Execute an SQL query.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| query | Query | STRING | The raw SQL query to execute. You can use :property1 and :property2 in conjunction with parameters. | true |
| parameters | Parameters | OBJECT Properties{} | The list of properties which should be used as query parameters. | false |
| maxRows | Max Rows | INTEGER | The maximum number of rows the query may return. The action fails if the query returns more rows. | false |
Example JSON Structure
{
"label" : "Query",
"name" : "query",
"parameters" : {
"query" : "",
"parameters" : { },
"maxRows" : 1
},
"type" : "mysql/v1/query"
}Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
Insert
Name: insert
Insert rows in database.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| schema | Schema | STRING | Name of the schema the table belongs to. | true |
| table | Table | STRING | Name of the table in which to insert data to. | true |
| columns | Columns | ARRAY Items[{STRING(name), STRING(type)}] | The list of the table column names where corresponding values would be inserted. | false |
| values | DYNAMIC_PROPERTIES Depends Oncolumns | false |
Example JSON Structure
{
"label" : "Insert",
"name" : "insert",
"parameters" : {
"schema" : "",
"table" : "",
"columns" : [ {
"name" : "",
"type" : ""
} ],
"values" : { }
},
"type" : "mysql/v1/insert"
}Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
Update
Name: update
Update rows in database.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| schema | Schema | STRING | Name of the schema the table belongs to. | true |
| table | Table | STRING | Name of the table in which to update data in. | true |
| condition | Condition | STRING | Condition that will be checked in the column. Example: column1=5 | true |
| columns | Columns | ARRAY Items[{STRING(name), STRING(type)}] | The list of the table column names where corresponding values would be updated. | false |
| values | DYNAMIC_PROPERTIES Depends Oncolumns | false |
Example JSON Structure
{
"label" : "Update",
"name" : "update",
"parameters" : {
"schema" : "",
"table" : "",
"condition" : "",
"columns" : [ {
"name" : "",
"type" : ""
} ],
"values" : { }
},
"type" : "mysql/v1/update"
}Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
Delete
Name: delete
Delete rows from database.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| schema | Schema | STRING | Name of the schema the table belongs to. | true |
| table | Table | STRING | Name of the table in which to update data in. | true |
| condition | Condition | STRING | Condition that will be checked in the column. Example: column1=5 | true |
Example JSON Structure
{
"label" : "Delete",
"name" : "delete",
"parameters" : {
"schema" : "",
"table" : "",
"condition" : ""
},
"type" : "mysql/v1/delete"
}Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
Execute
Name: execute
Execute an SQL DML or DML statement.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| execute | Execute | STRING | The raw DML or DDL statement to execute. You can use :property1 and :property2 in conjunction with parameters. | true |
| columns | Fields to select | ARRAY Items[{}] | List of fields to select from. | false |
| parameters | Parameters | OBJECT Properties{} | The list of values which should be used to replace corresponding criteria parameters. | false |
Example JSON Structure
{
"label" : "Execute",
"name" : "execute",
"parameters" : {
"execute" : "",
"columns" : [ { } ],
"parameters" : { }
},
"type" : "mysql/v1/execute"
}Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
Call Procedure
Name: call
Call a stored procedure or function (PL/SQL, PL/pgSQL, ...) and return its output parameters.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| call | Call | STRING | The call statement in JDBC escape syntax, for example {:result = call balance(:accountId)} for a function or {call transfer(:from, :to, :status)} for a procedure. A vendor block such as BEGIN :result := balance(:accountId); END; also works. Every :name placeholder is an input parameter unless it is declared in Output Parameters. Pass values through Parameters instead of writing them into the statement. | true |
| parameters | Parameters | OBJECT Properties{} | Values of the input (IN) and input/output (IN_OUT) parameters, keyed by placeholder name. | false |
| outputParameters | Output Parameters | ARRAY Items[{STRING(name), STRING(type), STRING(mode)}] | Placeholders the database writes to: the function return value and OUT or IN_OUT procedure arguments. | false |
Example JSON Structure
{
"label" : "Call Procedure",
"name" : "call",
"parameters" : {
"call" : "",
"parameters" : { },
"outputParameters" : [ {
"name" : "",
"type" : "",
"mode" : ""
} ]
},
"type" : "mysql/v1/call"
}Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
Triggers
New Row
Name: newRow
Triggers when new row is added.
Type: POLLING
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| schema | Schema | STRING | Name of the schema the table belongs to. | true |
| table | Table | STRING | Name of the table in which to update data in. | true |
| orderBy | Colum To Order By | STRING | Use something like a created timestamp or an auto-incrementing ID. | true |
| orderDirection | Order Direction | STRING OptionsASC, DESC | The direction to sort by such that the newest rows are fetched first. | true |
Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
JSON Example
{
"label" : "New Row",
"name" : "newRow",
"parameters" : {
"schema" : "",
"table" : "",
"orderBy" : "",
"orderDirection" : ""
},
"type" : "mysql/v1/newRow"
}How is this guide?
Last updated on