diff --git a/db/db-core/src/lib.rs b/db/db-core/src/lib.rs index 8b9f511a..e299b743 100644 --- a/db/db-core/src/lib.rs +++ b/db/db-core/src/lib.rs @@ -83,6 +83,9 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase { /// delete a user async fn delete_user(&self, username: &str) -> DBResult<()>; + + /// check if username exists + async fn username_exists(&self, username: &str) -> DBResult; } /// Trait to clone MCDatabase