jlolling / talendcomp_tSQLScriptParser

Talend component to parse a SQL script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Talend component to parse a SQL script

License:Apache License 2.0


Languages

Language:Java 100.0%