blob: 3f0bf01714ad065a97c3c9a8576715937e7a9868 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use crate::database::album::Album;
use crate::database::artist::Artist;
use crate::database::song::Song;
use crate::database::DatabaseWrapper;
impl DatabaseWrapper {
pub async fn search_results_by_name(
&self,
name: &str,
) -> (
Result<Vec<Artist>, sqlx::Error>,
Result<Vec<Album>, sqlx::Error>,
Result<Vec<Song>, sqlx::Error>,
) {
return (
self.select_artists_by_name(name).await,
self.select_albums_by_name(name).await,
self.select_songs_by_name(name).await,
);
}
}
|