Connector Details
Target MySQL
Config
target-mysql requires the standard 5 connection parameters to be specified in the config:
Example ETL Script
Optional config flags
The replace_null Option (Experimental)
By enabling the replace_null option, null values are replaced with ‘empty’ equivalents based on their data type. Use with caution as it may alter data semantics.
When replace_null is true, null values are replaced as follows:
The table_config option
By default, target-mysql will upsert your payload into each table. This means it will insert all new data into your table, but perform an update on primary key collision.
The table_config allows you to override this behavior with one of two insertion methods:
truncate: Delete the existing table and replace it with the new datainsert: Attempt to insert all records as new rows, throwing an error on primary key collision
truncate or insert methods, you can specify which tables should use the method using the table_config flag:
Tap Changelog
Tap Changelog
Tap Changelog