Method: IMW::Schemes::SQL::Base#tables

Defined in:
lib/imw/schemes/sql.rb

#tablesArray<String>

Return an array of the table names in the current database.

Returns:



67
68
69
70
71
72
73
# File 'lib/imw/schemes/sql.rb', line 67

def tables
  returning([]) do |table_names|
    execute("SHOW TABLES") do |row|
      table_names << row.first
    end
  end
end