5#ifndef BOOST_SQLITE_ROW_HPP
6#define BOOST_SQLITE_ROW_HPP
8#include <boost/sqlite/field.hpp>
10BOOST_SQLITE_BEGIN_NAMESPACE
25 return sqlite3_column_count(stm_);
35 f.col_ =
static_cast<int>(idx);
41 using difference_type = int;
43 using iterator_category = std::random_access_iterator_tag;
71 field operator[](
int i)
const
104 const field & operator*()
const
109 const field * operator->()
const
116 return f_.col_ == other.f_.col_
117 && f_.stm_ == other.f_.stm_;
122 return f_.col_ != other.f_.col_
123 || f_.stm_ != other.f_.stm_;
128 return f_.col_ < other.f_.col_
129 && f_.stm_ < other.f_.stm_;
134 return f_.col_ > other.f_.col_
135 && f_.stm_ > other.f_.stm_;
155 ci.f_.col_ = sqlite3_column_count(stm_);
165BOOST_SQLITE_END_NAMESPACE
A holder for a sqlite field, i.e. something returned from a query.
Representation of a result from a database.
Random access iterator used to iterate over the columns.
Representation of a row in a database.
const_iterator end() const
Returns the end of the column-range.
const_iterator begin() const
Returns the begin of the column-range.
field operator[](std::size_t idx) const
Returns the field at idx.
field at(std::size_t idx) const
Returns the field at idx,.
std::size_t size() const
The size of the row.