Read a MySQL Table and Write Its Contents
In this example, we use the REST Post Snap to read a table in MySQL and write the contents to a file. It is designed to run against the MySQL sample database sakila, but can be easily adapted to work against any database.
This example consists of two pipelines:
REST_MySql_to_file_1_of_2REST_MySql_to_file_2_of_2
This example illustrates:
- How to use REST Post to invoke a remote service.
- How to convert a pipeline parameter to a document parameter.
- How to populate a column in a database with the current datetime.
- How to convert a JSON document to a flat CSV file.