tAmazonMysqlOutput
Writes, updates, makes changes or suppresses entries in a database.
tAmazonMysqlOutput executes the action defined on the
table and/or on the data contained in the table, based on the flow incoming from the
preceding component in the Job.
tAmazonMysqlOutput Standard properties
These properties are used to configure tAmazonMysqlOutput running in the Standard Job framework.
The Standard
tAmazonMysqlOutput component belongs to the Cloud and the Databases families.
The component in this framework is available in all Talend
products.
connector. The properties related to database settings vary depending on your database
type selection. For more information about dynamic database connectors, see Dynamic database components.
Basic settings
Database |
Select a type of database from the list and click |
Property type |
Either Built-in or Repository. |
 |
Built-in: No property data stored |
 |
Repository: Select the repository |
DB Version |
MySQL 5 is available. |
Use an existing connection |
Select this check box and in the Component List click the relevant connection component to Note: When a Job contains the parent Job and the child Job, if you
need to share an existing connection between the two levels, for example, to share the connection created by the parent Job with the child Job, you have to:
For an example about how to share a database connection |
Host |
Database server IP address. |
Port |
Listening port number of DB server. |
Database |
Name of the database. |
Username and |
DB user authentication data. To enter the password, click the […] button next to the |
Table |
Name of the table to be written. Note that only one table can be |
Action on table |
On the table defined, you can perform one of the following
None: No operation is carried
Drop and create table: The table is
Create table: The table does not
Create table if not exists: The
Drop table if exists and create:
Clear table: The table content is
Truncate table: The table content |
Action on data |
On the data of the table defined, you can perform:
Insert: Add new entries to the
Update: Make changes to existing Insert or update: Insert a new record. If Update or insert: Update the record with the
Delete: Remove entries
Replace: Add new entries to the
Insert or update on duplicate key or unique
Insert Ignore: Add only new rows to Warning:
You must specify at least one column as a Note:
The dynamic schema feature can be used in the |
Schema and Edit |
A schema is a row description, i.e. it defines the number of This This |
 |
Built-In: You create and store the schema locally for this component |
 |
Repository: You have already created the schema and stored it in the When the schema to be reused has default values that are You can find more details about how to |
Die on error |
This check box is selected by default. Clear the check box to skip |
Advanced settings
Additional JDBC parameters |
Specify additional connection properties for the DB connection you Note:
You can press Ctrl+Space to |
||
Extend Insert |
Select this check box to carry out a bulk insert of a defined set
Number of rows per insert: enter Note:
This option is not compatible with the Reject link. You should therefore clear the Warning:
If you are using this component with |
||
Use Batch |
Select this check box to activate the batch mode for data processing. Note:
This check box is available only when you have selected, the |
||
Batch Size |
Specify the number of records to be processed in each batch. This field appears only when the Use batch mode |
||
Commit every |
Number of rows to be included in the batch before it is committed |
||
Additional Columns |
This option is not available if you have just created the DB table |
||
 |
Name: Type in the name of the |
||
 |
SQL expression: Type in the SQL |
||
 |
Position: Select Before, Replace or After, |
||
 |
Reference column: Type in a |
||
Use field options |
Select this check box to customize a request, particularly if |
||
Use Hint Options |
Select this check box to activate the hint configuration area – HINT: specify the hint you
need, using the syntax
POSITION: specify where you put the hint in a SQL statement. – SQL STMT: select the SQL |
||
Debug query mode |
Select this check box to display each step during processing entries |
||
Use duplicate key update mode insert |
Updates the values of the columns specified, in the event of
Column: Between double quotation
Value: Enter the action you want to Note:
To use this option you must first of all select the Insert mode in the Action on data list found in the |
||
tStatCatcher Statistics |
Select this check box to collect log data at the component |
||
Enable parallel execution |
Select this check box to perform high-speed data processing, by treating
multiple data flows simultaneously. Note that this feature depends on the database or the application ability to handle multiple inserts in parallel as well as the number of CPU affected. In the Number of parallel executions field, either:
Note that when parallel execution is enabled, it is not possible to use global Warning:
|
Global Variables
Global Variables |
NB_LINE: the number of rows read by an input component or
NB_LINE_UPDATED: the number of rows updated. This is an
NB_LINE_INSERTED: the number of rows inserted. This is an
NB_LINE_DELETED: the number of rows deleted. This is an
NB_LINE_REJECTED: the number of rows rejected. This is an
QUERY: the query statement processed. This is an After
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component offers the flexibility benefit of the DB query and This component must be used as an output component. It allows you |
Dynamic settings |
Click the [+] button to add a row in the table The Dynamic settings table is For examples on using dynamic parameters, see Reading data from databases through context-based dynamic connections and Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic |
Related scenarios
For related scenarios, see tMysqlSCD.