Method: Og::MysqlAdapter#table_info

Defined in:
lib/og/adapter/mysql.rb

#table_info(table) ⇒ Object

Returns the MySQL information of a table within the database or nil if it doesn’t exist. Mostly for internal usage.



195
196
197
198
# File 'lib/og/adapter/mysql.rb', line 195

def table_info(table)
  r = query_statement("SHOW TABLE STATUS FROM #{@options[:name]} LIKE '#{self.class.escape(table.to_s)}'")
  return r && r.blank? ? nil : r.next
end