Forum: Ruby on Rails ResultSetMetaData

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Michael B. (Guest)
on 2006-04-19 19:02
dose Ruby or ActiveRecord have the Java/JDBC equivalent for retrieving
ResultSet meta data...

PreparedStatement statement = null;
try
{
  statement = connection.prepareStatement("select * from some_table");

  ResultSet rs = null;
  try
  {
    rs = statement.executeQuery();
    ResultSetMetaData rsMetaData = rs.getMetaData();
    int columnCount = rsMetaData.getColumnCount();

    more stuff...
This topic is locked and can not be replied to.