25 string const name{
"numbers"};
26 vector<pair<string, int>>
const pairs{{
"one", 1}, {
"five", 5}, {
"ten", 10}};
28 for (
auto const& pr : pairs) {
34 [&pairs](
size_t const i,
auto const&
row) {
36 assert(
key == pairs[i].first);
42 auto const& v = get<0>(
row);
43 assert(v == pairs[i].
second);
auto insert_into(sqlite3 *const db, std::string const &tablename)
void for_all_with_index(FwdCont &, Func)
auto make_connection(std::string const &file_name, PolicyArgs &&...) -> Connection *
void create_table_as(std::string const &tablename, SelectStmt const &stmt)
void create_table(sqlite3 *const db, std::string const &tablename, Cols const &...cols)
auto select(T const &...t)
second_as<> second
Type of time stored in seconds, in double precision.