module Sequel::DatasetPrinter

  1. lib/sequel/extensions/pretty_table.rb

Methods

Public Instance

  1. print

Public Instance methods

print(*cols)

Pretty prints the records in the dataset as plain-text table.

[show source]
   # File lib/sequel/extensions/pretty_table.rb
32 def print(*cols)
33   ds = naked
34   rows = ds.all
35   Sequel::PrettyTable.print(rows, cols.empty? ? ds.columns : cols)
36 end