Module: Sequel::DatabaseQuery

Defined in:
lib/sequel/extensions/query.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(db) ⇒ Object



29
30
31
# File 'lib/sequel/extensions/query.rb', line 29

def self.extended(db)
  db.extend_datasets(DatasetQuery)
end

Instance Method Details

#query(&block) ⇒ Object

Return a dataset modified by the query block



34
35
36
# File 'lib/sequel/extensions/query.rb', line 34

def query(&block)
  dataset.query(&block)
end