#pragma once #include #include "db.h" class DatabaseManager { public: DatabaseManager(const std::string& db_path); ~DatabaseManager(void); void init(void); /* Return true on success, false if user already exists. */ bool create_player(const std::string& username, const std::string& password, const std::string& hostname); /* Return true if creds are valid. */ bool auth_player(const std::string& username, const std::string& password); private: sqlite::database _db; };