steve_ivy
09/12/2021, 6:26 PMsteve_ivy
09/12/2021, 6:27 PMselect
config for some patterns…steve_ivy
09/12/2021, 6:28 PMedgar_ramirez_mondragon
09/12/2021, 7:06 PMsteve_ivy
09/13/2021, 1:32 AMsteve_ivy
09/13/2021, 12:37 PMedgar_ramirez_mondragon
09/13/2021, 12:42 PMtables:
- table_name: "table_one"
replication_method: "INCREMENTAL" # One of INCREMENTAL, LOG_BASED and FULL_TABLE
replication_key: "last_update" # Important: Incremental load always needs replication key
# OPTIONAL: Load time transformations
#transformations:
# - column: "last_name" # Column to transform
# type: "SET-NULL" # Transformation type
# You can add as many tables as you need...
- table_name: "table_two"
replication_method: "LOG_BASED" # Important! Log based must be enabled in MySQL
?steve_ivy
09/13/2021, 12:43 PMedgar_ramirez_mondragon
09/13/2021, 12:57 PMmeltano.yml
as
plugins:
extractors:
# Base tap
- name: tap-postgres
load_schema: repl_pg_public
select:
- "public.table_one"
- "public.table_two"
metadata:
public-table_one:
replication_method: INCREMENTAL
replication_key: last_update
public-table_two:
replication_method: LOG_BASED
If you wanted to split the tables in your db between multiple taps with different configuration, the easiest wa is to use plugin inheritancesteve_ivy
09/13/2021, 1:05 PMsteve_ivy
09/13/2021, 1:05 PMsteve_ivy
09/13/2021, 1:06 PMsteve_ivy
09/13/2021, 1:06 PM