Class field_ref
Defined in File cql.hpp
Class Documentation
-
class field_ref
Reference to a field in the result set.
Public Functions
-
inline std::string_view name() const &
The name of the field.
-
inline size_t num() const noexcept
The index number of the field.
-
template<typename T = std::string>
inline T get() const Return the contents of this item as type
- Template Parameters:
T –
-
inline bool is_null() const
Returns true if the field contains NULL.
-
template<typename T>
inline auto value_or(const T &dv) const Return the contents of this item as type
- Template Parameters:
T – or, if not set, use dv as the default value.
Constructor.
-
inline std::string_view name() const &