1 #ifndef cetlib_sqlite_query_result_h 2 #define cetlib_sqlite_query_result_h 69 template <
typename... Args>
96 if (r.
data.size() != 1ull) {
98 <<
"unique_value expected of non-unique query.";
100 return std::get<T>(r.
data[0]);
103 template <
typename... Args>
107 using size_t = decltype(res.
columns.size());
108 auto const ncolumns = res.
columns.size();
109 for (
size_t i{}; i != ncolumns; ++i) {
112 os <<
"\n--------------------------------\n";
113 for (
auto const&
row : res.
data) {
114 os <<
row.str() <<
'\n';
T unique_value(query_result< T > const &r)
std::vector< std::string > columns
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::ostream & operator<<(std::ostream &os, query_result< Args... > const &res)
std::vector< std::tuple< Args... > > data