Results from Model.connection.execute

2 views
Skip to first unread message

Alex

unread,
Jul 3, 2009, 2:05:55 PM7/3/09
to Ruby on Rails: Talk
I am having trouble finding documentations on what this methods
returns.

I know for a SELECT query it will return an iterable object (although
I can't find any documentation on that).

I am doing a DELETE query. When executed this should return the
number of affected rows, which is the best way to tell if the query
worked. I'm also doing a COPY query.

Is there any way to get this result?

I am using postgres, so the result is a PGresult object, but that
object does not respond well to .inspect and has no docs.

Thanks.
Reply all
Reply to author
Forward
0 new messages