admin: added list of users
This commit is contained in:
parent
e3bda01eca
commit
5153d057b0
13 changed files with 313 additions and 3 deletions
|
|
@ -97,6 +97,13 @@ impl Users {
|
|||
.map_err(handle_error)
|
||||
}
|
||||
|
||||
pub async fn get_all(conn: impl SqliteExecutor<'_>) -> Result<Vec<Self>, Error> {
|
||||
sqlx::query_file_as!(Self, "queries/users/get_all.sql")
|
||||
.fetch_all(conn)
|
||||
.await
|
||||
.map_err(handle_error)
|
||||
}
|
||||
|
||||
pub async fn set_username(
|
||||
conn: impl SqliteExecutor<'_>,
|
||||
id: &str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue