lintel
0.2.0
Loading...
Searching...
No Matches
src
include
lintel
core
persistence
postgresql
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
8
#include "
lintel/core/persistence/Arguments.h
"
9
10
namespace
lintel
{
11
namespace
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
29
~Result
();
30
36
[[
nodiscard
]]
bool
isState
(
ExecStatusType
status
)
const
;
37
44
[[
nodiscard
]] std::string
getValue
(
int
row
,
int
attribute
)
const
;
45
47
[[
nodiscard
]]
int
getNumOfAttributes
()
const
;
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
Arguments.h
lintel::db::Arguments
Definition
Arguments.h:77
lintel::postgresql::Result
Definition
Result.h:16
lintel::postgresql::Result::Result
Result(PGresult *res)
lintel::postgresql::Result::getValue
std::string getValue(int row, int attribute) const
lintel::postgresql::Result::isState
bool isState(ExecStatusType status) const
lintel::postgresql::Result::getNumOfAttributes
int getNumOfAttributes() const
lintel::postgresql::Result::of
db::Arguments & of(std::size_t pos)
lintel::postgresql::Result::getSize
int getSize() const
lintel::postgresql::Result::~Result
~Result()
lintel
Definition
BaseFeature.h:6
lintel::type_name
constexpr std::string_view type_name()
Definition
TypeName.h:9
Generated by
1.9.8