34 std::shared_ptr<postgresql::Cursor> m_cursor =
nullptr;
35 std::shared_ptr<sqlite::Cursor> m_cursorSQLite =
nullptr;
38 std::vector<db::Arguments> m_batch;
40 std::size_t m_pos = 0;
41 bool m_started =
false;
42 bool m_exhausted =
false;
45 static constexpr std::size_t kDefaultFetchSize = 100;
47 std::size_t m_fetchSize = kDefaultFetchSize;
49 std::string m_cursorName;
51 bool m_noScroll =
true;
54 bool m_needsInit =
false;
56 std::vector<std::string> m_params;
57 std::shared_ptr<postgresql::Connection> m_pgConn;
58 std::shared_ptr<sqlite::Connection> m_sqliteConn;
70 void initBackendCursor();
Definition Arguments.h:77
bool operator!=(const Iterator &other) const
bool operator==(const Iterator &other) const
Iterator(Cursor &cursor, bool end=false)
reference operator*() const
std::input_iterator_tag iterator_category
Definition Cursor.h:105
const Iterator operator++(int)
std::ptrdiff_t difference_type
Definition Cursor.h:107
Cursor & setFetchSize(std::size_t rows)
std::vector< db::Arguments > fetchNext(std::size_t maxRows)
Cursor & setCursorName(const std::string &name)
Cursor & setNoScroll(bool enable)
Definition Statement.h:17
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9