Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema pg replication #604

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

schema pg replication #604

wants to merge 10 commits into from

Conversation

rudolfix
Copy link
Contributor

Tell us what you do here

  1. allows to create a publication for a schema and create initial snapshots via list of tables taken from sql_database
  2. skips dlt tables from being replicated
  3. a test that demonstrates schema replication and auto-adding of new tables

@rudolfix rudolfix requested a review from VioletM March 11, 2025 17:08
@rudolfix rudolfix added the ci from fork Allows to run tests from PR coming from fork label Mar 12, 2025
@rudolfix rudolfix self-assigned this Mar 12, 2025
Copy link
Contributor

@VioletM VioletM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, works for me locally, added small comment. Also tests are failing

@@ -340,17 +404,19 @@ def persist_snapshot_table(
col_str = "*"
if include_columns is not None:
col_str = ", ".join(map(escape_postgres_identifier, include_columns))
snapshot_table_name = f"{table_name}_snapshot_{snapshot_name}"
# make sure to shorten identifier
naming = NamingConvention(63)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment, let's put this value to some constant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci from fork Allows to run tests from PR coming from fork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants