From 921f38a73e5d58a5a6077477a8b52d2705798f55 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 17 Sep 2024 19:06:20 -0400 Subject: Express record dependencies through types. This provides a convenient place to _stick_ "not found" errors, though actually introducing them will come in a later commit. --- src/repo/login/store.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/repo/login/store.rs') diff --git a/src/repo/login/store.rs b/src/repo/login/store.rs index 24dd744..d979579 100644 --- a/src/repo/login/store.rs +++ b/src/repo/login/store.rs @@ -54,24 +54,6 @@ impl<'c> Logins<'c> { Ok(login) } - - pub async fn by_id(&mut self, id: &Id) -> Result { - let login = sqlx::query_as!( - Login, - r#" - select - id as "id: Id", - name - from login - where id = $1 - "#, - id, - ) - .fetch_one(&mut *self.0) - .await?; - - Ok(login) - } } impl<'t> From<&'t mut SqliteConnection> for Logins<'t> { -- cgit v1.2.3