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

Function fvecsEachColumn

src/sqlite-vector.cpp:546–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546static int fvecsEachColumn(sqlite3_vtab_cursor *cur,
547 sqlite3_context *context,
548 int i) {
549
550 auto pCur = static_cast<fvecsEach_cursor *>(cur);
551
552 switch (i) {
553
554 case FVECS_EACH_DIMENSIONS:
555 sqlite3_result_int(context, pCur->iCurrentD);
556 break;
557
558 case FVECS_EACH_VECTOR:
559 resultVector(context, pCur->pCurrentVector.get());
560 break;
561
562 case FVECS_EACH_INPUT:
563 sqlite3_result_null(context);
564 break;
565 }
566 return SQLITE_OK;
567}
568
569/*
570 * This following structure defines all the methods for the

Callers

nothing calls this directly

Calls 1

resultVectorFunction · 0.85

Tested by

no test coverage detected