module Sequel::Database::FromBlock

Public Instance Methods

from(*args, &block) click to toggle source

If a block is given, make it affect the FROM clause:

DB.from{table_function(1)}
# SELECT * FROM table_function(1)
Calls superclass method
# File lib/sequel/extensions/from_block.rb, line 25
def from(*args, &block)
  if block
    @default_dataset.from(*args, &block)
  else
    super
  end
end