Compare commits
No commits in common. "c2d88355d19da00b8f2383a185d9f9bd342f8550" and "ce32948c6724521a517c927e12091373d1087590" have entirely different histories.
c2d88355d1
...
ce32948c67
@ -1,4 +1,3 @@
|
||||
#include <exception>
|
||||
#define DEBUG
|
||||
|
||||
#ifdef DEBUG
|
||||
@ -127,6 +126,7 @@ public:
|
||||
}
|
||||
|
||||
std::expected<std::vector<std::vector<std::string_view>>, std::string_view> Query(std::string_view command){
|
||||
//Not Implemented;
|
||||
std::vector<std::vector<std::string_view>> really_result;
|
||||
mysql_query(&mysql_client, command.data());
|
||||
if(auto mysql_result = mysql_store_result(&mysql_client); mysql_result != nullptr){
|
||||
@ -153,11 +153,9 @@ public:
|
||||
return std::unexpected(get_error_msg());
|
||||
}
|
||||
|
||||
std::expected<bool> Execute(std::string_view command){
|
||||
auto res = mysql_query(&mysql_client, command.data());
|
||||
if(!res)
|
||||
return std::unexpected(get_error_msg());
|
||||
return res;
|
||||
bool Execute(std::string_view command){
|
||||
//Not Implemented;
|
||||
return false;
|
||||
}
|
||||
|
||||
std::vector<std::string_view> get_tables(){
|
||||
|
Loading…
Reference in New Issue
Block a user