Class: Sq::Dbsync::AllTablesPlan
- Inherits:
-
Object
- Object
- Sq::Dbsync::AllTablesPlan
- Defined in:
- lib/sq/dbsync/all_tables_plan.rb
Overview
Fetches all tables from the given source, retrieving tables and columns. Indexes are currently ignored.
Instance Method Summary collapse
Instance Method Details
#tables(source) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/sq/dbsync/all_tables_plan.rb', line 5 def tables(source) source.ensure_connection source.tables.map do |t| schema_for_table(source, t) end.compact end |