| 162 | // ---------------------------------------------------------------------------------------- |
| 163 | |
| 164 | inline const std::vector<char> query_blob ( |
| 165 | database& db, |
| 166 | const std::string& query |
| 167 | ) |
| 168 | { |
| 169 | statement st(db, query); |
| 170 | st.exec(); |
| 171 | if (st.move_next() && st.get_num_columns() == 1) |
| 172 | { |
| 173 | const std::vector<char>& temp = st.get_column_as_blob(0); |
| 174 | if (st.move_next()) |
| 175 | throw sqlite_error("query doesn't result in exactly 1 element"); |
| 176 | return temp; |
| 177 | } |
| 178 | else |
| 179 | { |
| 180 | throw sqlite_error("query doesn't result in exactly 1 element"); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | // ---------------------------------------------------------------------------------------- |
| 185 |
nothing calls this directly
no test coverage detected