From 78d8eeadcf6642eb52b3b178d6da620b0bb34289 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Oct 2023 16:58:13 +0100 Subject: Use unique_ptr for execution results --- libpqpp/pq-helpers.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libpqpp/pq-helpers.h') diff --git a/libpqpp/pq-helpers.h b/libpqpp/pq-helpers.h index 76e5057..7861d57 100644 --- a/libpqpp/pq-helpers.h +++ b/libpqpp/pq-helpers.h @@ -1,6 +1,9 @@ #ifndef PQ_HELPERS_H #define PQ_HELPERS_H +#include "libpq-fe.h" +#include + namespace PQ { template struct pq_deleter { void @@ -9,6 +12,8 @@ namespace PQ { func(p); } }; + + using ResultPtr = std::unique_ptr>; } #endif -- cgit v1.2.3