initial matador ng commit
This commit is contained in:
@@ -1,15 +1,27 @@
|
||||
#ifndef QUERY_POSTGRES_ERROR_HPP
|
||||
#define QUERY_POSTGRES_ERROR_HPP
|
||||
|
||||
#include "matador/utils/error.hpp"
|
||||
|
||||
#include "matador/sql/error_code.hpp"
|
||||
|
||||
#include <libpq-fe.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace matador::backends::postgres {
|
||||
|
||||
void throw_postgres_error(const char *what, const std::string &source);
|
||||
void throw_postgres_error(PGconn *db, const std::string &source);
|
||||
void throw_postgres_error(PGresult *res, PGconn *db, const std::string &source, const std::string &sql);
|
||||
utils::error make_error(sql::error_code ec,
|
||||
const PGresult *res,
|
||||
const PGconn *db,
|
||||
const std::string &msg,
|
||||
const std::string &sql = {});
|
||||
|
||||
bool is_result_error(const PGresult *res);
|
||||
|
||||
// void throw_postgres_error(const char *what, const std::string &source);
|
||||
// void throw_postgres_error(PGconn *db, const std::string &source);
|
||||
// void throw_postgres_error(PGresult *res, PGconn *db, const std::string &source, const std::string &sql);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user