24 #ifndef __GNC_SQL_RESULT_HPP__ 25 #define __GNC_SQL_RESULT_HPP__ 43 virtual uint64_t size()
const noexcept = 0;
53 virtual std::optional<int64_t> get_int_at_col (
const char* col)
const = 0;
54 virtual std::optional<double> get_float_at_col (
const char* col)
const = 0;
55 virtual std::optional<double> get_double_at_col (
const char* col)
const = 0;
56 virtual std::optional<std::string> get_string_at_col (
const char* col)
const = 0;
57 virtual std::optional<time64> get_time64_at_col (
const char* col)
const = 0;
58 virtual bool is_col_null (
const char* col)
const noexcept = 0;
88 std::optional<int64_t> get_int_at_col (
const char* col)
const {
89 return m_iter->get_int_at_col (col); }
90 std::optional<double> get_float_at_col (
const char* col)
const {
91 return m_iter->get_float_at_col (col); }
92 std::optional<double> get_double_at_col (
const char* col)
const {
93 return m_iter->get_double_at_col (col); }
94 std::optional<std::string> get_string_at_col (
const char* col)
const {
95 return m_iter->get_string_at_col (col); }
96 std::optional<time64> get_time64_at_col (
const char* col)
const {
97 return m_iter->get_time64_at_col (col); }
98 bool is_col_null (
const char* col)
const noexcept {
99 return m_iter->is_col_null (col); }
105 return lr.m_iter != rr.m_iter;
113 #endif //__GNC_SQL_RESULT_HPP__
Row of SQL Query results.
Pure virtual class to iterate over a query result set.