|
| | CViewDatabase () |
| |
| | ~CViewDatabase () override |
| |
| bool | Open () override |
| |
| bool | GetViewState (const std::string &path, int windowID, CViewState &state, const std::string &skin) |
| |
| bool | SetViewState (const std::string &path, int windowID, const CViewState &state, const std::string &skin) |
| |
| bool | ClearViewStates (int windowID) |
| |
| | CDatabase (const std::string &dbType) |
| |
| virtual | ~CDatabase () |
| |
| bool | IsOpen () const |
| |
| bool | Open (const DatabaseSettings &db) |
| |
| virtual void | Close () |
| |
| const std::string & | GetType () const |
| |
| bool | Compress (bool bForce=true) |
| |
| void | Interrupt () |
| |
| void | BeginTransaction () |
| |
| virtual bool | CommitTransaction () |
| |
| void | RollbackTransaction () |
| |
| bool | InTransaction () const |
| |
| void | CopyDB (const std::string &latestDb) |
| |
| void | DropAnalytics () |
| |
| std::string | PrepareSQL (std::string_view sqlFormat,...) const |
| |
| std::string | GetSingleValue (const std::string &strTable, const std::string &strColumn, const std::string &strWhereClause=std::string(), const std::string &strOrderBy=std::string()) const |
| | Get a single value from a table.
|
| |
| std::string | GetSingleValue (const std::string &query) const |
| |
| std::string | GetSingleValue (const std::string &query, dbiplus::Dataset &ds) const |
| | Get a single value from a query on a dataset.
|
| |
| int | GetSingleValueInt (const std::string &strTable, const std::string &strColumn, const std::string &strWhereClause=std::string(), const std::string &strOrderBy=std::string()) const |
| | Get a single integer value from a table.
|
| |
| int | GetSingleValueInt (const std::string &query) const |
| |
| int | GetSingleValueInt (const std::string &query, dbiplus::Dataset &ds) const |
| | Get a single integer value from a query on a dataset.
|
| |
| bool | DeleteValues (const std::string &strTable, const Filter &filter=Filter()) |
| | Delete values from a table.
|
| |
| bool | ExecuteQuery (const std::string &strQuery) |
| | Execute a query that does not return any result. Note that if BeginMultipleExecute() has been called, the query will be queued until CommitMultipleExecute() is called.
|
| |
| bool | ResultQuery (const std::string &strQuery) const |
| | Execute a query that returns a result.
|
| |
| bool | BeginMultipleExecute () |
| | Start a multiple execution queue. Any ExecuteQuery() function following this call will be queued rather than executed until CommitMultipleExecute() is performed. NOTE: Queries that rely on any queued execute query will not function as expected during this period!
|
| |
| bool | CommitMultipleExecute () |
| | Commit the multiple execution queue to the database. Queries are performed within a transaction, and the transaction is rolled back should any one query fail.
|
| |
| bool | QueueInsertQuery (const std::string &strQuery) |
| | Put an INSERT or REPLACE query in the queue.
|
| |
| bool | CommitInsertQueries () |
| | Commit all queries in the queue.
|
| |
| size_t | GetInsertQueriesCount () const |
| | Get the number of INSERT queries in the queue.
|
| |
| bool | QueueDeleteQuery (const std::string &strQuery) |
| | Put a DELETE query in the queue.
|
| |
| bool | CommitDeleteQueries () |
| | Commit all queued DELETE queries.
|
| |
| size_t | GetDeleteQueriesCount () const |
| | Get the number of DELETE queries in the queue.
|
| |
| virtual bool | GetFilter (CDbUrl &dbUrl, Filter &filter, SortDescription &sorting) |
| |
| virtual bool | BuildSQL (const std::string &strBaseDir, const std::string &strQuery, Filter &filter, std::string &strSQL, CDbUrl &dbUrl) |
| |
| virtual bool | BuildSQL (const std::string &strBaseDir, const std::string &strQuery, Filter &filter, std::string &strSQL, CDbUrl &dbUrl, SortDescription &sorting) |
| |
| ConnectionState | Connect (const std::string &dbName, const DatabaseSettings &db, bool create) |
| |
| bool | SetArtForItem (int mediaId, const std::string &mediaType, const std::string &artType, const std::string &url) |
| | Sets art for a library item.
|
| |
| virtual bool | SetArtForItem (int mediaId, const std::string &mediaType, const KODI::ART::Artwork &art) |
| | Sets each piece of art, a map of art type to url, for a library item.
|
| |
| virtual bool | GetArtForItem (int mediaId, const std::string &mediaType, KODI::ART::Artwork &art) |
| | Adds the art a library item has to art, a map of art type to url.
|
| |
| std::string | GetArtForItem (int mediaId, const std::string &mediaType, const std::string &artType) |
| | The url of one type of art for a library item, empty if it has none.
|
| |
| bool | RemoveArtForItem (int mediaId, const std::string &mediaType, const std::string &artType) |
| |
| bool | RemoveArtForItem (int mediaId, const std::string &mediaType, const std::set< std::string, std::less<> > &artTypes) |
| |
| bool | GetArtTypes (const std::string &mediaType, std::vector< std::string > &artTypes) |
| | Adds the distinct types of art held for a type of item to artTypes.
|
| |
| bool | SetArtForItem (int mediaId, KODI::MEDIA::TYPE mediaType, const std::string &artType, const std::string &url) |
| | The art functions above, for an item whose table is a media type.
|
| |
| bool | SetArtForItem (int mediaId, KODI::MEDIA::TYPE mediaType, const KODI::ART::Artwork &art) |
| |
| bool | GetArtForItem (int mediaId, KODI::MEDIA::TYPE mediaType, KODI::ART::Artwork &art) |
| |
| std::string | GetArtForItem (int mediaId, KODI::MEDIA::TYPE mediaType, const std::string &artType) |
| |
| bool | RemoveArtForItem (int mediaId, KODI::MEDIA::TYPE mediaType, const std::set< std::string, std::less<> > &artTypes) |
| |