-
Notifications
You must be signed in to change notification settings - Fork 587
fix: Doesn't drop entire PG database, just cleans public schema - Cog 1947 #760
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
Conversation
Please make sure all the checkboxes are checked:
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe update modifies the logic in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SqlAlchemyAdapter
participant Database
User->>SqlAlchemyAdapter: call delete_database()
SqlAlchemyAdapter->>Database: reflect tables in "public" schema
SqlAlchemyAdapter->>Database: drop all tables in "public" schema
SqlAlchemyAdapter-->>User: operation complete
Possibly related PRs
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
await connection.execute(drop_table_query) | ||
metadata.clear() | ||
# Drop all tables from the public schema | ||
schema_name = "public" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'public_staging' schema also should be deleted, it's created by dlt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added deletion of 'public_staging' schema as well
Description
DCO Affirmation
I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin.