feat: add repository_exists method
This commit is contained in:
parent
3d98149244
commit
85aafb4b96
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue