added more login logic
This commit is contained in:
@@ -3,12 +3,16 @@
|
||||
|
||||
#include "sqlite3.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <variant>
|
||||
#include <optional>
|
||||
#include <set>
|
||||
#include <map>
|
||||
|
||||
class Database {
|
||||
|
||||
typedef std::vector<std::variant<int64_t, std::string>> QueryData;
|
||||
|
||||
public:
|
||||
Database();
|
||||
~Database();
|
||||
@@ -24,9 +28,11 @@ public:
|
||||
|
||||
std::set<std::string> getStrSet(const std::string& sql);
|
||||
|
||||
string getStr(const string& sql)
|
||||
std::string getStr(const std::string sql, const QueryData& data);
|
||||
|
||||
std::map<std::string, std::string> getStrMap(const std::string& sql);
|
||||
sqlite3_stmt* bind(const std::string sql, const QueryData& data);
|
||||
|
||||
std::map<std::string, std::string> getStrMap(const std::string sql, const QueryData& data);
|
||||
|
||||
private:
|
||||
sqlite3_stmt* prepareStmt(const std::string& sql);
|
||||
|
||||
Reference in New Issue
Block a user