Method: Lhm::Connection::ActiveRecordConnection#show_create
- Defined in:
- lib/lhm/connection.rb
#show_create(table_name) ⇒ Object
104 105 106 107 108 109 |
# File 'lib/lhm/connection.rb', line 104 def show_create(table_name) sql = "show create table `#{ table_name }`" specification = nil execute(sql).each { |row| specification = row.last } specification end |