Connection manager can now open a query window for selected connection.

Query window has now buttons with icons made in the designer for better looks.
Depending on received responses from the database the tabcontrol with the message, data and explain tab
now switches to the appropriate tab.
This commit is contained in:
Eelke Klein 2017-01-15 21:01:40 +01:00
parent 88fcc0338d
commit d19741f111
26 changed files with 408 additions and 116 deletions

View file

@ -19,18 +19,18 @@ namespace Pgsql {
*/
class ConnectionParams {
public:
std::string host;
std::string hostaddr;
unsigned short port = 5432;
std::string dbname;
std::string user;
std::string password;
int connect_timeout = -1; ///< -1 omit (ie uses default)
std::string application_name;
// class ConnectionParams {
// public:
// std::string host;
// std::string hostaddr;
// unsigned short port = 5432;
// std::string dbname;
// std::string user;
// std::string password;
// int connect_timeout = -1; ///< -1 omit (ie uses default)
// std::string application_name;
};
// };
class ErrorDetails {
public:
@ -172,6 +172,8 @@ namespace Pgsql {
{
return connectStart(params.toUtf8().data());
}
bool connectStart(const char * const *keywords,
const char * const *values);
PostgresPollingStatusType connectPoll();
ConnStatusType status();