module

CrystalDoc::Queries

Constants

Log = ::Log.for(self)

Class methods

current_repo_versions(db : Queriable, repo_id) : Array(String)
Source
find_repo(db : Queriable, user : String, proj : String, distinct : Bool = false) : Array(Repo)
Source
get_repo_data(db : Queriable, repo_id : Int32) : Ext::Data | Nil
Source
get_repo_id(db : Queriable, source_url : String)
Source
insert_doc_job(db : Queriable, version_id : Int32, priority : Int32)
Source
insert_repo_version(db : Queriable, repo_id : Int32, tag : String, nightly : Bool) : Int32
Source
latest_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

Source
mark_version_invalid(db : Queriable, commit : String, service : String, username : String, project_name : String)
Source
mark_version_valid(db : Queriable, commit : String, service : String, username : String, project_name : String)
Source
random_repo(db : Queriable) : Repo
Source
recently_updated_repos(db : Queriable, count : Int32 = 10) : Array(Repo)
Source
refresh_repo_versions(db : Queriable, repo_id : Int32)
Source
regenerate_all_docs(db : Queriable) : Int32
Source
repo_count(db : Queriable)
Source
repo_exists(db : Queriable, service : String, username : String, project_name : String) : Bool
Source
repo_exists(db : Queriable, source_url : String) : Bool
Source
repo_exists_and_valid(db : Queriable, service : String, username : String, project_name : String) : Bool
Source
repo_from_source(db : Queriable, source_url : String) : Array(Repo)
Source
repo_needs_updating(db : Queriable) : Array(Repo)
Source
repo_nightly_version_id(db : Queriable, service : String, username : String, project_name : String) : Int32
Source
repo_version_exists(db : Queriable, service : String, username : String, project_name : String, version : String) : Bool
Source
repo_version_valid_count(db : Queriable)
Source
update_latest_repo_version(db : Queriable, repo_id : Int32, latest_version_id : Int32)
Source
update_repo_data(db : Queriable, repo_id : Int32, data : Ext::Data)
Source
upsert_repo_status(db : Queriable, last_commit : String, repo_id : Int32)
Source
versions_json(db : Queriable, service : String, username : String, project_name : String) : String
Source