MCPcopy Create free account
hub / github.com/davisking/dlib / get_column_as_blob

Method get_column_as_blob

dlib/sqlite/sqlite.h:256–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 const std::vector<char> get_column_as_blob (
257 unsigned long idx
258 ) const
259 {
260 // make sure requires clause is not broken
261 DLIB_ASSERT(idx < get_num_columns(),
262 "\t std::vector<char> statement::get_column_as_blob()"
263 << "\n\t Invalid column index."
264 << "\n\t idx: " << idx
265 << "\n\t this: " << this
266 );
267
268 const char* data = static_cast<const char*>(sqlite3_column_blob(stmt, idx));
269 const int size = sqlite3_column_bytes(stmt, idx);
270
271 return std::vector<char>(data, data+size);
272 }
273
274 template <typename T>
275 void get_column_as_object (

Callers 1

query_blobFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected