In this scenario, a tIngresOutputBulkExec component is deployed to prepare an output file with the employee data from a .csv file and then use that output file to feed a table in an Ingres database.
Drop tIngresConnection, tFileInputDelimited and tIngresOutputBulkExec from the Palette onto the workspace.
Rename tIngresOutputBulkExec as save_a_copy_and_load_to_DB.
Link tIngresConnection to tFileInputDelimited using an OnSubjobOk trigger.
Link tFileInputDelimited to tIngresOutputBulkExec using a Row > Main connection.
Double-click tIngresConnection to open its Basic settings view in the Component tab.
In the Server field, enter the address of the server where the Ingres DBMS resides, for example "localhost".
Keep the default settings of the Port field.
In the Database field, enter the name of the Ingres database, for example "research".
In the Username and Password fields, enter the authentication credentials.
A context variable is used for the password here. For more information on context variables, see Talend Studio User Guide.
Double-click tFileInputDelimited to open its Basic settings view in the Component tab.
Select the source file by clicking the [...] button next to the File name/Stream field.
Click the [...] button next to the Edit schema field to open the schema editor.
Click the [+] button to add four columns, for example name, age, job and dept, with the data type as string, Integer, string and string respectively.
Click OK to close the schema editor.
Click Yes on the pop-up window that asks whether to propagate the changes to the subsequent component.
Leave other default settings unchanged.
Double-click tIngresOutputBulkExec to open its Basic settings view in the Component tab.
In the Table field, enter the name of the table for data insertion.
In the VNode and Database fields, enter the names of the VNode and the database.
In the File Name field, enter the full path of the file that will hold the data of the source file.