module Sequel::Database::FromBlock

  1. lib/sequel/extensions/from_block.rb
Parent: Database

Methods

Public Instance

  1. from

Public Instance methods

from (*args, &block)

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

DB.from{table_function(1)}
# SELECT * FROM table_function(1)
[show source]
# File lib/sequel/extensions/from_block.rb, line 20
def from(*args, &block)
  if block
    @default_dataset.from(*args, &block)
  else
    super
  end
end