(&self, mut songs: Vec<Song>)
| 201 | |
| 202 | #[tracing::instrument(level = "debug", skip(self))] |
| 203 | pub fn insert_songs(&self, mut songs: Vec<Song>) -> Result<Vec<Song>> { |
| 204 | self.insert_songs_by_ref(songs.as_mut_slice())?; |
| 205 | Ok(songs) |
| 206 | } |
| 207 | |
| 208 | pub fn insert_songs_by_ref(&self, songs: &mut [Song]) -> Result<()> { |
| 209 | let mut conn = self.pool.get().unwrap(); |