Repo/db fn name refactor.

This commit is contained in:
2026-10-08 21:18:21 +02:00
parent 8726591528
commit c51e9425d6
18 changed files with 38 additions and 38 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ pub async fn list<'e, E>(executor: E, query: Query) -> Result<Vec<Account>, Repo
where
E: sqlx::Executor<'e, Database = sqlx::Postgres>,
{
let accounts = db::query(executor, query.try_into()?)
let accounts = db::list(executor, query.try_into()?)
.await?
.into_iter()
.map(decode)
@@ -59,7 +59,7 @@ where
Ok(accounts)
}
pub async fn get<'e, E>(executor: E, id: Uuid) -> Result<Option<Account>, RepositoryError>
pub async fn get_by_id<'e, E>(executor: E, id: Uuid) -> Result<Option<Account>, RepositoryError>
where
E: sqlx::Executor<'e, Database = sqlx::Postgres>,
{
@@ -105,7 +105,7 @@ where
Ok(account.into())
}
pub async fn delete<'e, E>(executor: E, id: Uuid) -> Result<Delete, RepositoryError>
pub async fn delete_by_id<'e, E>(executor: E, id: Uuid) -> Result<Delete, RepositoryError>
where
E: sqlx::Executor<'e, Database = sqlx::Postgres>,
{