module CrystalDoc::Queries
Defined in:
crystaldoc/queries.crConstant Summary
-
Log =
::Log.for(self)
Class Method Summary
- .add_featured_repo(db : Queriable, repo_id : Int32)
- .current_repo_versions(db : Queriable, repo_id) : Array(String)
- .find_repo(db : Queriable, user : String, proj : String, distinct : Bool = false) : Array(Repo)
- .get_repo_data(db : Queriable, repo_id : Int32) : Ext::Data | Nil
- .get_repo_id(db : Queriable, source_url : String)
- .insert_doc_job(db : Queriable, version_id : Int32, priority : Int32)
- .insert_repo_version(db : Queriable, repo_id : Int32, tag : String, nightly : Bool) : Int32
-
.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
- .mark_version_invalid(db : Queriable, commit : String, service : String, username : String, project_name : String)
- .mark_version_valid(db : Queriable, commit : String, service : String, username : String, project_name : String)
- .popular_repos(db : Queriable, count : Int32 = 10) : Array(Repo)
- .random_repo(db : Queriable) : Repo
- .recently_updated_repos(db : Queriable, count : Int32 = 10) : Array(Repo)
- .refresh_repo_versions(db : Queriable, repo_id : Int32)
- .regenerate_all_docs(db : Queriable) : Int32
- .remove_featured_repo(db : Queriable, repo_id : Int32)
- .repo_count(db : Queriable)
- .repo_exists(db : Queriable, service : String, username : String, project_name : String) : Bool
- .repo_exists(db : Queriable, source_url : String) : Bool
- .repo_exists_and_valid(db : Queriable, service : String, username : String, project_name : String) : Bool
- .repo_from_source(db : Queriable, source_url : String) : Array(Repo)
- .repo_needs_updating(db : Queriable) : Array(Repo)
- .repo_nightly_version_id(db : Queriable, service : String, username : String, project_name : String) : Int32
- .repo_version_exists(db : Queriable, service : String, username : String, project_name : String, version : String) : Bool
- .repo_version_valid_count(db : Queriable)
- .update_latest_repo_version(db : Queriable, repo_id : Int32, latest_version_id : Int32)
- .update_repo_data(db : Queriable, repo_id : Int32, data : Ext::Data)
- .upsert_repo_status(db : Queriable, last_commit : String, repo_id : Int32)
- .versions_json(db : Queriable, service : String, username : String, project_name : String) : String
Class Method Detail
def self.find_repo(db : Queriable, user : String, proj : String, distinct : Bool = false) : Array(Repo)
#
def self.insert_repo_version(db : Queriable, repo_id : Int32, tag : String, nightly : Bool) : Int32
#
def self.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
def self.mark_version_invalid(db : Queriable, commit : String, service : String, username : String, project_name : String)
#
def self.mark_version_valid(db : Queriable, commit : String, service : String, username : String, project_name : String)
#
def self.repo_exists(db : Queriable, service : String, username : String, project_name : String) : Bool
#
def self.repo_exists_and_valid(db : Queriable, service : String, username : String, project_name : String) : Bool
#
def self.repo_nightly_version_id(db : Queriable, service : String, username : String, project_name : String) : Int32
#
def self.repo_version_exists(db : Queriable, service : String, username : String, project_name : String, version : String) : Bool
#