Improved error reporting

This commit is contained in:
eelke 2022-08-14 08:04:21 +02:00
parent 6cf7b52453
commit 457b09f15c
12 changed files with 110 additions and 94 deletions

View file

@ -85,17 +85,17 @@ namespace Pgsql {
Result queryParam(const char * command, const Params &params);
Result queryParam(const QString &command, const Params &params);
bool sendQuery(const char * query);
bool sendQuery(const std::string &command)
void sendQuery(const char * query);
void sendQuery(const std::string &command)
{
return sendQuery(command.c_str());
sendQuery(command.c_str());
}
bool sendQuery(const QString &command)
void sendQuery(const QString &command)
{
return sendQuery(command.toUtf8().data());
sendQuery(command.toUtf8().data());
}
bool sendQueryParams(const char * command, const Params &params);
void sendQueryParams(const char * command, const Params &params);
std::shared_ptr<Result> getResult();
std::shared_ptr<Result> getResultNoThrow();