Added list of databases and roles.
Roles works for atleast 9.3 and up. Reorganizing code for communicating with database.
This commit is contained in:
parent
8c077b3d5f
commit
2d962334da
28 changed files with 881 additions and 428 deletions
|
|
@ -212,8 +212,8 @@ void QueryTab::explain(bool analyze)
|
|||
std::thread([this,res]()
|
||||
{
|
||||
std::shared_ptr<ExplainRoot> explain;
|
||||
if (res->getCols() == 1 && res->getRows() == 1) {
|
||||
std::string s = res->getVal(0, 0);
|
||||
if (res->cols() == 1 && res->rows() == 1) {
|
||||
std::string s = res->val(0, 0);
|
||||
Json::Value root; // will contains the root value after parsing.
|
||||
Json::Reader reader;
|
||||
bool parsingSuccessful = reader.parse(s, root);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue