Re: [PATCH] Add a source for beets library databases
Yoni Rabkin <[email protected]>
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <[email protected]> |
Daniel Semyonov <[email protected]> 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"