From: Brian Candler Date: 2003-05-31T23:28:40+09:00 Subject: Re: console tables On Sat, May 31, 2003 at 05:39:49PM +0900, Culley harrelson wrote: > Has anyone seen or developed a class for producing tables on the > console, a la pgsql, mysql data display? Have a look at DBI::Utils::TableFormatter in the ruby-dbi-all package. Example of its use in sqlsh.rb : stmt = $dbconn.prepare(line) head = stmt.column_names next if head.empty? rows = stmt.fetch_all DBI::Utils::TableFormatter.ascii(head, rows) Regards, Brian.