How to read CSV file and insert data into PostgreSQL using Mule ESB, Mule Studio

后端 未结 3 1022
离开以前
离开以前 2020-12-05 20:31

I am very new to Mule Studio.

I am facing a problem. I have a requirement where I need to insert data from a CSV file to PostgreSQL Database using Mule Studio.

3条回答
  •  渐次进展
    2020-12-05 20:44

    In order to read CSV file and insert data into PostgreSQL using Mule all you need to follow following steps: You need to have following things as pre-requisite

    • PostgreSQL
    • PostgreSQL JDBC driver
    • Anypoint Studio IDE and
    • A database to be created in PostgreSQL

    Then configure Postgre SQL JDBC Driver in Global Element Properties inside Studio Create Mule Flow in Anypoint Studio as follows:

    • Step 1: Wrap CSV file source in File component
    • Step 2: Convert between object arrays and strings
    • Step 3: Split each row
    • Step 4: Transform CSV row in array
    • Step 5: Dump into the destination Database

提交回复
热议问题