MCPcopy Create free account
hub / github.com/Moosync/Moosync / insert_songs

Method insert_songs

src-tauri/database/src/database.rs:203–206  ·  view source on GitHub ↗
(&self, mut songs: Vec<Song>)

Source from the content-addressed store, hash-verified

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();

Callers 11

test_insert_songFunction · 0.80
test_update_songFunction · 0.80
test_remove_songsFunction · 0.80
test_playlist_operationsFunction · 0.80
test_album_operationsFunction · 0.80
test_artist_operationsFunction · 0.80
test_searchFunction · 0.80
test_analyticsFunction · 0.80
start_scan_innerFunction · 0.80
add_songsMethod · 0.80

Calls 1

insert_songs_by_refMethod · 0.80

Tested by 9

test_insert_songFunction · 0.64
test_update_songFunction · 0.64
test_remove_songsFunction · 0.64
test_playlist_operationsFunction · 0.64
test_album_operationsFunction · 0.64
test_artist_operationsFunction · 0.64
test_searchFunction · 0.64
test_analyticsFunction · 0.64