File: pretty_table.rb [sequel-4.23.0 Documentation]

Last Modified
  2015-09-06 14:04:39 +0000
Requires

## Description

The pretty_table extension adds Sequel::Dataset#print and the Sequel::PrettyTable class for creating nice-looking plain-text tables. Example:

    +--+-------+
    |id|name   |
    |--+-------|
    |1 |fasdfas|
    |2 |test   |
    +--+-------+

You can load this extension into specific datasets:

    ds = DB[:table]
    ds = ds.extension(:pretty_table)

Or you can load it into all of a database's datasets, which is probably the desired behavior if you are using this extension:

    DB.extension(:pretty_table)