CrystalDoc::Queries
Constants
Log = ::Log.for(self)
Class methods
add_featured_repo(db : Queriable, repo_id : Int32)
Sourcecurrent_repo_versions(db : Queriable, repo_id) : Array(String)
Sourcefind_repo(db : Queriable, user : String, proj : String, distinct : Bool = false) : Array(Repo)
Sourceget_repo_data(db : Queriable, repo_id : Int32) : Ext::Data | Nil
Sourceget_repo_id(db : Queriable, source_url : String)
Sourceinsert_doc_job(db : Queriable, version_id : Int32, priority : Int32)
Sourceinsert_repo_version(db : Queriable, repo_id : Int32, tag : String, nightly : Bool) : Int32
Sourcelatest_version(db : Queriable, service : String, username : String, project_name : String) : String
Returns the current latest version as a string for a service/username/project_name combination
mark_version_invalid(db : Queriable, commit : String, service : String, username : String, project_name : String)
Sourcemark_version_valid(db : Queriable, commit : String, service : String, username : String, project_name : String)
Sourcepopular_repos(db : Queriable, count : Int32 = 10) : Array(Repo)
Sourcerandom_repo(db : Queriable) : Repo
Sourcerecently_updated_repos(db : Queriable, count : Int32 = 10) : Array(Repo)
Sourcerefresh_repo_versions(db : Queriable, repo_id : Int32)
Sourceregenerate_all_docs(db : Queriable) : Int32
Sourceremove_featured_repo(db : Queriable, repo_id : Int32)
Sourcerepo_count(db : Queriable)
Sourcerepo_exists(db : Queriable, service : String, username : String, project_name : String) : Bool
Sourcerepo_exists(db : Queriable, source_url : String) : Bool
Sourcerepo_exists_and_valid(db : Queriable, service : String, username : String, project_name : String) : Bool
Sourcerepo_from_source(db : Queriable, source_url : String) : Array(Repo)
Sourcerepo_needs_updating(db : Queriable) : Array(Repo)
Sourcerepo_nightly_version_id(db : Queriable, service : String, username : String, project_name : String) : Int32
Sourcerepo_version_exists(db : Queriable, service : String, username : String, project_name : String, version : String) : Bool
Sourcerepo_version_valid_count(db : Queriable)
Sourceupdate_latest_repo_version(db : Queriable, repo_id : Int32, latest_version_id : Int32)
Sourceupdate_repo_data(db : Queriable, repo_id : Int32, data : Ext::Data)
Sourceupsert_repo_status(db : Queriable, last_commit : String, repo_id : Int32)
Sourceversions_json(db : Queriable, service : String, username : String, project_name : String) : String
Source