types and db setup
This commit is contained in:
12
include/database.hpp
Normal file
12
include/database.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "types.hpp"
|
||||
|
||||
class PostgresDB {
|
||||
private:
|
||||
std::string conn_str;
|
||||
|
||||
public:
|
||||
PostgresDB(const std::string& connection) : conn_str(connection) {}
|
||||
|
||||
User GetUser(const int uid);
|
||||
User GetUser(const std::string& username, const std::string& password);
|
||||
};
|
||||
Reference in New Issue
Block a user