9#ifndef SL3_DATASET_HPP_
10#define SL3_DATASET_HPP_
15#include <sl3/config.hpp>
16#include <sl3/dbvalues.hpp>
17#include <sl3/error.hpp>
18#include <sl3/rowcallback.hpp>
82 &&
std::is_nothrow_move_constructible<
Types>::value
83 &&
std::is_nothrow_move_constructible<
84 std::vector<
std::
string>>::value);
185 std::vector<
std::
string> _names;
Container() noexcept
Definition container.hpp:47
Dataset() noexcept
Constructor.
void reset()
Clear all states. Removes loaded data so that the actual instance can be reused/refilled.
void merge(const Dataset &other)
Merge another Dataset.
void sort(const std::vector< size_t > &idxs, DbValueSort cmp=&dbval_lt)
Sort the Dataset.
bool(* DbValueSort)(const DbValue &, const DbValue &)
Typedef for a relation function signature.
Definition dataset.hpp:166
std::size_t getIndex(const std::string &name) const
Get the index of a field by name.
This class models the duck typing sqlite uses. It supports int, real, text, blob and null values.
Definition dbvalue.hpp:43
A row of DbValues.
Definition dbvalues.hpp:30
A Container holding sl3::Type values.
Definition types.hpp:63
Namespace of libSL3.
Definition columns.hpp:18
bool dbval_lt(const DbValue &a, const DbValue &b) noexcept
less than, ignoring type info