module Sequel::Plugins::TableSelect::ClassMethods

Private Instance Methods

convert_input_dataset(ds) click to toggle source

If the underlying dataset selects from a single table and has no explicit selection, select table.* from that table.

Calls superclass method
# File lib/sequel/plugins/table_select.rb, line 33
def convert_input_dataset(ds)
  ds = super
  if !ds.opts[:select] && (from = ds.opts[:from]) && from.length == 1 && !ds.opts[:join]
    ds = ds.select_all(ds.first_source)
  end
  ds
end