|
YCLIMP
Yandex Command Line Interface Music Player
|
The DatabaseManager class. More...
#include <DatabaseManager.hpp>

Static Public Member Functions | |
| static DatabaseManager & | Instance () |
| static void | DebugQuery (const std::string &query, int modifiedRows) |
Public Attributes | |
| const TrackDao | trackDao |
| const PlaylistDao | playlistDao |
The DatabaseManager class.
Singleton
Has public class members, each one does specific SQL queries
The only reason for that is not to clutter this class
I don't catch almost all exceptions in this class and it's members.
If something will throw. it means it's a bug or DB problem that should be fixed.