navidrome/persistence
Zane van Iperen feb774a149
Change genre.Put() to upsert. Fix #1918 and #1564 (#1920)
* persistence/genre: change Put() to upsert

Absolutely disgusting hack to work around [1]. Try to insert the genre,
but if it conflicts, ignore it and update the genre with the existing
ID.

[1]: https://github.com/navidrome/navidrome/issues/1918.

* scanner: remove cached genre repository

Not needed anytmore. And remember:

  "Many Small Queries Are Efficient In SQLite" [1].

[1]: https://www.sqlite.org/np1queryprob.html

* Revert "scanner: remove cached genre repository"

This reverts commit c5d900aa43e1c86b69f923b408e11ab8df8d815c.

* Use squirrel to build SQL, to reduce risk of SQL injection

Co-authored-by: Deluan <deluan@navidrome.org>
2023-01-17 21:04:18 -05:00
..
2022-12-28 15:31:56 -05:00
2022-12-28 15:31:56 -05:00
2022-09-30 18:54:25 -04:00
2022-09-30 20:18:14 -04:00
2022-09-30 18:54:25 -04:00
2022-09-30 18:54:25 -04:00
2022-09-30 18:54:25 -04:00
2022-07-30 12:43:48 -04:00
2022-09-30 18:54:25 -04:00
2022-07-26 16:53:17 -04:00
2022-07-26 16:53:17 -04:00
2022-09-30 20:18:14 -04:00
2022-09-30 19:33:39 -04:00
2022-09-30 18:54:25 -04:00