Compare commits
2 Commits
ce32948c67
...
c2d88355d1
Author | SHA1 | Date | |
---|---|---|---|
c2d88355d1 | |||
a1bda53ca5 |
@ -1,3 +1,4 @@
|
|||||||
|
#include <exception>
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -126,7 +127,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::expected<std::vector<std::vector<std::string_view>>, std::string_view> Query(std::string_view command){
|
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;
|
std::vector<std::vector<std::string_view>> really_result;
|
||||||
mysql_query(&mysql_client, command.data());
|
mysql_query(&mysql_client, command.data());
|
||||||
if(auto mysql_result = mysql_store_result(&mysql_client); mysql_result != nullptr){
|
if(auto mysql_result = mysql_store_result(&mysql_client); mysql_result != nullptr){
|
||||||
@ -153,9 +153,11 @@ public:
|
|||||||
return std::unexpected(get_error_msg());
|
return std::unexpected(get_error_msg());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Execute(std::string_view command){
|
std::expected<bool> Execute(std::string_view command){
|
||||||
//Not Implemented;
|
auto res = mysql_query(&mysql_client, command.data());
|
||||||
return false;
|
if(!res)
|
||||||
|
return std::unexpected(get_error_msg());
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string_view> get_tables(){
|
std::vector<std::string_view> get_tables(){
|
||||||
|
Loading…
Reference in New Issue
Block a user