Class result

Nested Relationships

Nested Types

Class Documentation

class result

The result set, containing the result of a query.

Public Functions

inline row_ref one_row() const

Return the row if and only if the result set contains exactly one row, throws otherwise.

inline field_ref one_field() const

Return the row if and only if the result set contains exactly one row, and this row also contains only one field, throws otherwise

size_t column_count() const

Return the number of colums/fields in each row.

category &get_category() const

Return the result set as a cif::category.

inline void expect_columns(size_t cols) const

Test to see if the result set contains at least the number of fields/columns but only when not empty

Friends

inline friend std::ostream &operator<<(std::ostream &os, const result &r)

Print out the result set, for debugging mostly.

class iterator

iterator to the rows in the result set

Friends

friend class view