44 return ptr.get() == NULL;
53 return PQntuples(
ptr.get());
65 std::vector<std::string> result;
68 PGresult* r =
ptr.get();
71 for (
int j = 0; j < PQnfields(r); j++) {
72 result.push_back(std::string(PQgetvalue(r, i, j)));
bool isFailed() const
Check if the query failed.
PGresult deleter (for shared pointer)
std::vector< std::string > getRow(int i) const
fo namespace holds the FOSSology library functions.
QueryResult(PGresult *ptr)
unptr::unique_ptr< PGresult, PGresultDeleter > ptr
Unique pointer to the actual PGresult.