MCPcopy Create free account
hub / github.com/asg017/sqlite-vss / vector_from_raw

Function vector_from_raw

src/sqlite-vector.cpp:343–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343static 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

Callers

nothing calls this directly

Calls 2

vectorFromRawBlobValueFunction · 0.85
resultVectorFunction · 0.85

Tested by

no test coverage detected