OpenPetra
Free Administration Software for Non-Profits
|
sort the tables by dependency of the constraints, using topological sort. in the end, we get a list of tables, in the order that you need when you populate the database with constraints enabled. first the tables that depend on nothing, and then the tables that depend on them. deleting the database can be done the other way round More...
Static Public Member Functions | |
static List< TTable > | TopologicalSort (TDataDefinitionStore AStore, List< TTable >AOrigTables) |
sort by dependancies More... | |
sort the tables by dependency of the constraints, using topological sort. in the end, we get a list of tables, in the order that you need when you populate the database with constraints enabled. first the tables that depend on nothing, and then the tables that depend on them. deleting the database can be done the other way round
|
inlinestatic |
sort by dependancies
AStore | |
AOrigTables |