| Class | Sequel::Dataset::Query |
| In: |
lib/sequel/extensions/query.rb
|
| Parent: | Sequel::BasicObject |
Proxy object used by Dataset#query.
| dataset | [R] | The current dataset in the query. This changes on each method call. |
# File lib/sequel/extensions/query.rb, line 59
59: def initialize(dataset)
60: @dataset = dataset
61: end
Replace the query‘s dataset with dataset returned by the method call.
# File lib/sequel/extensions/query.rb, line 64
64: def method_missing(method, *args, &block)
65: @dataset = @dataset.send(method, *args, &block)
66: raise(Sequel::Error, "method #{method.inspect} did not return a dataset") unless @dataset.is_a?(Dataset)
67: self
68: end