diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-01-07 22:08:56 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-01-07 22:08:56 +0100 |
| commit | 5203148ffdd8e27ae158d7bfb8527508a716ce6c (patch) | |
| tree | f076887196c9fd2d8864f55059ee1c46c8a329b5 /server/src/db_utils.rs | |
| parent | 13056242ab976b766bbff345d9b22e3aa9ad4a94 (diff) | |
Add remote & branch to project and review
Preparing for git connection.
Diffstat (limited to 'server/src/db_utils.rs')
| -rw-r--r-- | server/src/db_utils.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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, <DB as HasArguments<'args>>::Arguments) { self.sanity_check(); |
