struct

CrystalCommunity::DB::GithubStat

Inherits DB::Mappable / DB::Serializable / Struct / Value / Object

Constants

SELECT_ROW = "id, since, repos_scanned, unique_owners, unique_committers, collected_at, repos_pushed_last_30d, repos_created_last_30d, total_stars, stars_bucket_0, stars_bucket_1_10, stars_bucket_11_100, stars_bucket_101_1000, stars_bucket_1001_plus, repos_owner_user, repos_owner_org, top_topics_json"

Constructors

insert!(since : Time, repos_scanned : Int32, unique_owners : Int32, unique_committers : Int32, repos_pushed_last_30d : Int32, repos_created_last_30d : Int32, total_stars : Int64, stars_bucket_0 : Int32, stars_bucket_1_10 : Int32, stars_bucket_11_100 : Int32, stars_bucket_101_1000 : Int32, stars_bucket_1001_plus : Int32, repos_owner_user : Int32, repos_owner_org : Int32, top_topics_json : String, collected_at : Time = Time.utc) : GithubStat
Source

Class methods

from_rs(rs : ::DB::ResultSet)
Source
latest
Source
recent_chronological(limit : Int32 = 120) : Array(GithubStat)

Oldest-first, for charts (last limit runs by time).

Source

Instance methods

collected_at
Source
collected_at=(collected_at : Time)
Source
id=(id : Int64 | Nil)
Source
repos_created_last_30d
Source
repos_created_last_30d=(repos_created_last_30d : Int32)
Source
repos_owner_org
Source
repos_owner_org=(repos_owner_org : Int32)
Source
repos_owner_user
Source
repos_owner_user=(repos_owner_user : Int32)
Source
repos_pushed_last_30d
Source
repos_pushed_last_30d=(repos_pushed_last_30d : Int32)
Source
repos_scanned
Source
repos_scanned=(repos_scanned : Int32)
Source
since
Source
since=(since : Time)
Source
stars_bucket_0
Source
stars_bucket_0=(stars_bucket_0 : Int32)
Source
stars_bucket_1001_plus
Source
stars_bucket_1001_plus=(stars_bucket_1001_plus : Int32)
Source
stars_bucket_101_1000
Source
stars_bucket_101_1000=(stars_bucket_101_1000 : Int32)
Source
stars_bucket_11_100
Source
stars_bucket_11_100=(stars_bucket_11_100 : Int32)
Source
stars_bucket_1_10
Source
stars_bucket_1_10=(stars_bucket_1_10 : Int32)
Source
top_topics
Source
top_topics_json
Source
top_topics_json=(top_topics_json : String)
Source
total_stars
Source
total_stars=(total_stars : Int64)
Source
unique_committers
Source
unique_committers=(unique_committers : Int32)
Source
unique_owners
Source
unique_owners=(unique_owners : Int32)
Source