emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add a source for beets library databases


From: Yoni Rabkin
Subject: Re: [PATCH] Add a source for beets library databases
Date: Sat, 16 Dec 2023 19:44:01 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Daniel Semyonov <daniel@dsemy.com> writes:

> Attached is a patch which adds a source which reads a beets library
> database using Emacs' built-in SQLite support.

Does beets provide a stable api to access its SQL database directly? Can
a future (or old) version of beets on someone's machine break the Emms
code by having tables in different place or different keys?

If beets is built to expect other programs to access its database
directly then this would work.

Otherwise, I'm unsure of how the beets code may react to something
altering the contents of its SQL tables behind its back. You also don't
want Emms to break beets by editing its tables in a way that version of
beets isn't expecting.

Does it make more sense to either:

   * Use the "official" beets interface to access the contents of the
     database instead.

   * Use the SQLite support in Emacs to import/update an Emms SQL
     database from the beets one. This mirroring will mean that the
     beets database can change, or even go away, and the Emms database
     will remain.

     This second option is effectively equivallent to Emms implementing
     its cache in SQLite.

Can you speak to these issues?


-- 
   "Cut your own wood and it will warm you twice"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]