summaryrefslogtreecommitdiff
path: root/src/database/postgresql_engine.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-01-14 21:44:22 +0100
committerlouiz’ <louiz@louiz.org>2018-01-14 21:44:22 +0100
commit3cd649023680bd49f9865fd62474d4db6a9d7c68 (patch)
tree120bc40d92e2a5d9323ef1e0652b6b38711ce4e2 /src/database/postgresql_engine.cpp
parentb4b9828de50c09fea5503b3b3ead2ae9d5144404 (diff)
downloadbiboumi-3cd649023680bd49f9865fd62474d4db6a9d7c68.tar.gz
biboumi-3cd649023680bd49f9865fd62474d4db6a9d7c68.tar.bz2
biboumi-3cd649023680bd49f9865fd62474d4db6a9d7c68.tar.xz
biboumi-3cd649023680bd49f9865fd62474d4db6a9d7c68.zip
Remove all the ugly database debug
Diffstat (limited to 'src/database/postgresql_engine.cpp')
-rw-r--r--src/database/postgresql_engine.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/database/postgresql_engine.cpp b/src/database/postgresql_engine.cpp
index 4ee4223..150ca42 100644
--- a/src/database/postgresql_engine.cpp
+++ b/src/database/postgresql_engine.cpp
@@ -20,7 +20,6 @@ PostgresqlEngine::~PostgresqlEngine()
std::unique_ptr<DatabaseEngine> PostgresqlEngine::open(const std::string& conninfo)
{
- log_debug("trying to open: ", conninfo);
PGconn* con = PQconnectdb(conninfo.data());
if (!con)
@@ -47,13 +46,11 @@ std::set<std::string> PostgresqlEngine::get_all_columns_from_table(const std::st
while (statement->step() == StepResult::Row)
columns.insert(statement->get_column_text(0));
- log_debug("found ", columns.size(), " columns.");
return columns;
}
std::tuple<bool, std::string> PostgresqlEngine::raw_exec(const std::string& query)
{
- log_debug("raw_exec:", query);
PGresult* res = PQexec(this->conn, query.data());
auto sg = utils::make_scope_guard([res](){
PQclear(res);