| 341 | } |
| 342 | |
| 343 | static void vector_from_raw(sqlite3_context *context, |
| 344 | int argc, |
| 345 | sqlite3_value **argv) { |
| 346 | |
| 347 | const char *pzErrMsg; // TODO: Shouldn't we have like error messages here? |
| 348 | |
| 349 | vec_ptr pVec = vectorFromRawBlobValue(argv[0], &pzErrMsg); |
| 350 | if (pVec == nullptr) |
| 351 | sqlite3_result_error(context, pzErrMsg, -1); |
| 352 | else |
| 353 | resultVector(context, pVec.get()); |
| 354 | } |
| 355 | |
| 356 | #pragma endregion |
| 357 |
nothing calls this directly
no test coverage detected