Sha256: 912911df9c4c1845caf2f60913a5313a734354fd3534a451b27fc4039ee1845c

Contents?: true

Size: 857 Bytes

Versions: 26

Compression:

Stored size: 857 Bytes

Contents

module SportDb
  
  class Stats
    include Models

    def tables
      puts "  #{League.count} leagues  /  #{Season.count} seasons"
      puts "  #{Event.count} events (league+season recs)  /  #{Round.count} rounds  /  #{Group.count} groups"
      puts "  #{Team.count} teams"
      puts "  #{Game.count} games"
      puts "  #{Badge.count} badges"

      puts "  #{Roster.count} rosters (person+team+event recs)"
      puts "  #{Goal.count} goals (person+game recs)"

      puts "  #{Assoc.count}  assocs|orgs"
      puts "  #{Ground.count}  grounds|stadiums"

## note: moved to racing.db  -- remove/delete!!
##      puts "  #{Track.count} tracks / #{Race.count} races (track+event recs) / #{Run.count} runs"
##      puts "  #{Record.count} records (race|run+person recs)"
    end

  end  # class Stats

end  # module SportDb

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
sportdb-models-1.19.0 lib/sportdb/stats.rb
sportdb-models-1.18.6 lib/sportdb/stats.rb
sportdb-models-1.18.5 lib/sportdb/stats.rb
sportdb-models-1.18.4 lib/sportdb/stats.rb
sportdb-models-1.18.3 lib/sportdb/stats.rb
sportdb-models-1.18.2 lib/sportdb/stats.rb
sportdb-models-1.18.1 lib/sportdb/stats.rb
sportdb-models-1.18.0 lib/sportdb/stats.rb
sportdb-models-1.17.0 lib/sportdb/stats.rb
sportdb-models-1.16.2 lib/sportdb/stats.rb
sportdb-models-1.16.1 lib/sportdb/stats.rb
sportdb-models-1.16.0 lib/sportdb/stats.rb
sportdb-models-1.15.2 lib/sportdb/stats.rb
sportdb-models-1.15.1 lib/sportdb/stats.rb
sportdb-models-1.15.0 lib/sportdb/stats.rb
sportdb-models-1.14.2 lib/sportdb/stats.rb
sportdb-models-1.14.1 lib/sportdb/stats.rb
sportdb-models-1.14.0 lib/sportdb/stats.rb
sportdb-models-1.13.0 lib/sportdb/stats.rb
sportdb-models-1.12.0 lib/sportdb/stats.rb