module Sequel::GraphEach

Public Instance Methods

each() { |r| ... } click to toggle source

Call graph_each for graphed datasets that are not being eager graphed.

# File lib/sequel/extensions/graph_each.rb, line 26
def each
  if @opts[:graph] && !@opts[:eager_graph]
    graph_each{|r| yield r}
  else
    super
  end
end
with_sql_each(sql) { |r| ... } click to toggle source

Call graph_each for graphed datasets that are not being eager graphed.

# File lib/sequel/extensions/graph_each.rb, line 35
def with_sql_each(sql)
  if @opts[:graph] && !@opts[:eager_graph]
    graph_each(sql){|r| yield r}
  else
    super
  end
end