Method: Myq::Core#tables
- Defined in:
- lib/myq/core.rb
#tables(table_name) ⇒ Object
94 95 96 97 98 99 100 |
# File 'lib/myq/core.rb', line 94 def tables(table_name) if table_name.nil? query('SELECT * FROM INFORMATION_SCHEMA.TABLES') else query("show full columns from #{table_name}") end end |