2009-08-11, 13:13
fekker Wrote:ya lost me thereSorry, my personal battery was almost dead yesterday...
fekker Wrote:if your asking if the new unified media manager will interact with xbmc's database, yes, that's what we intend to do. When you save an item, the goal is for everything to get updated. (information and images) .. i don't think we will be adding new items directly though, that's better left to xbmc at this point. I'm pretty sure we can send a command to xbmc to tell it to update the library (i.e. add new items).My question was related to that one, but only related: based on what you said, my guess is that you will implement this DB interaction directly, using SQLite API or some abstraction layer.
While I think that from a user perspective this is a great idea, it bothers me a bit that the library will be changed directly using straight SQL queries. Even though the database model is not extremely complex or anything, there is ONE big drawback to this approach: you will end up maintaining a database interaction API / library that depends on a specific version. The database structure is still considered low level (imho), and as soon as something changes in the DB structure, you will have to adapt your code.
The question was then as follows: is XBMC providing some kind of re-usable API / library (as in .so or .dll) that abstracts the database manipulation, or do you intend to execute SQL directly.
That's it :-)