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

Method remove_playlist

src-tauri/database/src/database.rs:979–991  ·  view source on GitHub ↗
(&self, id: String)

Source from the content-addressed store, hash-verified

977
978 #[tracing::instrument(level = "debug", skip(self))]
979 pub fn remove_playlist(&self, id: String) -> Result<()> {
980 trace!("Removing playlist");
981 let mut conn = self.pool.get().unwrap();
982 delete(playlist_bridge)
983 .filter(schema::playlist_bridge::playlist.eq(id.clone()))
984 .execute(&mut conn)?;
985 delete(playlists)
986 .filter(schema::playlists::playlist_id.eq(id.clone()))
987 .execute(&mut conn)?;
988
989 info!("Removed playlist");
990 Ok(())
991 }
992
993 #[tracing::instrument(level = "debug", skip(self, old_info, new_info))]
994 fn merge_extra_info(

Callers 1

test_playlist_operationsFunction · 0.80

Calls 3

getMethod · 0.80
cloneMethod · 0.80
eqMethod · 0.45

Tested by 1

test_playlist_operationsFunction · 0.64