Proxy object used by Sequel::Dataset#query.
The current dataset in the query. This changes on each method call.
# File lib/sequel/extensions/query.rb, line 42 def initialize(dataset) @dataset = dataset end
Replace the query's dataset with dataset returned by the method call.
# File lib/sequel/extensions/query.rb, line 47 def method_missing(method, *args, &block) @dataset = @dataset.send(method, *args, &block) raise(Sequel::Error, "method #{method.inspect} did not return a dataset") unless @dataset.is_a?(Dataset) self end