diff options
| author | Joe Carstairs <me@joeac.net> | 2024-10-16 18:22:55 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-10-17 06:55:02 +0100 |
| commit | 7adaace61a4fe983eba5ded3aaaf624ce6fb9014 (patch) | |
| tree | 6e0697f9dbb6e249c60af5a92479a86316c55221 /backend/app/src/queries/accounts/get_all.rs | |
| parent | 27b95c9186bd45edd4c982a7cc89cf69cf2c5d46 (diff) | |
Refactors some backend stuff to core lib
Diffstat (limited to 'backend/app/src/queries/accounts/get_all.rs')
| -rw-r--r-- | backend/app/src/queries/accounts/get_all.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/app/src/queries/accounts/get_all.rs b/backend/app/src/queries/accounts/get_all.rs index 12941ac..bc67f77 100644 --- a/backend/app/src/queries/accounts/get_all.rs +++ b/backend/app/src/queries/accounts/get_all.rs @@ -1,7 +1,6 @@ +use budgeting_app_core::{models::account::Account, schema::accounts::dsl::accounts}; use diesel::{result::Error, QueryDsl, RunQueryDsl, SelectableHelper, SqliteConnection}; -use crate::{models::account::Account, schema::accounts::dsl::accounts}; - pub fn get_all_accounts(connection: &mut SqliteConnection) -> Result<Vec<Account>, Error> { accounts.select(Account::as_select()).load(connection) } |
