Skip to content

jlolling/talendcomp_tSQLScriptParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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