added login suppport
This commit is contained in:
@@ -88,7 +88,7 @@ set<string> Database::getStrSet(const string& sql){
|
||||
return vec;
|
||||
}
|
||||
|
||||
std::optional<int64_t> Database::insert(const char* sql) {
|
||||
std::optional<int64_t> Database::insert(const std::string& sql) {
|
||||
sqlite3_stmt* stmt = prepareStmt(sql);
|
||||
if (stmt == nullptr)
|
||||
return {};
|
||||
|
||||
@@ -21,7 +21,7 @@ public:
|
||||
bool exec(const char* sqlQuery);
|
||||
bool exec(const std::string& sqlQuery);
|
||||
|
||||
std::optional<int64_t> insert(const char* sql);
|
||||
std::optional<int64_t> insert(const std::string& sql);
|
||||
|
||||
std::set<std::string> getStrSet(const std::string& sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user