Method: Sequel::Database#from
- Defined in:
- lib/sequel/database.rb
#from(*args, &block) ⇒ Object
Returns a new dataset with the from method invoked. If a block is given, it is used as a filter on the dataset.
312 313 314 315 |
# File 'lib/sequel/database.rb', line 312 def from(*args, &block) ds = dataset.from(*args) block ? ds.filter(&block) : ds end |