Module: Sequel::Database::FromBlock
- Defined in:
- lib/sequel/extensions/from_block.rb
Instance Method Summary collapse
-
#from(*args, &block) ⇒ Object
If a block is given, make it affect the FROM clause: DB.fromtable_function(1) # SELECT * FROM table_function(1).
Instance Method Details
#from(*args, &block) ⇒ Object
If a block is given, make it affect the FROM clause:
DB.from{table_function(1)}
# SELECT * FROM table_function(1)
21 22 23 24 25 26 27 |
# File 'lib/sequel/extensions/from_block.rb', line 21 def from(*args, &block) if block @default_dataset.from(*args, &block) else super end end |