Forum: Ruby on Rails ResultSetMetaData

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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;
  statement = connection.prepareStatement("select * from some_table");

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

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