1 #ifndef cetlib_sqlite_select_h 2 #define cetlib_sqlite_select_h 73 template <
typename... Args>
78 char* errmsg{
nullptr};
107 ddl_ +=
" order by ";
109 ddl_ +=
" " + clause;
136 template <
typename H,
typename...
T>
144 template <
typename...
T>
152 template <
typename...
T>
160 template <
typename... Args>
auto order_by(std::string const &column, std::string const &clause={})&&
void msg(const char *fmt,...)
auto select_distinct(T const &...t)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::string concatenate(H const &h, T const &...t)
SelectStmt(std::string &&ddl, sqlite3 *const db)
auto select(T const &...t)
std::ostream & operator<<(std::ostream &os, query_result< Args... > const &res)
auto limit(int const num)&&
std::vector< std::string > column
int get_result(void *data, int ncols, char **results, char **cnames)
auto from(sqlite3 *const db, std::string const &tablename)&&
query_result< Args... > query(sqlite3 *db, std::string const &ddl)
std::string to_string(ModuleType const mt)
IncompleteSelectStmt(std::string &&ddl)
auto where(std::string const &cond)&&