Replies: 1 comment 1 reply
-
from reladiff import connect_to_table, diff_tables
table1 = connect_to_table(
"postgresql://postgres:password@localhost:5432/dvdrental",
"actor",
"actor_id",
extra_columns=(
"first_name",
"last_name",
"last_update",
),
)
table2 = connect_to_table(
"postgresql://postgres:password@localhost:5432/dvdrental2",
"actor2",
"actor_id1",
extra_columns=(
"first_name1",
"last_name1",
"last_update1",
),
)
for sign, row in diff_tables(table1, table2):
print(sign, row) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Ryuk-me
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My source and target tables have different column names, including the key column. How can I achieve this if it's supported using python api.
My current workaround is to create a temporary view for the comparison.
Beta Was this translation helpful? Give feedback.
All reactions