by drakinite » Wed Oct 27, 2021 8:23 pm
To answer your question, no, not yet*. Adding that now to my ever-growing to-do list
As a brief run-down:
- dbFunc can be
any of the functions in
app.db. If you open the dev console and type app.db, you can see all the possible methods (but some of them require SQL, and some of them support categories). The ones which take SQL are currently documented here:
https://www.mediamonkey.com/docs/api/classes/DB.html
- To my knowledge, dbFunc and dbFuncParams are currently
only used by the Dropdown control.
Categories currently supported by getPeople:
- artist, author, conductor, producer, director, screenwriter, actor, lyricist
Categories currently supported by getStringList:
- collection, CPUCores, PlayActions, PlayNowActions, Languages, addonCategories, trackType, album, parentalrating, genre, tempo, mood, occasion, quality, extendedTags, coverTypes, initialKey, empty
Actually, it looks like getPeople and getStringList are the only db functions that support that "category" format. Might not be as tedious to add to the documentation, in fact.
*
Edit: DB API documentation has been added; it'll be added to the web docs next time they're updated.
To answer your question, no, not yet*. Adding that now to my ever-growing to-do list :sweat_smile:
As a brief run-down:
- dbFunc can be [i]any[/i] of the functions in [b]app.db[/b]. If you open the dev console and type app.db, you can see all the possible methods (but some of them require SQL, and some of them support categories). The ones which take SQL are currently documented here: https://www.mediamonkey.com/docs/api/classes/DB.html
- To my knowledge, dbFunc and dbFuncParams are currently [i]only[/i] used by the Dropdown control.
Categories currently supported by getPeople:
- artist, author, conductor, producer, director, screenwriter, actor, lyricist
Categories currently supported by getStringList:
- collection, CPUCores, PlayActions, PlayNowActions, Languages, addonCategories, trackType, album, parentalrating, genre, tempo, mood, occasion, quality, extendedTags, coverTypes, initialKey, empty
Actually, it looks like getPeople and getStringList are the only db functions that support that "category" format. Might not be as tedious to add to the documentation, in fact.
*[b]Edit[/b]: DB API documentation has been added; it'll be added to the web docs next time they're updated.