feat: add repository_exists method

This commit is contained in:
Aravinth Manivannan 2022-05-01 19:07:49 +05:30
parent 3d98149244
commit 85aafb4b96
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -112,6 +112,9 @@ pub trait SCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
/// check if an user exists. When hostname of a forge instace is provided, username search is
/// done only on that forge
async fn user_exists(&self, username: &str, hostname: Option<&str>) -> DBResult<bool>;
/// check if a repository exists.
async fn repository_exists(&self, name: &str, owner: &str, hostname: &str) -> DBResult<bool>;
}
/// Trait to clone SCDatabase