lintel 0.2.0
Loading...
Searching...
No Matches
Result.h
Go to the documentation of this file.
1#ifndef LINTEL_POSTGRESQL_RESULT_H
2#define LINTEL_POSTGRESQL_RESULT_H
3
4#include <libpq-fe.h>
5
6#include <string>
7
9
10namespace lintel {
11namespace postgresql {
15 class Result
16 {
17 private:
18 PGresult *m_res;
19 std::vector<db::Arguments> m_arguments;
20
21 public:
26 explicit Result(PGresult *res);
27
30
37
44 [[nodiscard]] std::string getValue(int row, int attribute) const;
45
48
50 [[nodiscard]] int getSize() const;
51
57 [[nodiscard]] db::Arguments &of(std::size_t pos);
58 };
59}// namespace postgresql
60
61}// namespace lintel
62#endif// LINTEL_POSTGRESQL_RESULT_H
Definition Arguments.h:77
Definition Result.h:16
std::string getValue(int row, int attribute) const
bool isState(ExecStatusType status) const
db::Arguments & of(std::size_t pos)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9