Professional Documents
Culture Documents
in Connection to DB
• Next we will see the steps for the creation of a standard Job with
access to MySQL Databases:
Access to relational databases
• Table name: Name of the table from which to extract the information
• You can also configure the column type in database (DB Type),
whether the value of the column (Nullable) is null or not and a
series of other characteristics about the columns.
Access to relational databases
• When defining the scheme and choose it in the repository,
we can click on the option ‘Guess Query’ and observe how
the field ‘Query’ of the preferences of the component has
been autocompleted forming the query through which it will
obtain the flow of information from the database:
Access to relational databases
• Action on data: Action to take with the flow of information, for example
the action of insert or insert the records
• The ‘On component ok’ trigger will divert the flow to commit,
that is, to the tMysqlCommit component.
• The trigger ‘On component error’ will divert the flow to the
tMysqlRollback component, to perform a rollback on a
database, that is, undo the changes made to it in case of an
error.
Access to relational databases
• To do this, we right click on the tMysqlOutput component by
selecting the option ‘Trigger / On component ok’ and clicking
on the tMysqlCommit component:
Access to relational databases