Ian OLeary
01/27/2025, 4:10 PMtap-mssql
connector to create multiple taps that inherit from the same base `tap-mssql`tap or is there a simpler way to do it? The connection to MSSQL will be the same of course across all db's.Edgar Ramírez (Arch.dev)
01/27/2025, 8:52 PMIan OLeary
01/29/2025, 2:18 PMschema-table
. Since the tables I'm pulling are on different DBs but all share the same table name and columns, would meltano just ignore the fact the table already exists when it moves on to subsequent replications of the same table which exists on the other DBs? Again, all the columns/datatypes are the same.
Current:
- name: tap-mssql
variant: buzzcutnorman
pip_url: git+<https://github.com/BuzzCutNorman/tap-mssql.git>
config:
host: <our_host>
port: 1433
database: DB1
select:
- dbo-table.*
metadata:
DB1-dbo-table_name:
replication-method: INCREMENTAL
replication-key: REPLICATION_KEY
Proposed:
- name: tap-mssql
variant: buzzcutnorman
pip_url: git+<https://github.com/BuzzCutNorman/tap-mssql.git>
config:
host: <our_host>
port: 1433
database: DB1
select:
- DB1-dbo-table_name.*
- DB2-dbo-table_name.*
- DB3-dbo-table_name.*
metadata:
DB1-dbo-table_name:
replication-method: INCREMENTAL
replication-key: REPLICATION_KEY
DB2-dbo-table_name:
replication-method: INCREMENTAL
replication-key: REPLICATION_KEY
DB3-dbo-table_name:
replication-method: INCREMENTAL
replication-key: REPLICATION_KEY
Are there any glaring issues with this?Ian OLeary
01/29/2025, 3:03 PM- name: tap-mssql
variant: buzzcutnorman
pip_url: git+<https://github.com/BuzzCutNorman/tap-mssql.git>
config:
host: <host_ip>
port: 1433
- name: tap-mssql--db1
inherit_from: tap-mssql
config:
database: DB1
select:
- dbo-table_1_name.*
metadata:
dbo-table_1_name:
replication-method: INCREMENTAL
replication-key: <REPLICATION_KEY>
- name: tap-mssql--db2
inherit_from: tap-mssql
config:
database: DB2
select:
- dbo-table_1_name.*
metadata:
dbo-table_1_name:
replication-method: INCREMENTAL
replication-key: <REPLICATION_KEY>
Otherwise, If I'm doing the inheritance method would this be the rough setup?Ian OLeary
01/29/2025, 4:28 PMEdgar Ramírez (Arch.dev)
01/29/2025, 4:58 PMDB1-dbo-table_name.*
would certainly not work and the inheritance approach is the best.