lib/eol/scenario_loader.rb
# No sense in exporting empty tables...
No sense in exporting empty tables
No sense in exporting empty tables
def tables_to_export_from_connection(conn)
      tables = []
      conn.tables.each do |table|
        next if table == 'schema_migrations'
        count_rows = conn.execute("SELECT 1 FROM `#{table}` LIMIT 1").count
        tables << table if count_rows > 0
      end
      tables
    end
def tables_to_export_from_connection ( conn ) tables = [ ] conn . tables . each do | table | next if table == 'schema_migrations' count_rows = conn . execute ( "SELECT 1 FROM `#{table}` LIMIT 1" ) . count tables << table if count_rows > 0 end tables end
No sense in exporting empty tables...
No sense in exporting empty tables ...
conn
<not_specific>