MySQL

Frends templates for MySQL. MySQL is an open-source relational database management system known for its simplicity.
This template generates JSON data from MySQL database server. Using this template, you can fetch data from MySQL database server, transform it into JSON file which will be saved on SFTP server.
This template assumes that the following prerequisites are in place:
This template creates a new CSV file based on the data from the SQL query.
The variable SelectionCriteria provides the possibility to add conditions to the SELECT statement. This variable can be left empty.
If the file already exists on the SFTP server, it will be overwritten.
Example JSON data
[
{
"email": "john@example.org",
"firstname": "John",
"lastname": "Smith",
"title": "Mr"
},
{
"email": "jane@example.org",
"firstname": "Jane",
"lastname": "Doe",
"title": "Ms"
}
]
This template does not handle transient errors separately, however the connection to the SFTP server and MySQL database are retried three time before failing.
The template does not handle any SQL errors that may occur - the errors will be thrown as exceptions.
Directory | File directory for the CSV file on the SFTP server. |
FileName | File name for the file on the SFTP server. |
ServerAddress | SFTP server address. |
ServerUser | SFTP server user. |
ServerPassword 🗝 | SFTP server user's password. |
ConnectionString 🗝 | Connection string to access the database. |
ColumnNames | A comma separated list of the columns that are to be selected. |
SelectionCriteria | The WHERE criteria for selecting the correct data from the database. |
TableName | Name of the database table. |