-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Prevent cascade deletion of excluded tables * Divide fetchTablesSchemas into fetching and filtering * Added unit test of filterTableSchemas * Applied format * Put index_schema.go into table_schema.go * Directly pass a query for fetching table schema * Fix TestFilterTableSchemas * Move target logic from fetch to filter * Revert unnecessary change. * Improve filterTableSchemas switch statement * Change map[string]struct{} into map[string]bool. * Separated TestFilterTableSchemas into TestTargetFilterTableSchemas and TestExcludeFilterTableSchemas. * Improve switch case statement * Refactored the filter logic to use recursion. * Applied format * Fix the bug building parentRelation and childRelation. * Optimized redundant for statement. * Eliminated the subtest structure. * Remove cascade deletability check from constructTableLineages * Add test to ensure parents of tables with ON DELETE NO ACTION are not excluded
- Loading branch information
1 parent
46aeb0d
commit 99de663
Showing
4 changed files
with
364 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.