From 578615596975b5a2e6aa8b8d7a8f36b9e390f9ea Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Fri, 14 Jul 2023 20:44:47 +0100 Subject: Add total history count to the index API (#1102) Thought it would be fun to collect some cool stats, maybe put them on atuin.sh. --- atuin-server-database/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'atuin-server-database') diff --git a/atuin-server-database/src/lib.rs b/atuin-server-database/src/lib.rs index cdff90a2..06ecf910 100644 --- a/atuin-server-database/src/lib.rs +++ b/atuin-server-database/src/lib.rs @@ -52,6 +52,7 @@ pub trait Database: Sized + Clone + Send + Sync + 'static { async fn add_user(&self, user: &NewUser) -> DbResult; async fn delete_user(&self, u: &User) -> DbResult<()>; + async fn total_history(&self) -> DbResult; async fn count_history(&self, user: &User) -> DbResult; async fn count_history_cached(&self, user: &User) -> DbResult; -- cgit v1.3.1