1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 17:05:16 +00:00

Remove all movies

This commit is contained in:
2021-02-13 10:34:30 +01:00
parent 42bff295d1
commit 6396271e9c
2 changed files with 13 additions and 1 deletions

View File

@ -17,6 +17,12 @@ pub fn get_list_user(user_id: &UserID) -> ResultBoxError<Vec<Movie>> {
.exec(db_to_movie)
}
/// Get all movies
pub fn get_all() -> ResultBoxError<Vec<Movie>> {
database::QueryInfo::new(MOVIES_TABLE)
.exec(db_to_movie)
}
/// Get information about a single movie
pub fn get_info(movie_id: u64) -> ResultBoxError<Movie> {
database::QueryInfo::new(MOVIES_TABLE)