Public Member Functions | Public Attributes | List of all members
cet::sqlite::IncompleteInsert Struct Reference

#include "/cvmfs/"

Public Member Functions

 IncompleteInsert (sqlite3 *const db, std::string &&ddl)
template<typename... T>
void values (T const &...t)&&

Public Attributes

sqlite3 *const db_
std::string ddl_

Detailed Description

Definition at line 91 of file insert.h.

Constructor & Destructor Documentation

cet::sqlite::IncompleteInsert::IncompleteInsert ( sqlite3 *const  db,
std::string &&  ddl 

Definition at line 93 of file insert.h.

References T.

94  : db_{db}, ddl_{std::move(ddl)}
95  {}

Member Function Documentation

template<typename... T>
void cet::sqlite::IncompleteInsert::values ( T const &...  t)

Definition at line 99 of file insert.h.

References cet::sqlite::exec(), confusionMatrixTree::t, and cet::sqlite::detail::values_str().

100  {
101  ddl_ += " values (";
102  ddl_ += detail::values_str(t...);
103  ddl_ += ");";
104  exec(db_, ddl_);
105  }
void exec(sqlite3 *db, std::string const &ddl)
std::string values_str(Args const &...args)
Definition: insert.h:83

Member Data Documentation

sqlite3* const cet::sqlite::IncompleteInsert::db_

Definition at line 107 of file insert.h.

std::string cet::sqlite::IncompleteInsert::ddl_

Definition at line 108 of file insert.h.

The documentation for this struct was generated from the following file: