From 5203148ffdd8e27ae158d7bfb8527508a716ce6c Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 7 Jan 2025 22:08:56 +0100 Subject: Add remote & branch to project and review Preparing for git connection. --- server/src/db_utils.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/src/db_utils.rs') diff --git a/server/src/db_utils.rs b/server/src/db_utils.rs index e74fd68..b7e1fd5 100644 --- a/server/src/db_utils.rs +++ b/server/src/db_utils.rs @@ -92,6 +92,16 @@ where self } + pub fn ok(&self) -> bool { + self.sanity_check(); + + return !self + .names + .as_ref() + .expect("BUG: names taken already") + .is_empty(); + } + pub fn build(&mut self) -> (String, >::Arguments) { self.sanity_check(); -- cgit v1.2.3-70-g09d2