1#ifndef NEFORCE_DATABASE_PGSQL_PREPARED_RESULT_HPP__
2#define NEFORCE_DATABASE_PGSQL_PREPARED_RESULT_HPP__
11#ifdef NEFORCE_SUPPORT_POSTGRESQL
13NEFORCE_BEGIN_NAMESPACE__
55 impl_(result,
true) {}
68 NEFORCE_NODISCARD
bool empty() const noexcept
override {
return impl_.empty(); }
74 NEFORCE_NODISCARD
bool next() noexcept
override {
return impl_.next(); }
106 NEFORCE_NODISCARD
bool get_bool(
size_type index)
const override {
return impl_.get_bool(index); }
186 return impl_.get_datetime(index);
195 return impl_.get_timestamp(index);
203NEFORCE_END_NAMESPACE__
int16_t get_int16(size_type index) const override
获取16位整数值
~pgsql_prepared_result() override=default
析构函数
int32_t get_int32(size_type index) const override
获取32位整数值
int64_t get_int64(size_type index) const override
获取64位整数值
size_type column_count() const noexcept override
获取结果集列数
_NEFORCE date get_date(size_type index) const override
获取日期值
bool empty() const noexcept override
检查结果集是否为空
pgsql_prepared_result(::PGresult *result) noexcept
构造函数
vector< char > get_blob(size_type index) const override
获取BLOB二进制数据
_NEFORCE datetime get_datetime(size_type index) const override
获取日期时间值
bool next() noexcept override
移动到下一行
decimal_t get_decimal(size_type index) const override
获取十进制值
const vector< string_view > & column_names() const override
获取列名列表
float32_t get_float32(size_type index) const override
获取32位浮点值
_NEFORCE timestamp get_timestamp(size_type index) const override
获取时间戳值
bool get_bool(size_type index) const override
获取布尔值
string_view get(size_type index) const override
获取字符串值
size_type row_count() const noexcept override
获取结果集行数
uint64_t get_bit(size_type index) const override
获取BIT位字段值
float64_t get_float64(size_type index) const override
获取64位浮点值
_NEFORCE time get_time(size_type index) const override
获取时间值
float float32_t
32位单精度浮点数类型
long double decimal_t
扩展精度浮点数类型
long long int64_t
64位有符号整数类型
double float64_t
64位双精度浮点数类型
unsigned long long uint64_t
64位无符号整数类型
basic_string_view< char > string_view
字符字符串视图