Class litedb
Defined in File dbRoot.hpp
Class Documentation
-
class litedb
the Root database Object
Public Functions
-
template<typename DBType>
std::optional<std::vector<DBType>> operator<<(DBType &searchClue) the search query
- Template Parameters:
DBType – music or track data
- Parameters:
searchClue – the filters
- Returns:
std::optional<std::vector<DBType>> the result. check before use.
-
template<typename DBType>
bool operator<=(DBType &insertObject) the insert query
- Template Parameters:
DBType – music or track data
- Parameters:
insertObject – the data
- Returns:
true
- Returns:
false
-
bool openDB(const std::string &dbPath)
opens the Root Database and initialize.
- Parameters:
dbPath – path to Root Database
- Returns:
true
- Returns:
false
-
inline const std::string getRoot()
Get path to Root database.
- Returns:
const std::string
-
litedb()
-
~litedb()
-
template<typename DBType>