summaryrefslogtreecommitdiff
path: root/src/repo/login/store.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo/login/store.rs')
-rw-r--r--src/repo/login/store.rs18
1 files changed, 0 insertions, 18 deletions
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<Login, sqlx::Error> {
- 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> {