Sha256: 04ec63076eb7564ada684be308f6b691b4cce92f8e95d1116edfad000bcedbee

Contents?: true

Size: 160 Bytes

Versions: 9

Compression:

Stored size: 160 Bytes

Contents

module Prosperity
  class Aggregate::Count < Aggregate::Base
    def to_sql
      "COUNT(1)"
    end

    def apply(scope)
      scope.count
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
prosperity-0.0.10 lib/prosperity/aggregate/count.rb
prosperity-0.0.9 lib/prosperity/aggregate/count.rb
prosperity-0.0.8 lib/prosperity/aggregate/count.rb
prosperity-0.0.7 lib/prosperity/aggregate/count.rb
prosperity-0.0.6 lib/prosperity/aggregate/count.rb
prosperity-0.0.5 lib/prosperity/aggregate/count.rb
prosperity-0.0.4 lib/prosperity/aggregate/count.rb
prosperity-0.0.3 lib/prosperity/aggregate/count.rb
prosperity-0.0.2 lib/prosperity/aggregate/count.rb