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

feat: Disable triggers options #252

Merged
merged 10 commits into from
Dec 7, 2024
Merged

feat: Disable triggers options #252

merged 10 commits into from
Dec 7, 2024

Conversation

wwoytenko
Copy link
Contributor

@wwoytenko wwoytenko commented Dec 7, 2024

Closes #228

  • Implemented --disable-triggers - disables triggers on the restoring table
  • Implemented --use-session-replication-role-replica - kind of workaround option for AWS RDS
  • Implemented --superuser - uses superuser role provided to disable tigers or set session-replication-role to replica
  • Refactored TableRestorer and TableRestorerInsertFormat - implemented restoreBase struct that embeds with base functionality.
  • Implemented suite test helpers that provides base functionality to PG container in unit tests
  • Added simple storage mock
  • Covered Table restorers with tests

* Implemented --disable-triggers - disables triggers on the restoring table
* Implemented --use-session-replication-role-replica - kind of workaround option for AWS RDS
* Implemented --superuser - uses superuser role provided to disable tigers or set session-replication-role to replica
* Refactored TableRestorer and TableRestorerInsertFormat - implemented restoreBase struct that embeds with base functionality.
* Implemented suite test helpers that provides base functionality to PG container in unit tests
* Added simple storage mock
Copy link

sonarqubecloud bot commented Dec 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
66.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@wwoytenko wwoytenko merged commit 33511ef into main Dec 7, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disabling foreign keys on AWS RDS.
1 participant