Topic: How to get table row size using ror?

Hi, I need to code a method that will need the table row size from mysql, is there any magic variable for Data_length? Thanks

Re: How to get table row size using ror?

do you mean the number of columns in the table or the number of rows?

If you want to count how many records match your query just use:
SomeModel.count(:conditions => "some_column = 4")
or just plain
SomeModel.count
to count them all.

Re: How to get table row size using ror?

I meant the byte size of a table, or the byte size of each column