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

Method add_songs

src-tauri/src/extensions/request_handler.rs:66–70  ·  view source on GitHub ↗
(&self, data: Vec<Song>)

Source from the content-addressed store, hash-verified

64
65 #[tracing::instrument(level = "debug", skip(self, data))]
66 pub fn add_songs(&self, data: Vec<Song>) -> Result<MainCommandResponse> {
67 let database: State<'_, Database> = self.app_handle.state();
68 let ret = database.insert_songs(data)?;
69 Ok(MainCommandResponse::AddSongs(ret))
70 }
71
72 #[tracing::instrument(level = "debug", skip(self, data))]
73 pub fn update_song(&self, data: Song) -> Result<MainCommandResponse> {

Callers 1

handle_requestMethod · 0.80

Calls 1

insert_songsMethod · 0.80

Tested by

no test coverage detected