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

#include <insert.h>

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 90 of file insert.h.

Constructor & Destructor Documentation

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

Definition at line 91 of file insert.h.

92  : db_{db}, ddl_{std::move(ddl)}
93  {}
def move(depos, offset)
Definition: depos.py:107

Member Function Documentation

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

Definition at line 97 of file insert.h.

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

Member Data Documentation

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

Definition at line 105 of file insert.h.

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

Definition at line 106 of file insert.h.


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