Module: Sequel::DatabaseQuery

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(db) ⇒ Object


24
25
26
# File 'lib/sequel/extensions/query.rb', line 24

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

Instance Method Details

#query(&block) ⇒ Object

Return a dataset modified by the query block


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

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