/talendcomp_tSQLScriptParser

Talend component to parse a SQL script

Primary LanguageJavaApache License 2.0Apache-2.0

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