Class | RR::TableSorter |
In: |
lib/rubyrep/table_sorter.rb
|
Parent: | Object |
This class sorts a given list of tables so that tables referencing other tables via foreign keys are placed behind those referenced tables.
Rationale: If tables are sorted in that sequence, the risk of foreign key violations is smaller.
session | [RW] | The active Session |
tables | [RW] | The list of table names to be ordered |
Initializes the TableSorter