Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.13 KB

File metadata and controls

23 lines (13 loc) · 1.13 KB

Talend Compopnent tSQLScriptParser

Talend component to parse a SQL script.

You can define the SQL script inside the component SQL field or read the script from a file.

Use the Iterate flow from the component to trigger the run for the statements (statement by statement) in a tDBRow component. The tDBRow component can take the current single statement from a return value of the component.

Very simple example:

Demo job design

Example with prepared statements (setup the parameter value happen in the tPostgresRow component):

Demo job design

Better design with a separate connection component and a proper transaction handling:

Demo job design

Here a design of a generic job running SQL scripts:

Demo job design